Best MCP servers for SQL
We found 254 MCP servers for SQL in the catalog; these are the 15 that rank highest. The order comes from our rank, which weighs adoption, freshness, documentation and publisher identity. Nobody can pay for a place on this list. LINQ to DB, MCP Server Motherduck and GeoLens lead it. PlanetScale and Keboola are published by the company that makes them. DBHub has the most GitHub stars here (3,716). 15 of the 15 had activity in the last 30 days. Remote servers need no local install; local ones run on your machine and can reach local files. Each entry lists why it made the list and links to its install page.
Updated Oct 26, 2026 · Built from catalog data; how we rank and grade
Top 15 of 254
- 1LINQ to DB
linq2db
Inspect database schemas and execute SQL queries across multiple database providers with LINQ to DB.
- 3.3K GitHub stars
- Active in the last 30 days
- Open source (MIT)
★ 3.3KLast active Oct 23, 2026Local (stdio)Claude Code, Codex, VS Code, Cursor +2
AFreshness: A–Security: not graded yet - 2MCP Server Motherduck
motherduckdb
SQL analytics and data engineering for AI Assistants and IDEs
- Active in the last 30 days
- Open source (MIT)
★ 534↓ 5K/wkLast active Oct 7, 2026Local (stdio)Claude Code, Codex, VS Code, Cursor +2
AFreshness: A–Security: not graded yet - 3GeoLens
geolens-io
Read-only access to a self-hosted GeoLens spatial catalog: datasets, features, maps, sandboxed SQL.
- Active in the last 30 days
- Open source (Apache-2.0)
★ 281↓ 554/wkLast active Oct 24, 2026Local (stdio)Claude Code, Codex, VS Code, Cursor +2
AFreshness: A–Security: not graded yet - 4DexSQL
lsposed.org
SQL for Android APK and DEX files: classes, methods, strings, references and smali.
- Active in the last 30 days
★ 229Last active Oct 18, 2026Local (stdio)Claude Desktop
AFreshness: A–Security: not graded yet - 5DBHub
bytebase
Token-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLite
- Most GitHub stars here (3,716)
- Most weekly downloads here (17.1K)
- Active in the last 30 days
★ 3.7K↓ 17.1K/wkLast active Oct 21, 2026Local (stdio)Claude Code, Codex, VS Code, Cursor +2
AFreshness: A–Security: not graded yet - 6StackQL MCP Server
stackql
SQL-native query and provisioning engine for cloud infrastructure, served.
- 1.1K GitHub stars
- Active in the last 30 days
- Open source (MIT)
★ 1.1K↓ 165/wkLast active Oct 24, 2026Local (stdio)Claude Code, Codex, VS Code, Claude Desktop +2
AFreshness: A–Security: not graded yet - 7Orionbelt Semantic Layer
ralfbecher
API-first semantic layer MCP server compiling YAML models into dialect-specific SQL
- Active in the last 30 days
★ 101↓ 245/wkLast active Oct 24, 2026Local (stdio)Claude Code, Codex, VS Code, Cursor +2
AFreshness: A–Security: not graded yet - 8Faucet
faucetdb
SQL database to MCP tools and REST API: PostgreSQL, MySQL, SQL Server, Oracle, SQLite, Snowflake.
- Runs locally or as a remote server
- Active in the last 30 days
- Open source (MIT)
★ 164↓ 53/wkLast active Oct 18, 2026Local (stdio), Remote (HTTP)Claude Code, Codex, VS Code, Cursor +2
AFreshness: A–Security: not graded yet - 9
Magic Cloudpolterguy
Generate secured CRUD APIs over your database, run SQL, manage files, tasks and a headless browser
- 1.2K GitHub stars
- Remote server, no local install
- Active in the last 30 days
★ 1.2KLast active Oct 25, 2026Remote (HTTP)
AFreshness: A–Security: not graded yet - 10PlanetScale
planetscaleOfficial
Connect to PlanetScale databases, branches, schema, query insights, and execute SQL
- Published by the vendor
- Remote server, no local install
- Active in the last 30 days
★ 5Last active Oct 11, 2026Remote (HTTP)Claude Code, VS Code, Cursor, Windsurf
AFreshness: A–Security: not graded yet - 11sqlserver.rules
ErikEJ
Analyze T-SQL scripts for design, naming, and performance issues and prevent bad practices.
- Active in the last 30 days
- Open source (MIT)
★ 242Last active Oct 15, 2026Local (stdio)Claude Code, Codex, VS Code, Cursor +2
AFreshness: A–Security: not graded yet - 12Schemagate
ashishsinha1602
Identity-scoped schema selection for text-to-SQL.
- Active in the last 30 days
- Open source (Apache-2.0)
★ 132↓ 1.2K/wkLast active Oct 24, 2026Local (stdio)Claude Code, Codex, VS Code, Cursor +2
AFreshness: A–Security: not graded yet - 13GoSQLX
ajitpratap0
SQL validation, formatting, parsing, metadata extraction, linting, and security analysis.
- Remote server, no local install
- Active in the last 30 days
- Open source (Apache-2.0)
★ 120Last active Oct 22, 2026Remote (HTTP)Claude Code, VS Code, Cursor, Windsurf
AFreshness: A–Security: not graded yet - 14Query Weaver
falkordb.com
An MCP server for Text2SQL: transforms natural language into SQL using graph schema understanding.
- 1.1K GitHub stars
- Remote server, no local install
- Active in the last 30 days
★ 1.1KLast active Oct 19, 2026Remote (HTTP)
AFreshness: A–Security: not graded yet - 15Keboola
keboola.comOfficial
Connect your AI assistants to Keboola and expose your data, transformations, SQL queries,...
- Published by the vendor
- Runs locally or as a remote server
- Active in the last 30 days
★ 85↓ 916/wkLast active Oct 24, 2026Local (stdio), Remote (HTTP)Claude Code, VS Code, Codex, Cursor +2
AFreshness: A–Security: not graded yet