Best MCP servers for SQL querying
1,223 MCP servers in the Official MCP Registry do SQL querying. 515 can be used as a hosted endpoint, with nothing to install, and 940 publish their source code.
| # | Tool | Relevance | Connect | Code | Seen |
|---|---|---|---|---|---|
| 51 | hypequery ClickHouse Governed ClickHouse analytics for agents: named datasets and metrics as tools, never raw SQL. | In name clickhouse | HOSTEDLOCAL | Open | 2h ago |
| 52 | Approval gate for databases Wraps a database MCP server: reads pass, writes wait for a supervisor to approve them. | In name databases | HOSTEDLOCAL | Open | 5h ago |
| 53 | MigraFlow - Database Migration AI AI-powered database migration. Analyze schemas, generate SQL, calculate risks. | In name database | HOSTEDLOCAL | Open | 5h ago |
| 54 | Microsoft Access Database Read and edit Microsoft Access databases (.accdb/.mdb) - forms, VBA, tables, queries. Windows. | In name database | HOSTEDLOCAL | Open | 5h ago |
| 55 | MySQL (read-only, switchable) Read-only MySQL access, with the database and server switchable mid-conversation. | In name mysql | HOSTEDLOCAL | Open | 5h ago |
| 56 | mcp-encrypted-sqlite MCP server for encrypted SQLite databases (SQLCipher 4) - Works with MoneyMoney, KeePass and more | In name sqlite | HOSTEDLOCAL | Open | 7h ago |
| 57 | mcp-sqlite MCP server for SQLCipher 4 encrypted SQLite databases with full CRUD operations and query support | In name sqlite | HOSTEDLOCAL | Open | 7h ago |
| 58 | database SQL formatting, schema visualization, migration generation | In name database | HOSTEDLOCAL | Open | 7h ago |
| 59 | SQL Safe MCP Minimal, read-only, PII-safe MCP server for SQL databases. | In name sql | HOSTEDLOCAL | Open | 7h ago |
| 60 | MCP Database Doctor Offline PostgreSQL query, migration and EXPLAIN diagnostics for AI agents. | In name database | HOSTEDLOCAL | Open | 7h ago |
| 61 | postgres-mcp Enterprise PostgreSQL MCP server with NL queries, hybrid search (pgvector+BM25), and web UI | In name postgres | HOSTEDLOCAL | Open | 7h ago |
| 62 | Grain SQL Run SQL queries and inspect database schemas through safe, visible MCP tools. | In name sql | HOSTEDLOCAL | Open | 7h ago |
| 63 | mssql-readonly-mcp Read-only MCP server for on-premises SQL Server: one plain SELECT, startup login check, audit log. | In name mssql | HOSTEDLOCAL | Open | 7h ago |
| 64 | sqlite SQLite MCP — query databases, inspect schemas, explain queries, export data. | In name sqlite | HOSTEDLOCAL | Open | 7h ago |
| 65 | Snowflake MCP Server A Snowflake MCP server — SQL queries, schema exploration, and data insights for AI assistants | In name snowflake | HOSTEDLOCAL | Open | 7h ago |
| 66 | PostgreSQL MCP Server Python MCP server for PostgreSQL database inspection and querying | In name postgresql | HOSTEDLOCAL | Open | 7h ago |
| 67 | MySQL MCP Server Python MCP server for MySQL database inspection and querying | In name mysql | HOSTEDLOCAL | Open | 7h ago |
| 68 | mongodb-mcp-server Official MongoDB MCP server: let AI agents search and manage databases and the Atlas data platform | In name mongodb | HOSTEDLOCAL | Open | 20h ago |
| 69 | SQLGuardLLM Policy-based SQL firewall and read-only database tools for LLM agents. | In name sql | HOSTEDLOCAL | Open | 20h ago |
| 70 | mcp-mysql Read-only MySQL/MariaDB for AI agents — query, list/describe tables, health. SQL-guarded. | In name mysql | HOSTEDLOCAL | Open | 20h ago |
| 71 | mcp-postgres-nl-query RLS/tenant-aware Postgres for AI agents — schema, read-only SQL, NL→SQL with safety rails. | In name postgres | HOSTEDLOCAL | Open | 20h ago |
| 72 | Polyglot Database MCP Unified MCP for 20 databases: SurrealDB, ArangoDB, Virtuoso, CouchDB, Cassandra, and more | In name database | HOSTEDLOCAL | Open | 20h ago |
| 73 | MSSQL LocalDB MCP MCP server for SQL Server Express LocalDB on Windows: manage instances, run T-SQL, discover DBs | In name mssql | HOSTEDLOCAL | Open | 20h ago |
| 74 | MCP Toolbox for Databases MCP Toolbox for Databases enables your agent to connect to your database. | In name databases | HOSTEDLOCAL | Open | 20h ago |
| 75 | MySQL MCP MCP server for one MySQL database: schema, read-only queries and guarded writes. | In name mysql | HOSTEDLOCAL | Open | 20h ago |
| 76 | MongoDB Read-Only MCP Read-only MongoDB queries with database, collection and field policies. | In name mongodb | HOSTEDLOCAL | Open | 20h ago |
| 77 | SQL Preview Run governed SQL queries and inspect database schemas from MCP agents. | In name sql | HOSTEDLOCAL | Open | 20h ago |
| 78 | Postgres MCP PostgreSQL MCP wrapper with .env credential mapping, tool selection, and safe read-only defaults. | In name postgres | HOSTEDLOCAL | Open | 20h ago |
| 79 | mcp-clickhouse ClickHouse query & management for AI agents — SQL-classified read/write/destructive gating. | In name clickhouse | HOSTEDLOCAL | Open | 20h ago |
| 80 | aifordatabase-mcp Query any database in plain English or SQL through a guardrailed, read-only data layer. | In name database | HOSTEDLOCAL | Open | 20h ago |
| 81 | mcp-mysql-connector MCP server exposing MySQL database functionalities as tools | In name mysql | HOSTEDLOCAL | Open | 20h ago |
| 82 | mcp-server-mssql MCP server for Microsoft SQL Server using mssql-python | In name mssql | HOSTEDLOCAL | Open | 20h ago |
| 83 | text2sql Ask any SQL database in natural language. Agent explores schema, writes SQL, self-corrects. | In name sql | HOSTEDLOCAL | Open | 20h ago |
| 84 | Postgres DBA MCP Bounded, read-only PostgreSQL access for AI assistants: ten DBA tools, compact CSV output | In name postgres | HOSTEDLOCAL | Open | 20h ago |
| 85 | supabase-rls-check Read-only Supabase RLS checks: explain rules, analyze/diff SQL exports, scan public env vars. | In name supabase | HOSTEDLOCAL | Open | 20h ago |
| 86 | PostgreSQL (hardened, read-only) Read-only PostgreSQL over MCP. Writes refused at the parsed SQL, plus a READ ONLY transaction. | In name postgresql | HOSTEDLOCAL | Open | 21h ago |
| 87 | Postgres AIops Governed PostgreSQL DBA ops: slow-query RCA, bloat/vacuum & blocking-lock analysis; 35 MCP tools. | In name postgres | HOSTEDLOCAL | Open | 21h ago |
| 88 | SQLite MCP Sidecar Agent-safe MCP sidecar for one live SQLite database: read-only default, bounded writes. | In name sqlite | HOSTEDLOCAL | Open | 21h ago |
| 89 | Vericto Proxy mode (local, PostgreSQL and MySQL) Read-only PostgreSQL and MySQL for AI agents: every statement is checked before it runs. No account. | In name postgresql | HOSTEDLOCAL | Open | 21h ago |
| 90 | read-only-local-mysql-mcp-server MCP server for read-only MySQL database queries in Claude Desktop | In name mysql | HOSTEDLOCAL | Open | 22h ago |
| 91 | Kaiva Postgres MCP Read-only PostgreSQL MCP server. Drop-in replacement for the archived server-postgres. | In name postgres | HOSTEDLOCAL | Open | 22h ago |
| 92 | mssql-writer MCP server for Microsoft SQL Server — read and data write operations, no DDL | In name mssql | HOSTEDLOCAL | — | 21h ago |
| 93 | mssql MCP server for Microsoft SQL Server — schema discovery, profiling, safe writes, and DDL | In name mssql | HOSTEDLOCAL | — | 21h ago |
| 94 | mssql-reader Read-only MCP server for Microsoft SQL Server — schema discovery, profiling, safe querying | In name mssql | HOSTEDLOCAL | — | 21h ago |
| 95 | read-only-mysql-mcp-server MCP server for read-only MySQL database queries in Claude Desktop | In name mysql | HOSTEDLOCAL | — | 22h ago |
| 96 | STRING Database MCP Server Query STRING interactions, enrichment, annotations, homology, and PPI networks. | In name database | HOSTEDLOCAL | Open | 4h ago |
| 97 | Database design review — Atom Database design review audit, delivered per API call as an atom service on Conduit Atoms. | In name database | HOSTEDLOCAL | Open | 4h ago |
| 98 | SQL schema & query engineering pack — Atom SQL schema & query engineering pack: declared SQL record checked per call. | In name sql | HOSTEDLOCAL | Open | 4h ago |
| 99 | Neon CRM MCP by usefulapi Search Neon CRM accounts, donations, memberships and events; create accounts and activities. | In name neon | HOSTEDLOCAL | Open | 4h ago |
FAQ
How many MCP servers are there for SQL querying?
Electra Index lists 1,223 active MCP servers for SQL querying from the Official MCP Registry. 515 offer a hosted endpoint and 940 publish their source code.
Is there a hosted MCP server for SQL querying, with nothing to install?
Yes. STRING Database MCP Server, Database design review — Atom and SQL schema & query engineering pack — Atom declare a remote endpoint you add to your assistant's MCP settings.
Is there a ready-made AI agent for SQL querying instead?
Yes. If you prefer a finished product to plugging tools into your own assistant, Apollo.io, ThoughtSpot Spotter and Wren AI do this out of the box.
How this list is ordered: a tool comes first when the use case appears in its name rather than only in its description, then when its description covers more aspects of the use case, then when it offers a hosted endpoint, then when its source code is public, then by how recently our robot saw it in the Official MCP Registry. The match to SQL Querying comes from the publisher's description (keyword method), not from a test of the tool. Only active tools with a real description are listed. No tool pays to appear here.