Best MCP servers for database queries
Ranked for the task “query a SQL database”. Relevance comes from retrieval and a dedicated reranker; the rest comes from recorded measurements.
33 servers ranked by task relevance and recorded signals. How ranking works.
| # | Server | Recorded evidence | Grade | Score | |
|---|---|---|---|---|---|
| 1 | sh.valv/mcpLet coding agents query any SQL database safely. Read-only by default and scoped by your policies. |
| — | 0.717 | Scorecard |
| 2 | io.github.linq2db/linq2db.cliInspect database schemas and execute SQL queries across multiple database providers with LINQ to DB. |
| — | 0.695 | Scorecard |
| 3 | io.github.dann26parr69/aifordatabase-mcpQuery any database in plain English or SQL through a guardrailed, read-only data layer. |
| — | 0.644 | Scorecard |
| 4 | app.datarunner/datarunnerQuery, monitor and schedule SQL across your databases: schemas, read-only SQL, alerts, hosts. |
| — | 0.632 | Scorecard |
| 5 | io.github.John0King/adomcpDatabase MCP server for schema discovery, comments, and SQL queries. |
| — | 0.618 | Scorecard |
| 6 | io.github.pattrnlabs/grainRun SQL queries and inspect database schemas through safe, visible MCP tools. |
| — | 0.618 | Scorecard |
| 7 | com.googleapis.sqladmin/mcpCreate, manage, and query your Google Cloud SQL resources. |
| — | 0.606 | Scorecard |
| 8 | io.github.fadnavismehul/sql-previewRun governed SQL queries and inspect database schemas from MCP agents. |
| — | 0.605 | Scorecard |
| 9 | com.jamsql/jam-sql-studioLets AI agents query SQL Server, PostgreSQL, MySQL, Oracle and SQLite via the Jam SQL Studio app. |
| — | 0.601 | Scorecard |
| 10 | com.clauxel.dbqueryguard/dbqueryguard-mcpPaid remote MCP for governed database query review, SQL simulation, approvals, and audits. |
| — | 0.584 | Scorecard |
| 11 | ai.smithery/wgong-sqlite-mcp-serverExplore, query, and inspect SQLite databases with ease. List tables, preview results, and view det… |
| — | 0.567 | Scorecard |
| 12 | io.github.seayniclabs/berthDatabase management — query, schema inspection, migrations for PostgreSQL, MySQL, SQLite. |
| — | 0.543 | Scorecard |
| 13 | com.dbconvert/streamsRead-only SQL across your PostgreSQL, MySQL, S3 buckets and local data files, in one query. |
| — | 0.482 | Scorecard |
| 14 | io.github.Evozim/query-forgeEnterprise SQL query optimizer and performance analyzer. |
| — | 0.462 | Scorecard |
| 15 | io.github.sezzlee/mssqlExplore and query Microsoft SQL Server read-only: catalogue search, schema and bounded queries. |
| — | 0.459 | Scorecard |
| 16 | io.github.Jarvis-27/mcp-db-agentQuery PostgreSQL databases in plain English — LLM-generated, safety-validated SQL. |
| — | 0.439 | Scorecard |
| 17 | io.github.Michael-WhiteCapData/tablebridge-mcpQuery a folder of CSV / Parquet / JSON files with SQL — one queryable source, read-only. |
| — | 0.386 | Scorecard |
| 18 | io.github.cpenniman12/text2sql-mcpAsk any SQL database in natural language. Agent explores schema, writes SQL, self-corrects. |
| — | 0.308 | Scorecard |
| 19 | com.aifordatabase/aifordatabaseAsk your databases questions in plain English, run read-only SQL and set up data alerts. |
| — | 0.308 | Scorecard |
| 20 | io.github.cybeleri/database-adminDatabase admin MCP: schema inspection, query optimization for PostgreSQL and MySQL |
| — | 0.303 | Scorecard |
| 21 | ai.waystation/postgresConnect to your PostgreSQL database to query data and schemas. |
| — | 0.239 | Scorecard |
| 22 | io.github.nightswatchhq/nuthatchQuery an EVM contract's indexed history with SQL, via a local nuthatch nest and nuthatch dev. |
| — | 0.232 | Scorecard |
| 23 | io.github.t8y2/dbxQuery databases from AI agents using connections configured in DBX. |
| — | 0.230 | Scorecard |
| 24 | io.github.rctruta/sqlbenchdagQuery pre-computed SQL engine benchmarks. Runs standalone, no server setup required. |
| — | 0.221 | Scorecard |
| 25 | io.github.infoinlet-marketplace/mcp-mysqlRead-only MySQL/MariaDB for AI agents — query, list/describe tables, health. SQL-guarded. |
| — | 0.221 | Scorecard |
| 26 | com.saturnsql/saturnsqlQuery Postgres, MySQL, SQL Server, Oracle, BigQuery, ClickHouse and Redshift from your AI client. |
| — | 0.183 | Scorecard |
| 27 | io.cayra/cayraAsk questions in plain language, get answers from your business database. No SQL required. |
| — | 0.174 | Scorecard |
| 28 | io.github.ugurcl/dbridge-mcpQuery SQLite, PostgreSQL, and MySQL in plain language - read-only, with column masking and limits. |
| — | 0.170 | Scorecard |
| 29 | ai.waystation/supabaseConnect to your Supabase database to query data and schemas. |
| — | 0.163 | Scorecard |
| 30 | io.github.kfireliyahu/emeraldThe database under the chat: a local SQLite file a model asks for rows, not notes to re-read. |
| — | 0.154 | Scorecard |
| 31 | io.github.atarkowska/fastmcp-sqltoolsA MCP server provides SQL database access with support for PostgreSQL, MySQL, and SQLite. |
| — | 0.110 | Scorecard |
| 32 | io.github.Optisol-Business/db-metadata-extractor-mcpExtract database metadata from PostgreSQL, Snowflake, SQL Server, BigQuery, and Oracle. |
| — | 0.094 | Scorecard |
| 33 | io.github.deepeshd87/mcp-sql-querystoreRead-only SQL Server diagnostics for LLM agents: Query Store, waits, plans, indexes |
| — | 0.091 | Scorecard |
Unknown evidence is never counted as a pass. Scores are comparative signals, not a guarantee of safety or suitability.