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.

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

Unknown evidence is never counted as a pass. Scores are comparative signals, not a guarantee of safety or suitability.

Other tasks

Suggest a task or tool

Suggestion type

Task quick view