Best MCP servers for SQL querying
790 MCP servers in the Official MCP Registry do SQL querying. 280 can be used as a hosted endpoint, with nothing to install, and 639 publish their source code.
| # | Tool | Relevance | Connect | Code | Seen |
|---|---|---|---|---|---|
| 101 | mcp-clickhouse ClickHouse query & management for AI agents — SQL-classified read/write/destructive gating. | In name clickhouse | HOSTEDLOCAL | Open | 2d ago |
| 102 | BigQuery Data Platform Read-only BigQuery tools for plain-language data questions, with a cost gate on every query | In name bigquery | HOSTEDLOCAL | Open | 2d ago |
| 103 | mcp-sql-querystore Read-only SQL Server diagnostics for LLM agents: Query Store, waits, plans, indexes | In name sql | HOSTEDLOCAL | Open | 2d ago |
| 104 | aifordatabase-mcp Query any database in plain English or SQL through a guardrailed, read-only data layer. | In name database | HOSTEDLOCAL | Open | 2d ago |
| 105 | mcp-server-mssql MCP server for Microsoft SQL Server using mssql-python | In name mssql | HOSTEDLOCAL | Open | 2d ago |
| 106 | mcp-mysql-connector MCP server exposing MySQL database functionalities as tools | In name mysql | HOSTEDLOCAL | Open | 2d ago |
| 107 | database-admin Database admin MCP: schema inspection, query optimization for PostgreSQL and MySQL | In name database | HOSTEDLOCAL | Open | 2d ago |
| 108 | sql-server-analyst-mcp Read-only SQL Server Analyst MCP — safe schema, stored procedure, and performance analysis. | In name sql | HOSTEDLOCAL | Open | 2d ago |
| 109 | text2sql Ask any SQL database in natural language. Agent explores schema, writes SQL, self-corrects. | In name sql | HOSTEDLOCAL | Open | 2d ago |
| 110 | Postgres (read-only) Read-only Postgres: drop-in for the archived server-postgres, with schema context. | In name postgres | HOSTEDLOCAL | Open | 2d ago |
| 111 | database-mcp MCP server for database connectivity. Multi-DB (PostgreSQL, MySQL, SQLite), 19 tools. | In name database | HOSTEDLOCAL | Open | 2d ago |
| 112 | mysql MCP server for MySQL/MariaDB — pooled async queries with destructive-query safety | In name mysql | HOSTEDLOCAL | Open | 2d ago |
| 113 | postgres-scout-mcp Scout your PostgreSQL databases with AI - safety features, monitoring, and data quality | In name postgres | HOSTEDLOCAL | Open | 2d ago |
| 114 | fastmcp-sqltools A MCP server provides SQL database access with support for PostgreSQL, MySQL, and SQLite. | In name sql | HOSTEDLOCAL | Open | 2d ago |
| 115 | database-mcp-libsql MCP server for libSQL/Turso, local or remote. Read-only by default, row caps, timeouts. | In name database | HOSTEDLOCAL | Open | 2d ago |
| 116 | PostgreSQL MCP server for PostgreSQL: local, Docker, RDS, Neon, Supabase, or behind an SSH bastion. | In name postgresql | HOSTEDLOCAL | Open | 2d ago |
| 117 | Microsoft SQL Server Read-only-by-default SQL Server: schema, parameterized SELECT, execution plans; writes opt-in. | In name sql | HOSTEDLOCAL | Open | 2d ago |
| 118 | tokenlite-mysql-mcp A secure, efficient, and intelligent MySQL server for the Model Context Protocol | In name mysql | HOSTEDLOCAL | Open | 2d ago |
| 119 | Health Data (your own Supabase) Your health data (weight, macros, weigh-ins) as MCP tools — in your own Supabase, zero custody. | In name supabase | HOSTEDLOCAL | Open | 2d ago |
| 120 | ClickHouse Read-only MCP server for ClickHouse metadata, parameterized queries, and plan analysis. | In name clickhouse | HOSTEDLOCAL | Open | 2d ago |
| 121 | Spark SQL Query Spark SQL clusters via Thrift/HiveServer2. Works with Spark, EMR, Hive, Impala. | In name sql | HOSTEDLOCAL | Open | 2d ago |
| 122 | PostgreSQL MCP Server PostgreSQL MCP server - query, schema introspection, explain, and health checks for AI assistants | In name postgresql | HOSTEDLOCAL | Open | 2d ago |
| 123 | Postgres Secured (Aegis Zero-Trust) Enterprise PostgreSQL MCP secured by Aegis Zero-Trust to block unauthorized SQL injections. | In name postgres | HOSTEDLOCAL | Open | 2d ago |
| 124 | SQL Server MCP (Windows) SQL Server MCP with RAG capabilities for Windows (native ODBC support) | In name sql | HOSTEDLOCAL | Open | 2d ago |
| 125 | MCP Database Server MCP server for SQLite, PostgreSQL, and MySQL with natural language to SQL and direct SQL tooling. | In name database | HOSTEDLOCAL | Open | 2d ago |
| 126 | bigquery-mcp A SnowLeopardAI-managed MCP server that provides access to Google BigQuery data. | In name bigquery | HOSTEDLOCAL | Open | 2d ago |
| 127 | sqlglass SQL Server / Azure SQL for agents: real schema, lint, read-only runs, plans, write previews. | In name sql | HOSTEDLOCAL | Open | 2d ago |
| 128 | MySQL Legacy MCP Inspect and query MySQL 5.0–5.6; opt-in INSERT/UPDATE/DELETE/DDL. Live-verified 5.0–8.0. | In name mysql | HOSTEDLOCAL | Open | 2d ago |
| 129 | sql-steward The agent never writes SQL: queries compile from a semantic layer you control, PII refused first. | In name sql | HOSTEDLOCAL | Open | 2d ago |
| 130 | SqlServerMcp MCP server for SQL Server: schema inspection, safe read-only queries, query plan analysis | In name sql | HOSTEDLOCAL | Open | 2d ago |
| 131 | NexQL Postgres MCP Standalone Postgres MCP server — schema-aware, read-only by default, installable everywhere. | In name postgres | HOSTEDLOCAL | Open | 2d ago |
| 132 | sqlfmt-mcp Deterministic SQL formatting across 19 dialects (postgres, mysql, snowflake, bigquery, etc.). | In name sql | HOSTEDLOCAL | Open | 2d ago |
| 133 | MySQL (security-first) Security-first MySQL MCP server with AST validation, table whitelist, schema resources, and audit. | In name mysql | HOSTEDLOCAL | Open | 2d ago |
| 134 | Raw SQL MCP Execute raw SQL queries against SQL Server, SQLite, PostgreSQL, MySQL, and MariaDB. | In name sql | HOSTEDLOCAL | Open | 2d ago |
| 135 | MySQL Ops MCP MySQL MCP server: browse schema, query, CRUD. Delete/drop gated by user approval. | In name mysql | HOSTEDLOCAL | Open | 2d ago |
| 136 | SqlServer.Rules Analyze T-SQL scripts for design, naming, and performance issues and prevent bad practices. | In name sql | HOSTEDLOCAL | Open | 2d ago |
| 137 | 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 | 2d ago |
| 138 | clickhouse-dataops-mcp DataOps ClickHouse MCP server with query optimization and pipeline monitoring | In name clickhouse | HOSTEDLOCAL | Open | 2d ago |
| 139 | Postgres AIops Governed PostgreSQL DBA ops: slow-query RCA, bloat/vacuum & blocking-lock analysis; 35 MCP tools. | In name postgres | HOSTEDLOCAL | Open | 2d ago |
| 140 | MySQL AIops Governed MySQL/MariaDB DBA ops: slow-query, lock-wait, replication & fragmentation RCA; 35 tools. | In name mysql | HOSTEDLOCAL | Open | 2d ago |
| 141 | ainative-postgres-mcp Zero-config Postgres MCP with auto-provisioning — drop-in for server-postgres. | In name postgres | HOSTEDLOCAL | Open | 2d ago |
| 142 | Devart MCP Server for MySQL (ADO.NET) Schema-aware read/write access to MySQL through Devart dotConnect ADO.NET data provider. | In name mysql | HOSTEDLOCAL | Open | 3d ago |
| 143 | Devart MCP Server for SQL Server (ADO.NET) Schema-aware read/write access to SQL Server through Devart dotConnect ADO.NET data provider. | In name sql | HOSTEDLOCAL | Open | 3d ago |
| 144 | Devart MCP Server for PostgreSQL (ADO.NET) Schema-aware read/write access to PostgreSQL through Devart dotConnect ADO.NET data provider. | In name postgresql | HOSTEDLOCAL | Open | 3d ago |
| 145 | Devart MCP Server for SQLite (ADO.NET) Schema-aware read/write access to SQLite through Devart dotConnect ADO.NET data provider. | In name sqlite | HOSTEDLOCAL | Open | 3d ago |
| 146 | DBConvert Streams (Federated SQL) Read-only SQL across your PostgreSQL, MySQL, S3 buckets and local data files, in one query. | In name sql | HOSTEDLOCAL | Open | 3d ago |
| 147 | read-only-local-postgres-mcp-server MCP server for read-only PostgreSQL database queries in Claude Desktop | In name postgres | HOSTEDLOCAL | Open | 3d ago |
| 148 | read-only-local-mysql-mcp-server MCP server for read-only MySQL database queries in Claude Desktop | In name mysql | HOSTEDLOCAL | Open | 3d ago |
| 149 | Redshift MCP Server Secure, read-only access to Amazon Redshift with schema introspection and smart sampling | In name redshift | HOSTEDLOCAL | — | 2d ago |
FAQ
How many MCP servers are there for SQL querying?
Electra Index lists 790 active MCP servers for SQL querying from the Official MCP Registry. 280 offer a hosted endpoint and 639 publish their source code.
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 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.