MCP servers for databases
34 researched servers, checked November 2026. No rankings: pick by how each one runs and what it limits.
A database MCP server lets an AI assistant look at your schema and run queries for you. That is useful for exploring an unfamiliar database or drafting a migration, and risky when the connection points at production. The single most important difference between the servers below is how they handle writes, and they don't agree.
Some are read-only by design. Materialize rejects INSERT, UPDATE and CREATE in every tool, and Starburst Galaxy only allows SELECT, SHOW and EXPLAIN. Others ship a read-only switch you have to remember to turn on: MongoDB needs --readOnly, InfluxDB needs its readonly tool profile, and Supabase recommends read_only=true because execute_sql can change real data otherwise. Couchbase goes the other way and starts read-only until you opt in to writes. A few, such as TiDB, StarRocks and SingleStore, pass the agent's SQL straight through, so the database user you connect with is the only boundary.
That makes the connecting user the safest place to set limits, whatever the server offers. Create a role with SELECT on the schemas the assistant needs, and give it nothing else. Redis has no read-only flag at all, so its page suggests an ACL user and an allowlist of tools instead.
The second difference is where the server runs. Prisma Postgres and SurrealDB Cloud have hosted endpoints you add by URL; most others run locally with npx or uvx and read connection details from environment variables. Several only cover the vendor's cloud product: Turso's server manages Turso Cloud, not local SQLite files, and TimescaleDB's works with Tiger Cloud services.
Maturity varies too. Neo4j's servers are Labs projects without an SLA, PocketBase's is described by its author as a work in progress, and the MySQL server is a community project rather than an Oracle product. The table shows each server's main limitation; open a server's page for its tools, setup and sources.
What to check before you connect one
Use a limited database user
Grant only what the assistant needs. For servers that pass SQL through, this is the only real limit.
Turn on read-only where it exists
Check whether read-only is the default or a flag. MongoDB, InfluxDB and Supabase need it set; Couchbase starts read-only.
Check what it connects to
Some servers cover only the vendor's cloud service, not a self-hosted or local database.
Keep production separate
Point the assistant at a branch, replica or staging database where the server supports it.
The servers compared
"Capability areas" counts the groups of tools on each server's page, not individual tools. The limitation is the first one its page lists.
| Server | Runs as | Capability areas | Main limitation |
|---|---|---|---|
| Amazon Redshift MCP Server | See setup | 6 | In read-write mode a statement without a transaction takes effect at once with no undo, and the README says the database user's privileges, not the server, are the real security boundary. |
| Apache Pinot MCP Server | See setup | 6 | read_query only accepts one read-only SELECT statement; the README calls this a guardrail, not a replacement for Pinot's own authorization. |
| CockroachDB MCP Server | See setup | 5 | The server does not limit which tables a statement touches; the SQL role's privileges are the only boundary. |
| Convex MCP Server | See setup | 5 | Production access is deliberately limited; enabling more needs explicit dangerous flags. |
| Couchbase MCP Server | See setup | 6 | Read-only mode is the default, so every write tool is missing until CB_MCP_READ_ONLY_MODE=false is set, and once it is set an agent can delete scopes, collections and indexes permanently. |
| Dremio MCP Server | See setup | 6 | RunSqlQuery is described as running SELECT queries; creating views requires setting allow_dml in the config, so check that flag before giving the server to an agent. |
| DynamoDB MCP Server | Local (uvx) | 5 | It does not query or modify items in your existing tables. |
| Firebolt MCP Server | See setup | 5 | Cursor does not support MCP resources, so the server only works there with FIREBOLT_MCP_DISABLE_RESOURCES=true, which drops the resource lists. |
| InfluxDB MCP Server | See setup | 6 | Without INFLUX_MCP_TOOL_PROFILE=readonly the server exposes the full operator profile, including delete_database and regenerate_operator_token, which the README describes as irreversible. |
| Materialize MCP Server | Hosted (add by URL) | 5 | Every tool is read-only and accepts one statement per call; INSERT, UPDATE and CREATE are rejected. |
| Milvus MCP Server | See setup | 5 | There is no hosted endpoint or packaged install in the README; you run the server yourself from a clone with uv and point it at your own Milvus. |
| MongoDB MCP Server | Local (npx) | 5 | Read-only is not the default; you have to pass --readOnly yourself, which is easy to forget when copying a config. |
| MySQL MCP Server | Local (npx) | 5 | It is a community project, not an official MySQL or Oracle product. It is actively maintained (v2.0.9 released June 2026), but check recent activity before depending on it. |
| Neo4j MCP Server | Local (uvx) | 5 | These are Labs servers with no SLA or compatibility guarantees; for the supported product server, Neo4j points to neo4j/mcp. |
| Neon MCP Server | See setup | 5 | Without category filters the full tool list is very long, which costs context and can confuse tool choice. |
| OpenSearch MCP Server | See setup | 6 | Write operations are allowed by default (OPENSEARCH_SETTINGS_ALLOW_WRITE is true), and GenericOpenSearchApiTool can call any endpoint, so disable writes or restrict categories for production clusters. |
| PlanetScale MCP Server | See setup | 5 | Organisation query access defaults to read and write, so write access to production is possible unless an admin restricts it; prefer read-only scopes. |
| PocketBase MCP Server | See setup | 4 | Described by its author as a work in progress. |
| Postgres MCP Pro | See setup | 6 | Unrestricted mode gives the agent full read and write access to data and schema, so it is only meant for development databases. |
| Prisma MCP Server | Hosted (add by URL) | 6 | Prisma warns that tools which change or delete resources can cause data loss or interrupt live traffic, so check the workspace before approving a call. |
| QuestDB MCP Server | Local (npx) | 5 | Needs a QuestDB Web Console open in a browser; it does not connect to the database directly. |
| Redis MCP Server | See setup | 5 | There is no read-only flag. Use a Redis ACL user to limit what commands run, and set MCP_REDIS_ALLOWED_TOOLS to a comma-separated list to limit which tools the agent sees. |
| SingleStore MCP Server | Local (uvx) | 6 | run_sql passes the agent's query straight to the workspace, so the server can change data as far as the signed-in account's database permissions allow. |
| Starburst MCP Server | Hosted (add by URL) | 6 | Only read-only statements are allowed; Galaxy lists SELECT, SHOW and EXPLAIN, and write or DDL operations are refused. |
| StarRocks MCP Server | See setup | 6 | write_query runs DDL and DML and commits automatically, so the StarRocks user you configure decides how much damage an agent can do; a read-only account is the safer choice. |
| Supabase MCP Server | See setup | 5 | Connected to production with write access, execute_sql can change or delete real data. Use read_only=true and a development project where you can. |
| SurrealDB MCP Server | Hosted (add by URL) | 6 | The hosted server only covers SurrealDB Cloud; a self-hosted database needs the separate Embedded MCP server. |
| TiDB MCP Server | See setup | 6 | db_execute runs any write or DDL statement, including DROP, so connect with a user whose privileges match what you want the agent to touch. |
| TimescaleDB MCP Server | See setup | 6 | It works with Tiger Cloud services only and inherits whatever account and project the CLI is logged into. |
| Turso MCP Server | See setup | 5 | It manages Turso Cloud only; it does not work with local SQLite or libSQL files. |
| Upstash MCP Server | Local (npx) | 5 | The local stdio server is unmaintained; use the remote one. |
| Xata MCP Server | See setup | 4 | Hosted only: no local or offline option. |
| YugabyteDB MCP Server | See setup | 6 | Version 2 is a release candidate, so you must pin 2.0.0rc2 or allow pre-releases until the stable release is published. |
| Zilliz MCP Server | See setup | 6 | It targets Zilliz Cloud and needs a Zilliz Cloud API key, so a self-hosted Milvus instance is not the main path here. |
Setting them up
Server pages with a hosted URL or a single npm or PyPI package have a copy-ready config for Claude Code, Cursor and VS Code. To combine several servers in one file, use the MCP config generator; the MCP config cheat sheet shows where each client keeps its file.