Open source alternatives to query-writing
200 open source apps like query-writing, closest match first.
Top picks
- S

subnetmarco/pgmcp
GetPGMCP is a Model Context Protocol server that connects AI assistants to any PostgreSQL database. You ask questions in plain English, and the server turns them into SQL and returns structured results as a table, JSON or CSV. It handles large
- R

runekaagaard/mcp-alchemy
GetMCP Alchemy is a server that connects Claude Desktop to SQL databases through SQLAlchemy, so the model can inspect a schema, write and check queries, and see how tables relate to each other. It works with PostgreSQL, MySQL and MariaDB, SQLi
- F

FreePeak/db-mcp-server
GetMulti Database MCP Server is a Model Context Protocol server that gives AI assistants structured access to several databases at once. It can connect to MySQL, PostgreSQL, SQLite and Oracle databases concurrently. For each connected database
- L

LINQ to DB
GetThe linq2db CLI agent skill lets an AI coding agent inspect a database's schema and run read-oriented SQL queries against it through the dotnet linq2db tool. It works across the database providers that linq2db supports. The skill tells the
- D

Dory
LaunchDory is an AI-native SQL client and data workspace for people who write queries, and for the AI agents that work alongside them. You connect your databases, then use one workspace with an SQL editor, a schema explorer, query results and sav
Open source
- C

centralmind/gateway
GetCentralmind Gateway turns a database into an API that AI agents can use. It reads the table schema and sampled data, generates an AI-optimized API, and serves it as REST or as a Model Context Protocol server, including SSE mode. The README
More like query-writing

ClickHouse/mcp-clickhouse
ClickHouse database integration with schema inspection and query capabilities

supabase-community/supabase-mcp
Connect to your Supabase project to manage tables, fetch config and query data

Agent-Native Analytics
Agent-Native Amplitude/Mixpanel - connect data sources, prompt for charts
About query-writing

query-writing
Writes and executes SQL queries from simple SELECTs
query-writing is an agent skill from the langchain-ai deepagents project, listed on skills.sh. It writes and runs SQL queries, from simple SELECT statements to complex multi-table joins, aggregations and subqueries. The page gives two workflows. For a straightforward question about one table, the agent identifies the table, reads its schema with the sql_db_schema tool, writes a SELECT with the right columns and any WHERE, LIMIT or ORDER BY clauses, runs it with sql_db_query, and presents the results clearly. For a question that needs several tables, it follows a longer workflow in the same spirit, working out the joins from the schema before writing the query. The skill is for analysts and developers who ask questions of a database in plain language and want the agent to produce and run a correct query, checking the schema first rather than guessing column names. The listing shows Gen Agent Trust Hub, Socket and Snyk all as Pass.
- Price
- Free
- Made by
- langchain-ai
- Category
- AI Skills
- Website
- github.com/langchain-ai/deepagents/query-writing










