← All tools

anyquery

Popularity 85 Updated Development & Build

Query anything with SQL

homebrewauto-collected

Installation

Homebrew
brew install anyquery

Install with Homebrew.

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://www.atlascloud.ai/?utmsource=github&utmmedium=link&utmcampaign=anyquery" <picture <source media="(prefers-color-scheme: dark)" srcset="https://cdn.julienc.me/share/atlas-cloud-logo-white.svg" <img src="https://cdn.julienc.me/share/atlas-cloud-logo-black.svg" alt="Atlas Cloud" width="220" </picture </a </p

<h3 align="center" <a href="https://www.atlascloud.ai/?utmsource=github&utmmedium=link&utmcampaign=anyquery"One AI API for LLMs, image &amp; video generation — 300+ models</a </h3

<p align="center" <sub Atlas Cloud is a full-modal AI inference platform: a single API and one account for chat completions,<br image generation, and video generation across 300+ curated models (DeepSeek, FLUX, Kling, Qwen…).<br With the <a href="https://anyquery.dev/integrations/atlascloud"Anyquery plugin</a, you can call all of them directly from SQL. </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 8070

You 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 gpt

Running SQL queries