Top 10 MCP Servers for Databases

Start with DBHub for schema exploration across SQL engines. Use Google’s MCP Toolbox when your team wants to publish a few named operations with fixed parameters. For managed projects, Supabase and Neon expose platform context that a generic SQL connection never sees. The shortlist also covers purpose-built connections for documents, events, metrics, caches and vectors.

See the ranked list
On this page

On this page

How we ranked the picks

The editorial order puts broad SQL choices first and then moves through managed platforms and specialist engines. We checked tool references for schema discovery, permissions, query limits and connection requirements. Start with a development fixture and distinguish any server-side switches from the actual grants on the database credential.

Documentation checked

The ranked shortlist

  1. DBHubFlexible schema and SQL inspection across engines
  2. MCP Toolbox for DatabasesPublishing fixed, parameterized database operations
  3. Supabase MCPSupabase schema and migration history
  4. Neon MCP ServerPostgres branch inspection and migration rehearsal
  5. MongoDB MCP ServerDocument collections, indexes and Atlas context
  6. ClickHouse MCP ServerRead-only event and telemetry analysis
  7. MotherDuck MCP ServerDuckDB files and small analytical extracts
  8. Snowflake-managed MCPWarehouse metrics built on a governed semantic view
  9. redisctl MCP ServerCache, key metadata and Redis deployment visibility
  10. Qdrant MCP ServerSemantic lookup in a scoped vector collection

