Skip to content
Agentmart
Submit a tool

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

  1. 1
    LINQ 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

  2. 2

    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

  3. 3
    GeoLens

    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

  4. 4
    DexSQL

    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

  5. 5
    DBHub

    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

  6. 6

    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

  7. 7

    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

  8. 8
    Faucet

    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

  9. 9
    Magic Cloud

    polterguy

    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)

  10. 10
    PlanetScale

    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

  11. 11

    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

  12. 12
    Schemagate

    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

  13. 13
    GoSQLX

    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

  14. 14
    Query 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)

  15. 15
    Keboola

    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