# anyquery

> anyquery is an open-source MCP server for databases. Open-source SQL engine that queries apps, files and databases, and exposes them to LLMs. It is available on macOS, Linux, Windows, CLI and API.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** macOS, Linux, Windows, CLI, API
- **Website:** https://anyquery.dev
- **Repository:** https://github.com/julien040/anyquery
- **GitHub stars:** 1,795
- **Categories:** [databases](https://ai-powered.com/categories/databases)
- **Listing updated:** 2026-12-01

## About

Anyquery lets you ask one SQL dialect questions across services such as GitHub, Notion, Spotify, Gmail and Airtable, along with CSV and Parquet files and log data. Its tables are backed by SQLite, so you can join data from different sources in a single query, and write operations are supported for some sources like Notion, Airtable and Google Sheets.

The engine runs locally as a single binary, and API tokens stay on the machine. Plugins supply the source connectors, which are installed individually, so you only add the services you use. A built-in MySQL-compatible server lets BI tools such as Metabase and Tableau connect to the same data.

The same engine also runs as an MCP server with the anyquery mcp command, so AI clients like Claude Desktop, Cursor and ChatGPT can query your connected data in plain language. It suits developers and analysts who want SQL access to personal or team data without building pipelines.

## Features

- **Unified SQL across sources:** Query GitHub, Notion, Gmail, CSV and Parquet files with ordinary SELECT statements and join them together.
- **Installable source plugins:** Add only the integrations you need, each installed as a separate plugin from a registry.
- **Local-first execution:** The engine runs on your own machine, and API tokens are kept local rather than sent to a hosted pipeline.
- **Write support for some sources:** INSERT, UPDATE and DELETE work against selected services such as Notion, Airtable and Google Sheets.
- **MySQL-compatible server:** Connects MySQL clients and BI tools like Metabase and Tableau to the combined data.
- **MCP server for AI clients:** Runs as a Model Context Protocol server so LLM clients can query your connected data.

## Good for

- Joining GitHub issues with Notion pages or spreadsheet data in one query
- Letting Claude or Cursor answer questions about your mail, music history or notes
- Connecting Metabase or Tableau to personal app data without building an ETL pipeline
- Querying large CSV or Parquet files directly from the command line

## FAQ

### Is Anyquery free to use?

Yes, the core engine is free and open source under AGPL-3.0, with plugins licensed separately by their authors.

### Which operating systems are supported?

The product lists macOS, Linux and Windows, with installation through Homebrew, APT, DNF, Scoop, Winget and Chocolatey, or a shell install script.

### How does an AI client connect to anyquery?

Run anyquery mcp, either over stdio for clients that launch it or over HTTP and SSE on a chosen port.

### What are the best alternatives to anyquery?

The closest alternatives to anyquery are nlqueries, DataLink, sql-query-mcp, querywise-mcp and sqlize.online.

## Where this comes from

- Description: written from the project's README and the project's website.

## Alternatives

- [nlqueries](https://ai-powered.com/mcp/nlqueries): nlqueries is an open-source MCP server for databases.
- [DataLink](https://ai-powered.com/mcp/datalink): DataLink is an open-source MCP server for databases.
- [sql-query-mcp](https://ai-powered.com/mcp/sql-query-mcp): sql-query-mcp is an open-source MCP server for databases.
- [querywise-mcp](https://ai-powered.com/mcp/querywise-mcp): querywise-mcp is an open-source MCP server for databases.
- [sqlize.online](https://ai-powered.com/mcp/sqlize-online): sqlize.online is a free MCP server for databases.
- [xiyan_mcp_server](https://ai-powered.com/mcp/xiyan-mcp-server): xiyan_mcp_server is an open-source MCP server for databases.
- [mnemiq](https://ai-powered.com/mcp/mnemiq): mnemiq is an open-source MCP server for databases.
- [db-mcp-server](https://ai-powered.com/mcp/db-mcp-server-2): db-mcp-server is an open-source MCP server for databases.

---
Source: https://ai-powered.com/mcp/anyquery
