Skip to content
Topic

SQL MCP servers that let AI write and run queries

MCP servers that turn natural language into SQL against Postgres, MySQL, SQL Server, Snowflake, BigQuery, and DuckDB, with schema context included.

274 matching serversRanked by trust score
Guide

What to know about SQL MCP servers

SQL servers are the subset of database servers built around one idea: give the model enough schema context to write correct queries, then run them. They usually expose a small set of tools, such as listing tables, describing columns, sampling rows, and executing a statement, which keeps prompts short and lets the model check its work.

Beyond transactional databases, this topic covers analytical engines. Snowflake, BigQuery, Databricks, ClickHouse, and DuckDB all have SQL-focused servers that suit reporting questions over large tables. DuckDB servers are popular for querying local CSV and Parquet files with SQL, with no database server to run.

Query cost is the hidden risk with warehouses. An agent that scans a large table repeatedly can run up a bill quickly. Prefer servers that support dry runs or byte limits, and give them a warehouse or project with spending controls.

Top matches

SQL MCP servers

The 12 strongest of 274 matching servers. Servers that name the topic directly come first, then by trust score.

  • Trust score 67 of 100, Good

    Read-only MCP server for Trino: queries run as the verified user, and Trino's own policies decide.

    Registry
    LicenseQualityMaintenanceLicense: A. Apache-2.0 is a permissive open source license.Quality: Not graded. No README or tool list has been captured yet.Maintenance: A. Last commit or release 5 days ago.
    4 stars—/wk weekly downloads— tools
  • Trust score 62 of 100, Good

    Hosted BigQuery MCP server for Claude, ChatGPT and Cursor, with each action switched per account.

    RegistryRemote
    LicenseQualityMaintenanceLicense: A. MIT is a permissive open source license.Quality: Not graded. No README or tool list has been captured yet.Maintenance: A. Last commit or release 28 days ago.
    0 stars—/wk weekly downloads— tools
  • Trust score 62 of 100, Good

    Hosted SQL Server MCP server for Claude, ChatGPT and Cursor, with each action switched per account.

    RegistryRemote
    LicenseQualityMaintenanceLicense: A. MIT is a permissive open source license.Quality: Not graded. No README or tool list has been captured yet.Maintenance: A. Last commit or release 28 days ago.
    0 stars—/wk weekly downloads— tools
  • Trust score 62 of 100, Good

    Token-efficient MCP server for MySQL, PostgreSQL, SQLite, DuckDB, SQL Server, and ClickHouse

    Registry
    LicenseQualityMaintenanceLicense: A. MIT is a permissive open source license.Quality: Not graded. No README or tool list has been captured yet.Maintenance: C. Last commit or release 3 months ago.
    0 stars—/wk weekly downloads— tools
  • Grain SQL logo
    Trust score 55 of 100, Fair

    Run SQL queries and inspect database schemas through safe, visible MCP tools.

    Registry
    LicenseQualityMaintenanceLicense: Not graded. No license is recorded for this server.Quality: Not graded. No README or tool list has been captured yet.Maintenance: Not graded. No commit or release date has been recorded.
    — stars—/wk weekly downloads— tools
  • Jam SQL Studio logo
    Trust score 55 of 100, Fair

    Jam SQL Studio

    Unknown author

    Lets AI agents query SQL Server, PostgreSQL, MySQL, Oracle and SQLite via the Jam SQL Studio app.

    Registry
    LicenseQualityMaintenanceLicense: Not graded. No license is recorded for this server.Quality: Not graded. No README or tool list has been captured yet.Maintenance: Not graded. No commit or release date has been recorded.
    — stars—/wk weekly downloads— tools
  • Trust score 55 of 100, Fair

    MCP server for SQL Server metadata, parameterized queries, plan analysis, and writes opt-in.

    Registry
    LicenseQualityMaintenanceLicense: Not graded. No license is recorded for this server.Quality: Not graded. No README or tool list has been captured yet.Maintenance: Not graded. No commit or release date has been recorded.
    — stars—/wk weekly downloads— tools
  • Trust score 55 of 100, Fair

    Minimal, read-only, PII-safe MCP server for SQL databases.

    Registry
    LicenseQualityMaintenanceLicense: Not graded. No license is recorded for this server.Quality: Not graded. No README or tool list has been captured yet.Maintenance: Not graded. No commit or release date has been recorded.
    — stars—/wk weekly downloads— tools
  • Trust score 55 of 100, Fair

    Explore and query Microsoft SQL Server read-only: catalogue search, schema and bounded queries.

    Registry
    LicenseQualityMaintenanceLicense: Not graded. No license is recorded for this server.Quality: Not graded. No README or tool list has been captured yet.Maintenance: Not graded. No commit or release date has been recorded.
    — stars—/wk weekly downloads— tools
  • Trust score 55 of 100, Fair

    Format SQL queries into readable layouts locally. No network and no key.

    Registry
    LicenseQualityMaintenanceLicense: Not graded. No license is recorded for this server.Quality: Not graded. No README or tool list has been captured yet.Maintenance: Not graded. No commit or release date has been recorded.
    — stars—/wk weekly downloads— tools
  • Expense Budget Tracker logo
    Trust score 52 of 100, Fair

    Track expenses, budgets, balances, transfers, and multi-currency reports with OAuth-secured tools.

    RegistryRemote
    LicenseQualityMaintenanceLicense: Not graded. No license is recorded for this server.Quality: Not graded. No README or tool list has been captured yet.Maintenance: Not graded. No commit or release date has been recorded.
    — stars—/wk weekly downloads— tools
  • Trust score 52 of 100, Fair

    64-bit Twitter Snowflake-compatible distributed unique ID generator with clock backwards drift prote

    Registry
    LicenseQualityMaintenanceLicense: Not graded. No license is recorded for this server.Quality: Not graded. No README or tool list has been captured yet.Maintenance: Not graded. No commit or release date has been recorded.
    — stars—/wk weekly downloads— tools
Setup

How to install one

  1. Compare the shortlist. AKKO MCP server for Trino leads this topic. Open two or three listings and compare their tools, transport, and required API keys.
  2. Copy the config for your client. Each listing has an install guide, for example Claude Desktop, Claude Code, Cursor, or VS Code. The client guides show where each config file lives.
  3. Scope credentials, then restart. Use the narrowest token or folder the server needs, restart the client, and check that the new tools appear.
FAQ

SQL MCP questions

How accurate is AI-generated SQL through MCP?

Accuracy improves sharply when the model can read the schema first, which is what SQL servers provide. Complex joins still benefit from a quick review, and asking the model to explain its query before running it catches most mistakes.

Can MCP servers query Snowflake or BigQuery?

Yes. Both have official and community servers that list datasets, describe tables, and run queries. Set a byte or credit limit on the account the server uses.

Can I run SQL on CSV files with MCP?

DuckDB and SQLite servers can query local CSV, JSON, and Parquet files directly. That is a fast way to explore an export without loading it into a database first.

Keep exploring
All topics