Anyquery
<img src="https://anyquery.dev/images/logo-shadow.png" alt="Anyquery logo" width="96"</img
[](https://anyquery.dev) [](https://github.com/julien040/anyquery/issues) [](https://anyquery.dev/integrations/) [](https://anyquery.dev/queries) [](https://pkg.go.dev/github.com/julien040/anyquery/namespace) [](https://archestra.ai/mcp-catalog/julien040anyquery)
---
<p align="center" <sub<iSponsored by</i</sub<br<br <a href="https://fluxionai.world/register?source=github&campaign=github-anyquery&promo=ANYQUERY" <picture <!-- <source media="(prefers-color-scheme: dark)" srcset="https://cdn.julienc.me/share/fluxion-ai-logo-with-name-transparent.svg" -- <img src="https://cdn.julienc.me/share/FluxionAIEnglishPartnerBannerv3.png" width="100%" </picture </a </p
<h3 align="center" <a href="https://fluxionai.world/register?source=github&campaign=github-anyquery&promo=ANYQUERY"Fluxion AI - Reliable, cost-efficient access to GPT, Claude, and other leading AI models</a </h3 <p align="center" <sub Fluxion AI provides reliable, cost-efficient access to GPT, Claude, and other leading AI models through one unified API. Save up to 70% compared with official API pricing—and get $3 in API credits when you sign up through this link. </sub </p
---
Anyquery is a SQL query engine that allows you to run SQL queries on pretty much anything. It supports querying files, databases, and apps (e.g. Apple Notes, Notion, Chrome, Todoist, etc.). It's built on top of SQLite and uses plugins to extend its functionality.
It can also connect to LLMs (e.g. ChatGPT, Claude, Cursor, TypingMind, etc.) to allow them to access your data.
Finally, it can act as a MySQL server, allowing you to run SQL queries from your favorite MySQL-compatible client (e.g. TablePlus, Metabase, etc.).
Usage
Connecting LLM
LLMs can connect to Anyquery using the Model Context Protocol (MCP). This protocol provides context for LLMs that support it. You can start the MCP server with the following command:
# To be started by the LLM client
anyquery mcp --stdio
# To connect using an HTTP and SSE tunnel
anyquery mcp --host 127.0.0.1 --port 8070You can also connect to clients that supports function calling (e.g. ChatGPT, TypingMind). Refer to each connection guide in the documentation for more information.
# Copy the ID returned by the command, and paste it in the LLM client (e.g. ChatGPT, TypingMind)
anyquery gptRunning SQL queries
The documentation provides detailed instructions on how to run queries with Anyquery. But let's see a quick example. Type anyquery in your terminal to open the shell mode. Then, run the following query: