julien040/anyquery
One SQL interface for 60+ tools (e.g., GitHub, Notion, Airtable). Plug into any LLM through MCP.
Anyquery – SQL‑style access to any data source
What it is Anyquery is an open‑source SQL query engine built on SQLite that lets you run standard SQL statements against a huge variety of data sources – local files, traditional databases, and even third‑party apps like Apple Notes, Notion, Chrome, Todoist, etc. It does this through a lightweight plugin system. In addition, Anyquery can expose a MySQL‑compatible server interface and can be hooked up to large language models (LLMs) so that the model can query your data via a Model Context Protocol (MCP).
Core capabilities
| Feature | What it does |
|---|---|
| Universal querying | Treat files, databases, and SaaS apps as virtual tables and run SELECT … against them. |
| Plugin architecture | Official registry hosts dozens of integrations; you can also load any SQLite extension or write your own Go plugin. |
| LLM connectivity | Starts an MCP server (anyquery mcp) that LLMs (ChatGPT, Claude, Cursor, TypingMind, etc.) can call to fetch context from your data. |
| MySQL server mode | anyquery server runs a MySQL‑compatible endpoint, letting you use any MySQL client (TablePlus, Metabase, etc.) to query the virtual tables. |
| Cross‑platform binaries | Pre‑built binaries for macOS, Linux, Windows; installable via Homebrew, APT, YUM/DNF, Scoop, Winget, Chocolatey, or a one‑line curl script. |
| Open‑source licensing | Core engine under AGPL‑v3; RPC library under MIT; plugins keep their own licenses. |
Typical use cases
- Personal data lake – query notes, bookmarks, emails, and todo lists with a single SQL statement.
- Ad‑hoc reporting – pull data from a CSV, a local SQLite DB, and a Notion workspace in one query.
- LLM‑augmented workflows – let ChatGPT retrieve up‑to‑date facts from your own documents without exposing the raw files.
- BI integration – connect Anyquery’s MySQL server to Metabase or Tableau to visualise data that lives in SaaS apps.
- Rapid prototyping – write a quick plugin to expose a new API as a virtual table, then query it with familiar SQL.
Getting started (quick install)
# macOS / Linux – one‑liner that downloads the correct binary, verifies checksum and adds it to $PATH
curl -fsSL https://anyquery.dev/install.sh | sh
After installation you can:
anyquery– open an interactive shell.anyquery server &– start the MySQL‑compatible server.anyquery mcp --stdiooranyquery mcp --host 127.0.0.1 --port 8070– launch the MCP server for LLMs.
Full installation docs cover Homebrew, APT, YUM/DNF, Scoop, Winget, Chocolatey, and a go install path for developers.
Extending with plugins
Plugins are the bridge to external data. You can browse the official registry at https://anyquery.dev/integrations, which currently lists {{dynamic badge showing plugins count}} integrations. Installing a plugin is as simple as:
anyquery plugin install <plugin-name>
You can also load any SQLite extension directly via SQL (SELECT load_extension('…');).
Documentation & community
- Website & docs: https://anyquery.dev – includes usage guides, connection guides for MySQL clients, and detailed plugin development docs.
- Issues & contributions: GitHub issues page; contribution guide encourages minor PRs and feedback.
- Sponsorship: Project is solo‑maintained; sponsors are listed (e.g., Sidrune AI) and can add their logo via the sponsor link.
License
- Core engine: AGPL‑v3 (ensures source remains open when the software is offered as a service).
- RPC library used for plugins: MIT (permissive, allowing reuse).
- Individual plugins retain their own licenses as defined by their authors.
TL;DR
Anyquery turns anything you can think of into a SQL‑queryable table, adds a MySQL server front‑end, and can hand that data to LLMs through a simple protocol. It’s a handy bridge for developers, data‑curious power users, and anyone who wants to let AI agents read their personal or SaaS data without writing custom adapters.
Related
- Project
- Project
- Dispatch
- Project
- Project