Best MCP servers for SQL querying
1,221 MCP servers in the Official MCP Registry do SQL querying. 514 can be used as a hosted endpoint, with nothing to install, and 939 publish their source code. First by relevance and readiness: strut-stack-sql, sqlike-mcp and database.
| # | Tool | Relevance | Connect | Code | Seen |
|---|---|---|---|---|---|
| 1 | strut-stack-sql Token-efficient MCP server for MySQL, PostgreSQL, SQLite, DuckDB, SQL Server, and ClickHouse | In name sql | HOSTEDLOCAL | Open | 4h ago |
| 2 | sqlike-mcp Lints SQL and checks rewrites return the same rows. Postgres, MySQL, MariaDB, SQLite, MSSQL, DuckDB | In name sql | HOSTEDLOCAL | Open | 5h ago |
| 3 | database Query and modify PostgreSQL, MySQL, SQL Server, Oracle or MongoDB databases. | In name database | HOSTEDLOCAL | Open | 17h ago |
| 4 | sqlize.online Run SQL on 30+ real database engines: MySQL, PostgreSQL, SQL Server, Oracle, SQLite and more. | In name sql | HOSTEDLOCAL | — | 2h ago |
| 5 | Dataset to Postgres, Supabase & MySQL (Database Push) Push rows from a dataset, file or Google Sheet into a Postgres, Supabase, Neon or MySQL table. | In name postgres | HOSTEDLOCAL | — | 18h ago |
| 6 | fastmcp-sqltools A MCP server provides SQL database access with support for PostgreSQL, MySQL, and SQLite. | In name sql | HOSTEDLOCAL | Open | 18h ago |
| 7 | MCP Database Server MCP server for SQLite, PostgreSQL, and MySQL with natural language to SQL and direct SQL tooling. | In name database | HOSTEDLOCAL | Open | 18h ago |
| 8 | sqlfmt-mcp Deterministic SQL formatting across 19 dialects (postgres, mysql, snowflake, bigquery, etc.). | In name sql | HOSTEDLOCAL | Open | 18h ago |
| 9 | DataClawe — Database as a Utility AI-native database utility. Talk to your DB in plain language. No SQL. MySQL & PostgreSQL. | In name database | HOSTEDLOCAL | Open | 19h ago |
| 10 | mcp-sql-rust Token-efficient MCP server for MySQL, PostgreSQL, and SQLite | In name sql | HOSTEDLOCAL | Open | 4h ago |
| 11 | custom-mcp-database Run alias-based queries against PostgreSQL, MySQL, MongoDB and Oracle without exposing credentials. | In name database | HOSTEDLOCAL | Open | 4h ago |
| 12 | database-mcp MCP server for database connectivity with PostgreSQL, MySQL and SQLite. | In name database | HOSTEDLOCAL | Open | 18h ago |
| 13 | ROUA: read-only database accounts Create and audit read-only database accounts for AI agents: PostgreSQL, MySQL, SQL Server and more. | In name database | HOSTEDLOCAL | Open | 18h ago |
| 14 | Raw SQL MCP Execute raw SQL queries against SQL Server, SQLite, PostgreSQL, MySQL, and MariaDB. | In name sql | HOSTEDLOCAL | Open | 18h ago |
| 15 | Jam SQL Studio Lets AI agents query SQL Server, PostgreSQL, MySQL, Oracle and SQLite via the Jam SQL Studio app. | In name sql | HOSTEDLOCAL | — | 19h ago |
| 16 | Snowflake MCP by usefulapi List databases and tables, describe columns and run SQL statements in Snowflake. | In name snowflake | HOSTEDLOCAL | Open | 2h ago |
| 17 | Speak To Your Database Odoo MCP server, plus PostgreSQL and MySQL: ask your business data in ChatGPT or Claude. Read-only. | In name database | HOSTEDLOCAL | Open | 19h ago |
| 18 | Neon Official Neon MCP server for managing Neon projects and Lakebase Postgres databases. | In name neon | HOSTEDLOCAL | Open | 19h ago |
| 19 | datamcp — Hosted Model Context Protocol for Databases, APIs, and Agent Memory PostgreSQL, MySQL, OpenAPI/Swagger, and shared Agent Memory with scoped access. | In name databases | HOSTEDLOCAL | — | 17h ago |
| 20 | AI2SQL Text-to-SQL MCP server: read-only queries on PostgreSQL, MySQL and SQL Server with your real schema | In name sql | HOSTEDLOCAL | — | 18h ago |
| 21 | AI for Database Ask your databases questions in plain English, run read-only SQL and set up data alerts. | In name database | HOSTEDLOCAL | — | 19h ago |
| 22 | postgres-mcp PostgreSQL MCP server with 15 tools (SQL, EXPLAIN, health, indexes) plus a Gradio UI with LLM chat. | In name postgres | HOSTEDLOCAL | Open | 2h ago |
| 23 | Databases (read-only, switchable) Read-only SQL, MongoDB, Redis and Elasticsearch access, switchable mid-conversation. | In name databases | HOSTEDLOCAL | Open | 2h ago |
| 24 | postgres PostgreSQL MCP — query databases, inspect schemas, explain queries. | In name postgres | HOSTEDLOCAL | Open | 5h ago |
| 25 | Database for Holon Give each Holon app a private PostgreSQL store with atomic SQL batches and retry keys. | In name database | HOSTEDLOCAL | Open | 17h ago |
| 26 | mcp-postgres PostgreSQL schema exploration, read-only SQL & governed changes for AI agents. | In name postgres | HOSTEDLOCAL | Open | 18h ago |
| 27 | database-admin Database admin MCP: schema inspection, query optimization for PostgreSQL and MySQL | In name database | HOSTEDLOCAL | Open | 18h ago |
| 28 | RattleCheck for Supabase migrations Review local Supabase SQL migrations for PostgreSQL row-level security (RLS) and column grants. | In name supabase | HOSTEDLOCAL | Open | 18h ago |
| 29 | postgres-scout-mcp Scout your PostgreSQL databases with AI - safety features, monitoring, and data quality | In name postgres | HOSTEDLOCAL | Open | 18h ago |
| 30 | database-mcp-libsql MCP server for SQLite databases. Read-only by default, row caps, statement timeouts. | In name database | HOSTEDLOCAL | Open | 18h ago |
| 31 | PostgreSQL MCP server for PostgreSQL: local, Docker, RDS, Neon, Supabase, or behind an SSH bastion. | In name postgresql | HOSTEDLOCAL | Open | 18h ago |
| 32 | Postgres Secured (Aegis Zero-Trust) Enterprise PostgreSQL MCP secured by Aegis Zero-Trust to block unauthorized SQL injections. | In name postgres | HOSTEDLOCAL | Open | 18h ago |
| 33 | no2sql No2SQL MCP server for inferring SQL schema and ER diagrams from MongoDB databases. | In name sql | HOSTEDLOCAL | Open | 18h ago |
| 34 | 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 | 19h ago |
| 35 | read-only-local-postgres-mcp-server MCP server for read-only PostgreSQL database queries in Claude Desktop | In name postgres | HOSTEDLOCAL | Open | 19h ago |
| 36 | Supabase MCP by usefulapi Check project health and advisors, run read-only SQL, manage Edge Function secrets in Supabase. | In name supabase | HOSTEDLOCAL | Open | 2h ago |
| 37 | Diogenes Database Intelligence & SQL Engine MCP Database intelligence, AST SQL injection auditing, query optimization & schema guards. | In name database | HOSTEDLOCAL | Open | 2h ago |
| 38 | Percona Database Service Manage Percona databases and environments from an AI agent | In name database | HOSTEDLOCAL | Open | 5h ago |
| 39 | Supabase Your Supabase account in natural language: run SQL, apply migrations, manage tables, storage, edge f | In name supabase | HOSTEDLOCAL | Open | 17h ago |
| 40 | Forge — Supabase RLS & Debugging MCP Server Supabase Edge Functions MCP server with allowlisted tools and PostgreSQL RLS. | In name supabase | HOSTEDLOCAL | Open | 17h ago |
| 41 | Neon Zero-Trust Gateway Zero-Trust MCP gateway securing internal database tools behind an API key firewall. | In name neon | HOSTEDLOCAL | Open | 18h ago |
| 42 | Vericto: database guardrails for AI agents Database guardrails for AI agents: check SQL against your Vericto rules before it runs. | In name database | HOSTEDLOCAL | Open | 19h ago |
| 43 | Veto — SQL Safety & Cost Oracle Deterministic safety, correctness & cost gate that vets Postgres SQL before your AI agent runs it. | In name sql | HOSTEDLOCAL | Open | 19h ago |
| 44 | wgong-sqlite-mcp-server Explore, query, and inspect SQLite databases with ease. List tables, preview results, and view det… | In name sqlite | HOSTEDLOCAL | Open | 19h ago |
| 45 | MisterSandFR-supabase-mcp-selfhosted Manage Supabase projects end to end across database, auth, storage, realtime, and migrations. Moni… | In name supabase | HOSTEDLOCAL | Open | 19h ago |
| 46 | afgong-sqlite-mcp-server Explore your Messages SQLite database to browse tables and inspect schemas with ease. Run flexible… | In name sqlite | HOSTEDLOCAL | Open | 19h ago |
| 47 | Ekwo OS — open source accounting: ledger, invoices and VAT on your own Supabase or Postgres Double-entry books an agent keeps as the user: invoices, VAT returns, 178 country packs. | In name postgres | HOSTEDLOCAL | Open | 19h ago |
| 48 | sqlai.dev SQL Verifier Executes SQL in a real ephemeral database: rows, typed errors with suggestions, plans, diffs. | In name sql | HOSTEDLOCAL | — | 18h ago |
| 49 | hypequery ClickHouse Governed ClickHouse analytics for agents: named datasets and metrics as tools, never raw SQL. | In name clickhouse | HOSTEDLOCAL | Open | 41m ago |
FAQ
What is the best MCP server for SQL querying?
By relevance and readiness, strut-stack-sql, sqlike-mcp and database come first: the use case appears in their name. Check each page for how to connect and what keys it needs.
How many MCP servers are there for SQL querying?
Electra Index lists 1,221 active MCP servers for SQL querying from the Official MCP Registry. 514 offer a hosted endpoint and 939 publish their source code.
Is there a hosted MCP server for SQL querying, with nothing to install?
Yes. sqlize.online, Dataset to Postgres, Supabase & MySQL (Database Push) and DataClawe — Database as a Utility 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.