What each server does

  1. 1. DBHub

    Flexible schema and SQL inspection across engines

    How to connect

    Self-hosted, database credentials
    Launch command
    npx -y @bytebase/dbhub@latest --config /absolute/path/to/dbhub.toml --transport stdio

    Use this as the server launch command in your client’s MCP settings. Replace the sample path with your config file. Reference a read-only database DSN from the server environment, for example dsn = "${DBHUB_DSN}", and set readonly = true on execute_sql.

    Open setup docs for DBHub
    Try this first

    Find the orders table in each staging source and report the type and nullability of order_id plus the index names. Ask for metadata only before issuing data queries.

    DBHub project preview

    DBHub connects to engines including PostgreSQL, MySQL, SQLite and SQL Server. Its schema search can find tables, columns and indexes before you write SQL. A team can configure several sources with separate tool names, so the assistant can compare the same table in two development systems without swapping connection strings.

    Use a database login with minimal grants. Set read-only SQL and a row cap on the query tool, then set a query timeout on the source where its engine supports one. The row cap limits what the assistant receives. The timeout limits how long the database spends on the request.

  2. 2. MCP Toolbox for Databases

    Publishing fixed, parameterized database operations

    How to connect

    Self-hosted binary or container
    Launch command
    toolbox --config /absolute/path/to/tools.yaml --stdio

    Use this as the server launch command in your client’s MCP settings. Install the Toolbox binary and replace the sample path with your tools.yaml. Configure a staging data source and the specific SQL tools you want the client to see.

    Open setup docs for MCP Toolbox for Databases
    Try this first

    Expose a read-only lookup over a staging order_status view. Ask for fixture order QA-42 and expect exactly the fields defined by the tool, such as status and last_updated.

    MCP Toolbox for Databases project preview

    Google’s open-source Toolbox includes prebuilt toolsets for engines such as BigQuery, Spanner and PostgreSQL. Its stronger fit is a team that can define a query once and give it a stable name and parameters. A support assistant can request an allowed lookup without receiving a general-purpose SQL runner or needing to know the schema.

    You operate the server and configure the database identity. A broad prebuilt toolset may expose more functionality than the assistant needs. Define a narrow toolset and use a credential that can only reach the intended objects.

  3. 3. Supabase MCP

    Supabase schema and migration history

    How to connect

    Hosted OAuth or local Supabase CLI
    MCP URL
    https://mcp.supabase.com/mcp?project_ref=YOUR_PROJECT_REF&read_only=true

    Paste the URL into your client’s MCP settings. Replace YOUR_PROJECT_REF with the reference for a development project. Add it as a remote HTTP server, sign in through Supabase, and review the project's access on the OAuth consent screen.

    Open setup docs for Supabase MCP
    Try this first

    Point the read-only connection at your development project. Ask for the columns in profiles and the most recent matching migration, and return the migration identifiers and current schema.

    Supabase MCP project preview

    Use Supabase MCP to inspect an application’s tables and migration history in the same project context. The hosted connection can be narrowed to one project and specific feature groups, such as database and docs. Read-only SQL then lets the assistant check a schema assumption before you draft a migration separately.

    Supabase recommends using a development project. The project reference in the server URL narrows what the connection exposes. If you also need a credential restricted to that project, review the OAuth grant itself.

  4. 4. Neon MCP Server

    Postgres branch inspection and migration rehearsal

    How to connect

    Hosted OAuth or local API-key setup
    MCP URL
    https://mcp.neon.tech/mcp?readonly=true&projectId=YOUR_PROJECT_ID&roleName=YOUR_READER_ROLE

    Paste the URL into your client’s MCP settings. Replace both placeholders with your development project ID and an existing read-only Postgres role. Add this as remote HTTP and sign in to Neon.

    Open setup docs for Neon MCP Server
    Try this first

    Compare table definitions on the feature and staging branches for subscriptions. Report which columns or constraints differ and name both branches used for the comparison.

    Neon MCP Server project preview

    Neon is strongest when your team uses database branches as part of review. The MCP can inspect branch schema and query plans, and write-enabled connections can prepare a migration on a temporary branch. For hosted read-only work, Neon documents a project filter and a pinned Postgres role, so database grants can govern SQL access as well.

    Migration preparation and completion are separate write-enabled steps. A read-only connection can inspect your work but cannot prepare or promote it. Check the named project and parent branch before approving a write.

  5. 5. MongoDB MCP Server

    Document collections, indexes and Atlas context

    How to connect

    Local MongoDB connection or Atlas-managed OAuth
    Launch command
    npx -y mongodb-mcp-server@latest --readOnly

    Use this as the server launch command in your client’s MCP settings. Provide MDB_MCP_CONNECTION_STRINGS to the local server as a JSON map with a preconfigured entry containing your staging MongoDB URI. Use a database login with read-only grants.

    Open setup docs for MongoDB MCP Server
    Try this first

    In a fixture database, report the indexes on orders and sample five test documents with only order status and createdAt. Include which index supports the status filter.

    MongoDB MCP Server project preview

    MongoDB’s server keeps document queries in their native vocabulary. Inspect collections and indexes, then ask for a narrow projection or a small aggregation. If your data is in Atlas, MongoDB recommends its hosted OAuth integration. A self-managed deployment can use the local server with a database connection string.

    The local server’s read-only configuration excludes create, update and delete tools. Its optional index check can reject collection scans. Use a dedicated database role as well, especially when inspecting collections that mix operational and sensitive fields.

  6. 6. ClickHouse MCP Server

    Read-only event and telemetry analysis

    How to connect

    Self-hosted or ClickHouse Cloud
    Launch command
    uv run --with mcp-clickhouse --python 3.12 mcp-clickhouse

    Use this as the server launch command in your client’s MCP settings. Provide CLICKHOUSE_HOST, CLICKHOUSE_USER and CLICKHOUSE_PASSWORD in the local server's environment. Use the port for your server's HTTP interface and a read-only database role. Cloud users can follow the separate hosted setup.

    Open setup docs for ClickHouse MCP Server
    Try this first

    With the self-hosted server, inspect the staging events schema and estimate a 24-hour query grouped by event_name. Return the estimate and five leading counts only if the expected reads fit the agreed budget.

    ClickHouse MCP Server project preview

    ClickHouse’s server pairs database and table discovery with read-only SQL by default. The self-hosted server’s table listing can include detailed column metadata, and its query tool can estimate how many rows or parts an aggregation will touch. ClickHouse Cloud offers a separate managed connection for scoped SELECT queries.

    A small result set can still require considerable compute. Use bounded time filters, inspect the estimated reads when the tool supports it, and keep server-side limits on the workload. Database grants enforce what the connection can access.

  7. 7. MotherDuck MCP Server

    DuckDB files and small analytical extracts

    How to connect

    Local DuckDB or hosted MotherDuck
    Launch command
    uvx mcp-server-motherduck --db-path /absolute/path/to/fixture.duckdb

    Use this as the server launch command in your client’s MCP settings. Install uv, then replace the sample path with your local DuckDB file. This starts the server in read-only mode. For data hosted by MotherDuck, use its separate OAuth connection.

    Open setup docs for MotherDuck MCP Server
    Try this first

    Open a DuckDB fixture built from a CSV export. Check the type of created_at and return the four latest weekly order counts with the SQL used.

    MotherDuck MCP Server project preview

    This server runs DuckDB SQL against a local database file, an in-memory instance, or MotherDuck. The schema tools show databases, tables, views and columns so the assistant can check the types before aggregating. Point it at a small, isolated fixture when you want to inspect a CSV or Parquet-backed analysis without setting up a shared database.

    Read-only database mode does not confine filesystem access. Use an isolated working environment for a local process. The local server caps returned rows and text size, so aggregate before returning data to the client.

  8. 8. Snowflake-managed MCP

    Warehouse metrics built on a governed semantic view

    How to connect

    Hosted in your Snowflake account

    Ask your Snowflake admin for the MCP server URL and the OAuth setup for your client. The URL is specific to the account, database, schema and server object.

    Open setup docs for Snowflake-managed MCP
    Try this first

    Ask the governed demo agent for weekly net revenue by region. Check the returned figure against the semantic view’s revenue definition and record the time period and region filters.

    Snowflake can publish a configured Cortex Agent, Cortex Search service or Cortex Analyst semantic view through a managed server object. A metrics team can expose an agent that knows the approved definition of net revenue and which datasets to consult. Direct SQL is a separate choice, with settings for read-only access, the query timeout and the compute warehouse.

    The intended account role needs privileges on the MCP server and its backing objects. For consistent business definitions, publish the governed agent on its own and keep raw SQL in a separate connection if the team needs it.

  9. 9. redisctl MCP Server

    Cache, key metadata and Redis deployment visibility

    How to connect

    Local binary, Redis connection or CLI profile
    Launch command
    redisctl-mcp --tools database

    Use this as the server launch command in your client’s MCP settings. Provide REDIS_URL for a staging Redis instance in the local server's environment, or configure a database profile first. Install the redisctl-mcp binary and keep its default read-only mode.

    Open setup docs for redisctl MCP Server
    Try this first

    On the staging cache, inspect the type and TTL of three known QA session keys. Report which ones are missing or have no expiration without reading their values.

    redisctl MCP Server project preview

    The Redis-maintained redisctl server offers direct database tools and separate Cloud and Enterprise management toolsets. It can use the same configured profiles as redisctl, or connect to a development Redis database directly. For a suspected caching issue, key types and time-to-live are often enough to explain why an item disappears or persists.

    The default is read-only. Keep the enabled tool groups narrow and use an appropriate Redis ACL for the database connection. Preserve test key prefixes and avoid returning full values when metadata will answer the question.

  10. 10. Qdrant MCP Server

    Semantic lookup in a scoped vector collection

    How to connect

    Local server with local or hosted Qdrant
    Launch command
    uvx mcp-server-qdrant

    Use this as the server launch command in your client’s MCP settings. Set QDRANT_URL, COLLECTION_NAME and QDRANT_READ_ONLY=true in the local server's environment. Use QDRANT_API_KEY if your service requires it. Match EMBEDDING_MODEL to the existing collection.

    Open setup docs for Qdrant MCP Server
    Try this first

    Search the demo policy collection for returns on opened items, filter to the current policy version, and return the top three document IDs with the relevant snippets.

    Qdrant MCP Server project preview

    Qdrant is a fit when your assistant should search a vector collection by meaning. The server embeds the query and returns ranked matches, with optional metadata filters for supported fields. Use a collection-scoped key and read-only configuration when the assistant’s only job is retrieving snippets or test documents.

    The embedding model must be compatible with the collection’s vector shape. Using one collection and consistent embeddings matters more than raising the result limit when matches seem unrelated.

Choose by access model and what you need to inspect

  • Explore a schema or answer a known question

    Choose DBHub when a developer needs to discover tables or compare two SQL sources. Choose Toolbox when multiple assistants should only call an approved query with predictable inputs and output.

  • Prepare a change on hosted Postgres

    Start with Supabase when migrations and Supabase project context are central. Choose Neon when you need a branch for rehearsal or comparison. Use staging and inspect the target before any change.

  • Use the native data model

    Use ClickHouse for time-bounded event aggregates, Snowflake for governed warehouse questions, MongoDB for collection and index inspection, Redis for cache metadata, and Qdrant for semantic retrieval.

Keep exploring

Top 10 MCP Servers for DevelopersTop 10 MCP Servers for ObservabilityTop 10 MCP Servers for Cloud DeploymentBrowse database serversHow to connect an MCP server
Esc

Type to search every entry. ↑↓ to move, Enter to open.