List your agent
MCP use case · SQL Querying

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.

1,223 servers515 hosted, nothing to install940 open source6 ready-made AI agents
#ToolRelevanceConnectCodeSeen
51hypequery ClickHouse
Governed ClickHouse analytics for agents: named datasets and metrics as tools, never raw SQL.
In name
clickhouse
HOSTEDLOCALOpen2h ago
52Approval gate for databases
Wraps a database MCP server: reads pass, writes wait for a supervisor to approve them.
In name
databases
HOSTEDLOCALOpen5h ago
53MigraFlow - Database Migration AI
AI-powered database migration. Analyze schemas, generate SQL, calculate risks.
In name
database
HOSTEDLOCALOpen5h ago
54Microsoft Access Database
Read and edit Microsoft Access databases (.accdb/.mdb) - forms, VBA, tables, queries. Windows.
In name
database
HOSTEDLOCALOpen5h ago
55MySQL (read-only, switchable)
Read-only MySQL access, with the database and server switchable mid-conversation.
In name
mysql
HOSTEDLOCALOpen5h ago
56mcp-encrypted-sqlite
MCP server for encrypted SQLite databases (SQLCipher 4) - Works with MoneyMoney, KeePass and more
In name
sqlite
HOSTEDLOCALOpen7h ago
57mcp-sqlite
MCP server for SQLCipher 4 encrypted SQLite databases with full CRUD operations and query support
In name
sqlite
HOSTEDLOCALOpen7h ago
58database
SQL formatting, schema visualization, migration generation
In name
database
HOSTEDLOCALOpen7h ago
59SQL Safe MCP
Minimal, read-only, PII-safe MCP server for SQL databases.
In name
sql
HOSTEDLOCALOpen7h ago
60MCP Database Doctor
Offline PostgreSQL query, migration and EXPLAIN diagnostics for AI agents.
In name
database
HOSTEDLOCALOpen7h ago
61postgres-mcp
Enterprise PostgreSQL MCP server with NL queries, hybrid search (pgvector+BM25), and web UI
In name
postgres
HOSTEDLOCALOpen7h ago
62Grain SQL
Run SQL queries and inspect database schemas through safe, visible MCP tools.
In name
sql
HOSTEDLOCALOpen7h ago
63mssql-readonly-mcp
Read-only MCP server for on-premises SQL Server: one plain SELECT, startup login check, audit log.
In name
mssql
HOSTEDLOCALOpen7h ago
64sqlite
SQLite MCP — query databases, inspect schemas, explain queries, export data.
In name
sqlite
HOSTEDLOCALOpen7h ago
65Snowflake MCP Server
A Snowflake MCP server — SQL queries, schema exploration, and data insights for AI assistants
In name
snowflake
HOSTEDLOCALOpen7h ago
66PostgreSQL MCP Server
Python MCP server for PostgreSQL database inspection and querying
In name
postgresql
HOSTEDLOCALOpen7h ago
67MySQL MCP Server
Python MCP server for MySQL database inspection and querying
In name
mysql
HOSTEDLOCALOpen7h ago
68mongodb-mcp-server
Official MongoDB MCP server: let AI agents search and manage databases and the Atlas data platform
In name
mongodb
HOSTEDLOCALOpen20h ago
69SQLGuardLLM
Policy-based SQL firewall and read-only database tools for LLM agents.
In name
sql
HOSTEDLOCALOpen20h ago
70mcp-mysql
Read-only MySQL/MariaDB for AI agents — query, list/describe tables, health. SQL-guarded.
In name
mysql
HOSTEDLOCALOpen20h ago
71mcp-postgres-nl-query
RLS/tenant-aware Postgres for AI agents — schema, read-only SQL, NL→SQL with safety rails.
In name
postgres
HOSTEDLOCALOpen20h ago
72Polyglot Database MCP
Unified MCP for 20 databases: SurrealDB, ArangoDB, Virtuoso, CouchDB, Cassandra, and more
In name
database
HOSTEDLOCALOpen20h ago
73MSSQL LocalDB MCP
MCP server for SQL Server Express LocalDB on Windows: manage instances, run T-SQL, discover DBs
In name
mssql
HOSTEDLOCALOpen20h ago
74MCP Toolbox for Databases
MCP Toolbox for Databases enables your agent to connect to your database.
In name
databases
HOSTEDLOCALOpen20h ago
75MySQL MCP
MCP server for one MySQL database: schema, read-only queries and guarded writes.
In name
mysql
HOSTEDLOCALOpen20h ago
76MongoDB Read-Only MCP
Read-only MongoDB queries with database, collection and field policies.
In name
mongodb
HOSTEDLOCALOpen20h ago
77SQL Preview
Run governed SQL queries and inspect database schemas from MCP agents.
In name
sql
HOSTEDLOCALOpen20h ago
78Postgres MCP
PostgreSQL MCP wrapper with .env credential mapping, tool selection, and safe read-only defaults.
In name
postgres
HOSTEDLOCALOpen20h ago
79mcp-clickhouse
ClickHouse query & management for AI agents — SQL-classified read/write/destructive gating.
In name
clickhouse
HOSTEDLOCALOpen20h ago
80aifordatabase-mcp
Query any database in plain English or SQL through a guardrailed, read-only data layer.
In name
database
HOSTEDLOCALOpen20h ago
81mcp-mysql-connector
MCP server exposing MySQL database functionalities as tools
In name
mysql
HOSTEDLOCALOpen20h ago
82mcp-server-mssql
MCP server for Microsoft SQL Server using mssql-python
In name
mssql
HOSTEDLOCALOpen20h ago
83text2sql
Ask any SQL database in natural language. Agent explores schema, writes SQL, self-corrects.
In name
sql
HOSTEDLOCALOpen20h ago
84Postgres DBA MCP
Bounded, read-only PostgreSQL access for AI assistants: ten DBA tools, compact CSV output
In name
postgres
HOSTEDLOCALOpen20h ago
85supabase-rls-check
Read-only Supabase RLS checks: explain rules, analyze/diff SQL exports, scan public env vars.
In name
supabase
HOSTEDLOCALOpen20h ago
86PostgreSQL (hardened, read-only)
Read-only PostgreSQL over MCP. Writes refused at the parsed SQL, plus a READ ONLY transaction.
In name
postgresql
HOSTEDLOCALOpen21h ago
87Postgres AIops
Governed PostgreSQL DBA ops: slow-query RCA, bloat/vacuum & blocking-lock analysis; 35 MCP tools.
In name
postgres
HOSTEDLOCALOpen21h ago
88SQLite MCP Sidecar
Agent-safe MCP sidecar for one live SQLite database: read-only default, bounded writes.
In name
sqlite
HOSTEDLOCALOpen21h ago
89Vericto 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
HOSTEDLOCALOpen21h ago
90read-only-local-mysql-mcp-server
MCP server for read-only MySQL database queries in Claude Desktop
In name
mysql
HOSTEDLOCALOpen22h ago
91Kaiva Postgres MCP
Read-only PostgreSQL MCP server. Drop-in replacement for the archived server-postgres.
In name
postgres
HOSTEDLOCALOpen22h ago
92mssql-writer
MCP server for Microsoft SQL Server — read and data write operations, no DDL
In name
mssql
HOSTEDLOCAL—21h ago
93mssql
MCP server for Microsoft SQL Server — schema discovery, profiling, safe writes, and DDL
In name
mssql
HOSTEDLOCAL—21h ago
94mssql-reader
Read-only MCP server for Microsoft SQL Server — schema discovery, profiling, safe querying
In name
mssql
HOSTEDLOCAL—21h ago
95read-only-mysql-mcp-server
MCP server for read-only MySQL database queries in Claude Desktop
In name
mysql
HOSTEDLOCAL—22h ago
96STRING Database MCP Server
Query STRING interactions, enrichment, annotations, homology, and PPI networks.
In name
database
HOSTEDLOCALOpen4h ago
97Database design review — Atom
Database design review audit, delivered per API call as an atom service on Conduit Atoms.
In name
database
HOSTEDLOCALOpen4h ago
98SQL schema & query engineering pack — Atom
SQL schema & query engineering pack: declared SQL record checked per call.
In name
sql
HOSTEDLOCALOpen4h ago
99Neon CRM MCP by usefulapi
Search Neon CRM accounts, donations, memberships and events; create accounts and activities.
In name
neon
HOSTEDLOCALOpen4h 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.