Topic
MCP servers for SQL databases
Ask questions of a real database in plain language.
These are the most useful servers on this site and the easiest to regret. Handing an agent a database connection turns every vague instruction into SQL against real rows, and most of these servers will happily run whatever they are given. The good ones make read-only the default rather than an option.
- Graded servers
- 163
- Grade A
- 71
- Run remotely
- 52
- Reviewed by users
- 0
Before you install one
Three things that separate the servers here, none of which shows up in a description.
- Does it have a read-only mode, and is it on?
- Some of these expose a flag or a separate read-only connection. Several do not, and will run an UPDATE as readily as a SELECT. If you only ever want answers, an agent that cannot write is not a limitation, it is the feature.
- The credential is the real boundary.
- A server that calls itself read-only but connects as the owner is not read-only, because the limit lives in the tool and the tool is one prompt away from being talked around. Create a role that can only read, and give it that. This is the single most effective thing on this page.
- Does it cap what a query returns?
- An agent that runs SELECT * on a large table pulls the whole table into the context window, which is slow, expensive, and occasionally the fastest way to leak a customer list into a chat log. Look for a row limit you can set.
Every listing below has a scan report saying what the server asks for and what it does with it. The rubric is on how we grade.
The SQL servers we would look at first
Reviewed servers rank first, then the ones with real adoption. At most two per publisher, so no account can fill the list. Nothing here is sponsored.
Official ClickHouse MCP server for querying and exploring ClickHouse clusters and chDB.
No reviews yetlocal · mixed87756k/wkFreeMCP server for PostgreSQL: local, Docker, RDS, Neon, Supabase, or behind an SSH bastion.
No reviews yetlocal · npm222.9k/wkFreePostgreSQL MCP server - query, schema introspection, explain, and health checks for AI assistants
No reviews yetlocal · npm53.2k/wkFreeMCP server for DBAs running dozens of SQL Server instances: grouped connections, plans, indexes
No reviews yetlocal · npm2347/wkFreeRead-only PostgreSQL over MCP. Writes refused at the parsed SQL, plus a READ ONLY transaction.
No reviews yetlocal · mixed391/wkFreeRead-only SQL across your PostgreSQL, MySQL, S3 buckets and local data files, in one query.
No reviews yetlocal · mixed24FreeClickHouse query & management for AI agents — SQL-classified read/write/destructive gating.
No reviews yetlocal · npm2174/wkFreeInspect and query MySQL 5.0–5.6; opt-in INSERT/UPDATE/DELETE/DDL. Live-verified 5.0–8.0.
No reviews yetlocal · npm215/wkFreeGoverned MySQL/MariaDB DBA ops: slow-query, lock-wait, replication & fragmentation RCA; 35 tools.
No reviews yetlocal · pypi613/wkFreeGoverned PostgreSQL DBA ops: slow-query RCA, bloat/vacuum & blocking-lock analysis; 35 MCP tools.
No reviews yetlocal · pypi506/wkFreeNames every column, index, view and seed row in a .sql migration that stores card data, with its PCI
No reviews yetlocal · npm400/wkFreeA Snowflake MCP server — SQL queries, schema exploration, and data insights for AI assistants
No reviews yetlocal · mixed255/wkFree
36 more, graded and ranked
- 13Microsoft SQL ServerRead-only-by-default SQL Server: schema, parameterized SELECT, execution plans; writes opt-in.not reviewedGrowingB
- 14ClickHouseRead-only MCP server for ClickHouse metadata, parameterized queries, and plan analysis.not reviewedGrowingB
- 15SQL ServerServidor MCP para SQL Server com controle de permissões e modo somente-leituranot reviewedGrowingB
- 16MySQL (security-first)Security-first MySQL MCP server with AST validation, table whitelist, schema resources, and audit.not reviewedGrowingB
- 17Discord snowflake id shape, value discardedDiscord snowflake id shape, value discardednot reviewedNewA
- 18Postgres URL ShapeCheck a Postgres URL shape. Credentials discarded.not reviewedNewA
- 19BigQuery Data PlatformRead-only BigQuery tools for plain-language data questions, with a cost gate on every querynot reviewedNewA
- 20SQL Safe MCPMinimal, read-only, PII-safe MCP server for SQL databases.not reviewedNewA
- 21WHOOP MCPSync WHOOP recovery, sleep, strain, and workouts into Postgres and query them from any MCP client.not reviewedNewB
- 22Devart MCP Server for SQL Server (ADO.NET)Schema-aware read/write access to SQL Server through Devart dotConnect ADO.NET data provider.not reviewedNewC
- 23Dataset to Postgres, Supabase & MySQL (Database Push)Push rows from a dataset, file or Google Sheet into a Postgres, Supabase, Neon or MySQL table.not reviewedNewC
- 24Elasticsearch Redis Mysql Stack GeneratorElasticsearch + Redis + MySQL Stack Generatornot reviewedNewC
- 25Kafka And Postgres Monitoring StackKafka and Postgres Monitoring Stacknot reviewedNewC
- 26DBHubToken-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLitenot reviewedWidely usedA
- 27Pg AiguideComprehensive PostgreSQL documentation and best practices, including ecosystem toolsnot reviewedEstablishedA
- 28GeoLensRead-only access to a self-hosted GeoLens spatial catalog: datasets, features, maps, sandboxed SQL.not reviewedEstablishedB
- 29NeonOfficial Neon MCP server for managing Neon projects and Lakebase Postgres databases.not reviewedEstablishedA
- 30LINQ to DBInspect database schemas and execute SQL queries across multiple database providers with LINQ to DB.not reviewedEstablishedA
- 31dryrunPostgreSQL schema intelligence from a committed snapshot. No connection, no credentials.not reviewedEstablishedA
- 32
Aiven MCPProvision PostgreSQL, manage Apache Kafka, and deploy apps with Aiven - all from your AI assistant.not reviewedEstablishedA - 33StackQL MCP ServerSQL-native query and provisioning engine for cloud infrastructure, served over MCP.not reviewedEstablishedA
- 34
Magic CloudGenerate secured CRUD APIs over your database, run SQL, manage files, tasks and a headless browsernot reviewedEstablishedA - 35RememLocal-first automatic memory for Claude Code and Codex: capture, distill, recall from SQLite.not reviewedEstablishedB
- 36MycTask queue, decisions and memory for coding agents. Local SQLite, no network. Requires Bun.not reviewedGrowingC
- 37skillmemSkill memory for coding agents: learn, recall, reinforce, decay. Local SQLite, no API key.not reviewedGrowingA
- 38Memory ArbiterLocal SQLite MCP memory: evidence-based recall, advisory conflict notices, authorized governance.not reviewedGrowingA
- 39ZenBrain MemorySeven-layer agent memory: episodic, semantic, procedural and core. Local SQLite, no account.not reviewedGrowingA
- 40memoMemory for AI agents — MLX (Apple Silicon) or CPU (Linux), sqlite-vec + BM25, zero cloud.not reviewedGrowingA
- 41Gnosis MCPZero-config MCP server for searchable documentation. SQLite or PostgreSQL.not reviewedGrowingA
- 42BioMCP-TSBiomedical MCP server: genes, variants, trials, literature, patents, optional SQL/R/biowasm tools.not reviewedGrowingB
- 43Anythingmcp255 connectors + any REST/SOAP/GraphQL/SQL as MCP tools for Claude & ChatGPT. Self-hosted, AGPL.not reviewedGrowingB
- 44MCPConnect your AI assistants to Keboola and expose your data, transformations, SQL queries, ...not reviewedGrowingA
- 45KEPTA — Agent MemoryLocal memory for AI agents. One SQLite file on your machine — no cloud, no account.not reviewedGrowingA
- 46FaostatUN FAOSTAT global food & agriculture statistics over a local SQLite mirror, via MCP.not reviewedGrowingA
- 47TinycontextToken-light local memory with SQLite hybrid retrieval for MCP agents.not reviewedGrowingB
- 48LificLocal-first, lightweight issue tracker. Single binary, SQLite-backed, MCP-native.not reviewedGrowingA
Or try them without installing any
Add the gateway once and your agent runs search "sql", reads the grades, and calls the one it picks. Nothing to install per server, and an F-graded server cannot be reached through it.
claude mcp add --transport http mcp-market https://gw.mcp.market/mcp
Related
MCP servers for vector databasesMCP servers for RAGMCP servers for monitoring and logsBest Databases MCP serversAll topics