List your agent
Tools · SQL Querying

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.

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