Compared · Databases & SQL · Claude Desktop
Best MCP servers for Databases & SQL in Claude Desktop
7 entries in the AgentTask Atlas catalog fit databases & SQL and have Claude Desktop setup instructions in their official README or docs. Claude Desktop reaches database servers in two ways. Hosted servers (Prisma, Render, ClickHouse Cloud and Elastic's Agent Builder endpoint on Serverless) are added as connectors under Customize → Connectors, and Claude calls them from Anthropic's cloud. Local servers (open-source ClickHouse, Redis, Pinecone, AWS's Aurora/RDS PostgreSQL server and, for existing installs only, the deprecated Elasticsearch container) go in claude_desktop_config.json and run on your computer, so they can reach databases on your own network. Every entry here reads or changes real data, so the decision that matters most is which database user, key or workspace each connection gets. ClickHouse is read-only by default, Redis and AWS's PostgreSQL server rely on a read-only database user (AWS adds a best-effort read-only mode), and Prisma, Render and Pinecone act with whatever the signed-in account or key allows. The steps come from the MCP project's Claude Desktop guide, the Claude Help Center and each vendor's own Claude Desktop instructions.
Based on official docs, not hands-on tested. Claude Desktop steps checked 2026-11-24; catalog entries verified 2026-11-24 to 2026-11-25. Not ranked by a score: entries that document more clients come first.
- Hosted (remote URL) option: Prisma MCP Server, Render MCP Server (hosted), AWS MCP Servers, ClickHouse MCP Server, Pinecone Developer MCP Server.
- Runs locally (npx, uvx, Docker, binary or CLI): Redis MCP Server, Elasticsearch MCP Server (deprecated).
- Credentials optional or depend on what you enable: Pinecone Developer MCP Server; every other entry needs an account login, OAuth grant, key or cloud identity.
| Name | Hosted | Credentials | License | Verdict |
|---|---|---|---|---|
| Prisma MCP Server Prisma | Yes | Required | Not stated (hosted service, no public source repository) | Pick it if you run Prisma Postgres or Prisma Compute and want the agent to query data, check backups or read deploy logs; review every destructive approval, it acts on live resources. |
| Render MCP Server (hosted) Render | Yes | Required | Apache-2.0 (render-oss/render-mcp-server); hosted service under Render terms | Pick it to spin up Render services, check deploys and read logs or metrics from the agent; it can rewrite env vars and trigger deploys, so review those calls. |
| AWS MCP Servers AWS Labs | Yes | Required | Apache-2.0 | Pick the specific AWS server you need; the docs server needs no credentials, others use your IAM profile. |
| ClickHouse MCP Server ClickHouse | Yes | Required | Apache-2.0 | Pick it to let the agent explore schemas and write analytical SQL against ClickHouse; keep write access off and connect with a read-only database user. |
| Pinecone Developer MCP Server Pinecone | Yes | Optional | Apache-2.0 | Pick it to prototype RAG and semantic search on Pinecone from your editor; use a key for a dev project only, since the agent can create indexes and upsert data. |
| Redis MCP Server Redis | — | Required | MIT | Pick it to let the agent inspect or cache data in Redis; connect it with a read-only ACL user unless writes are intended. |
| Elasticsearch MCP Server (deprecated) Elastic | — | Required | Apache-2.0 | Avoid for new setups: the official README marks it deprecated; use it only on existing installs. |
How to add them to Claude Desktop
1. Pick a connector or a local server based on where the database lives
The Help Center says a custom connector is called from Anthropic's cloud even in Claude Desktop, so the server must be reachable over the public internet on port 443; servers on a private network, behind a VPN or a firewall won't connect unless you allowlist Anthropic's IP ranges. That is fine for vendor-hosted endpoints (Prisma, Render, ClickHouse Cloud, Elastic Serverless). For a database on localhost, in a VPC or behind a VPN, use a local server in claude_desktop_config.json: it runs on your machine and uses your local network, but it is not available on claude.ai. Free plans can add one custom connector; on Team and Enterprise an Owner adds it under Organization settings → Connectors first.
2. Add Prisma, Render and ClickHouse Cloud as connectors
Open Customize → Connectors, click + Add, then Add custom connector, and enter the name and URL. Prisma's docs use the name Prisma; you sign in to the Prisma Console, select a workspace and approve access, then ask "List my Prisma databases" to check it. Render's docs say to search for the Render connector in the same screen, click Connect and finish the browser sign-in, then tell Claude which workspace to use ("Set my Render workspace to …"). For ClickHouse Cloud, first open the service, click Connect, choose Connect with MCP and turn MCP on (this needs the control-plane:service:manage-mcp permission); ClickHouse's steps for Claude's interface then add a custom connector named clickhouse-cloud and authenticate with OAuth. Prisma's docs also show a url entry for claude_desktop_config.json; if it does not load, use the connector.
Prisma → https://mcp.prisma.io/mcp Render → https://mcp.render.com/mcp (or the Render connector in the directory) clickhouse-cloud → https://mcp.clickhouse.cloud/mcp3. Elasticsearch: use Elastic's Agent Builder endpoint, not the deprecated server
Elastic's README marks the Elasticsearch MCP Server deprecated (critical security fixes only) and points to the Agent Builder MCP endpoint at {KIBANA_URL}/api/agent_builder/mcp, available in Elastic 9.2 and later (generally available since 9.3) and in Serverless projects. On Serverless, Elastic's guide has you create an OAuth client in Kibana, then in Claude Desktop add a custom connector with the name, the MCP server URL and the Client ID it shows (plus the Client Secret for confidential clients); the client must list https://claude.ai/api/mcp/auth_callback as a redirect URI, and the Elastic Cloud Serverless connector in Claude's directory is an alternative. On Elastic Stack, Elastic documents API-key auth through mcp-remote in claude_desktop_config.json: create a key with the feature_agentBuilder.read privilege (without it the endpoint returns 403) and read access only to the indices you want to expose, with an expiration date.
{ "mcpServers": { "elastic-agent-builder": { "command": "npx", "args": [ "mcp-remote", "https://<KIBANA_URL>/api/agent_builder/mcp", "--header", "Authorization:${AUTH_HEADER}" ], "env": { "AUTH_HEADER": "ApiKey <API_KEY>" } } } }4. Add local servers in claude_desktop_config.json
Open Settings → Developer → Edit Config (the Claude menu's Settings, not your account settings). The file is ~/Library/Application Support/Claude/claude_desktop_config.json on macOS, %APPDATA%\Claude\claude_desktop_config.json on Windows and ~/.config/Claude/claude_desktop_config.json on Linux. These blocks follow each vendor's Claude Desktop example: the ClickHouse README (uv run with Python 3.12), the Redis README (uvx with --url), Pinecone's docs (npx with PINECONE_API_KEY) and AWS's PostgreSQL server README (uvx with your AWS profile, here without --allow_write_query and with --privilege_check enforce). The ClickHouse and Redis READMEs say to replace uv and uvx with their absolute paths (which uv on macOS). Values in env are stored in plain text in this file.
{ "mcpServers": { "mcp-clickhouse": { "command": "/full/path/to/uv", "args": [ "run", "--with", "mcp-clickhouse", "--python", "3.12", "mcp-clickhouse" ], "env": { "CLICKHOUSE_HOST": "<clickhouse-host>", "CLICKHOUSE_PORT": "<clickhouse-port>", "CLICKHOUSE_USER": "mcp_reader", "CLICKHOUSE_PASSWORD": "<password>", "CLICKHOUSE_SECURE": "true", "CLICKHOUSE_VERIFY": "true" } }, "redis-mcp-server": { "command": "/full/path/to/uvx", "args": [ "--from", "redis-mcp-server@latest", "redis-mcp-server", "--url", "redis://readonlyuser:<password>@localhost:6379/0" ] }, "pinecone": { "command": "npx", "args": [ "-y", "@pinecone-database/mcp" ], "env": { "PINECONE_API_KEY": "<dev-project-api-key>" } }, "awslabs.postgres-mcp-server": { "command": "/full/path/to/uvx", "args": [ "awslabs.postgres-mcp-server@latest", "--privilege_check", "enforce" ], "env": { "AWS_PROFILE": "<your-aws-profile>", "AWS_REGION": "us-east-1", "FASTMCP_LOG_LEVEL": "ERROR" } } } }5. Give each local server a read-only database user
Open-source ClickHouse runs queries with readonly=1 unless you set CLICKHOUSE_ALLOW_WRITE_ACCESS=true, and destructive statements also need CLICKHOUSE_ALLOW_DROP=true; the README calls that second check best effort and says the real boundary is the ClickHouse user's grants. Redis's README shows a read-only ACL user and notes that ACLs limit what runs, not which tools Claude sees; a MCP_REDIS_ALLOWED_TOOLS allowlist was merged to the main branch on 2026-11-23 but is not in the 0.5.1 release on PyPI yet. AWS's PostgreSQL server enforces a read-only policy when --allow_write_query is absent, but its README calls that best effort and recommends a role with only CONNECT, USAGE and SELECT plus default_transaction_read_only; --privilege_check enforce makes it refuse superuser, rds_superuser or BYPASSRLS roles. Pinecone has no read-only switch, so use a key for a development project.
-- Redis (redis-cli): read-only ACL user from the Redis MCP README ACL SETUSER readonlyuser on >mypassword ~* +@read -@write -- PostgreSQL: read-only role adapted from the AWS PostgreSQL MCP README CREATE ROLE postgres_mcp_server_readonly WITH LOGIN PASSWORD 'change-me'; GRANT CONNECT ON DATABASE mydb TO postgres_mcp_server_readonly; GRANT USAGE ON SCHEMA public TO postgres_mcp_server_readonly; GRANT SELECT ON ALL TABLES IN SCHEMA public TO postgres_mcp_server_readonly; ALTER ROLE postgres_mcp_server_readonly SET default_transaction_read_only = on;6. Restart, check the tools and keep write tools behind approval
Quit Claude Desktop completely and reopen it after any config change. Click + in the chat box, then Connectors, to see each server and toggle it per conversation; in the Search and tools menu you can turn off tools you don't want Claude to call. If a local server is missing, check the JSON syntax and the logs: mcp.log and mcp-server-SERVERNAME.log in ~/Library/Logs/Claude (macOS), %APPDATA%\Claude\logs (Windows) or ~/.config/Claude/logs (Linux). Claude asks before it calls a tool; the Help Center advises Allow always only for tools you trust to run unsupervised. Research can call connector tools without asking again, so turn off write tools (Prisma's and Render's create and change tools, for example) before using it; Research does not call local MCP servers. Then ask for a low-impact read that names the server, such as "Use mcp-clickhouse to list the tables in the analytics database. Don't change anything."
- Read-only options documented by the vendors: open-source ClickHouse's default readonly=1, ClickHouse Cloud's run_select_query (SELECT only), Render's read-only SQL tool for Render Postgres, AWS's PostgreSQL server without --allow_write_query (best effort) and an Elastic Agent Builder API key limited to read privileges on the indices you choose. Prisma, Render (outside SQL) and Pinecone can create or change resources with the access you grant, and Redis depends on the ACL user you connect as.
- Prisma warns that tools that change or delete resources can cause data loss or interrupt live traffic. Its CLI guardrail against commands like prisma migrate reset --force applies to the Prisma CLI, not to MCP tool calls, so review approvals in Claude.
- Render's server can also create databases and services, update all environment variables of a service and trigger deploys. Its docs give an API-key option for Claude Desktop (npx mcp-remote https://mcp.render.com/mcp with an Authorization: Bearer ${RENDER_API_KEY} header and RENDER_API_KEY in env); the key reaches only the workspace and permissions you grant it.
- ClickHouse Cloud also supports headless API-key auth (HTTP Basic with the key ID and secret). ClickHouse's docs say the query tools then need a generic Query API endpoint on each service bound to that key, with a database role that only has read access; OAuth connections use your own SQL Console access instead.
- Existing installs of the deprecated Elasticsearch server run as a Docker image (docker.elastic.co/mcp/elasticsearch with ES_URL and ES_API_KEY, stdio mode). Its README says SSE is deprecated in favour of streamable HTTP; plan the move to Agent Builder rather than starting new setups on it.
- awslabs/mcp has a separate server per database (DynamoDB, Aurora MySQL, Aurora DSQL, DocumentDB, Neptune, Keyspaces, Redshift and more), each with its own README and write flags; the README marks some non-database servers as deprecated, so check the table before you pick one. The PostgreSQL server needs Docker and AWS credentials and can only run on the same host as Claude Desktop.
- Pinecone's server works only with document indexes and indexes with integrated embedding; indexes for vectors from your own embedding model aren't supported. Pinecone's Assistant MCP server is a different product for a Pinecone Assistant's files.
- Rows, documents and log lines can contain instructions aimed at the agent (prompt injection). The Help Center says to watch tool inputs and outputs and connect only servers you trust; point Claude at development data where you can.
Full walkthrough for any server: How to add a remote MCP server to Claude Desktop and claude.ai.
Install notes and account access
Servers that log in to a vendor account act on real data and resources. The permissions line is what the vendor says the server can do with your account.
- Prisma MCP Server · Prisma
- Connect to https://mcp.prisma.io/mcp (Streamable HTTP). Claude Code: `claude mcp add --transport http prisma https://mcp.prisma.io/mcp`; Gemini CLI: `gemini mcp add --transport http Prisma https://mcp.prisma.io/mcp --scope user` (see docs for other clients). official docs ↗Can do: Manages Prisma Postgres databases (create, run SQL, restore backups), Prisma Compute deployments (logs, environment variables), Object Storage buckets and access keys, and searches Prisma docs in the workspace you approve; Prisma warns that tools that change or delete resources can cause data loss.Credentials: Prisma Console account sign-in (OAuth), then pick a workspace and approve access. · Maintenance: Hosted remote server; official docs last updated 2026-09-22; the old prisma/mcp repo is archived; no GitHub release · Verified 2026-11-24
- Render MCP Server (hosted) · Render
- Connect to https://mcp.render.com/mcp. Claude Code: `/plugin install render@claude-plugins-official`, or `claude mcp add --transport http render https://mcp.render.com/mcp --header "Authorization: Bearer <YOUR_API_KEY>"`; Codex: `codex mcp add render --url https://mcp.render.com/mcp --oauth-client-id codex`; Cursor: `/add-plugin render`. Then tell the agent which Render workspace to use. official docs ↗Can do: Acts on the selected Render workspace: creates web services, static sites, cron jobs, Render Postgres and Key Value; lists services; updates all environment variables of a service; triggers deploys; reads logs and metrics; runs read-only SQL on Render Postgres. No deletes or scaling changes.Credentials: Render account via OAuth (official plugins for Claude Code, Codex, Cursor; Claude Desktop connector), or a Render API key as an Authorization: Bearer header. Render's docs say the AI tool can access only the workspace and permissions you grant the key. · Maintenance: Hosted server at https://mcp.render.com/mcp, auto-updated by Render; open-source code render-oss/render-mcp-server (Apache-2.0), last commit 2026-11-18; last GitHub release v0.3.0 on 2026-01-14 (for local runs, which Render discourages) · Verified 2026-11-25
- AWS MCP Servers · AWS Labs
- Pick a server from the README table, e.g. `uvx awslabs.aws-documentation-mcp-server@latest`, or the remote AWS MCP Server (preview) via `mcp-proxy-for-aws`. official docs ↗Can do: Each server acts on AWS with your local credentials/profile; scope depends on the IAM role.Credentials: AWS credentials (profile / IAM) for servers that call AWS; docs server needs none. · Maintenance: Release 2026.11.20261119223057 on 2026-11-20; last commit 2026-11-23 · Verified 2026-11-24
- ClickHouse MCP Server · ClickHouse
- Self-hosted or any ClickHouse: stdio `uv run --with mcp-clickhouse --python 3.12 mcp-clickhouse` with CLICKHOUSE_HOST/PORT/USER/PASSWORD and CLICKHOUSE_SECURE=true. ClickHouse Cloud: enable MCP under Connect → MCP, then e.g. `claude mcp add --transport http clickhouse-cloud https://mcp.clickhouse.cloud/mcp`. official docs ↗Can do: Open-source server: lists databases and tables and runs SQL via run_query, read-only by default (writes only if CLICKHOUSE_ALLOW_WRITE_ACCESS=true); optional chDB tool queries files/URLs locally. Cloud remote server: list databases/tables, inspect schemas and run read-only SELECTs, plus service, backup, ClickPipes and billing tools, scoped to what your user or API key can access.Credentials: Open-source: ClickHouse connection settings (CLICKHOUSE_HOST, CLICKHOUSE_USER, CLICKHOUSE_PASSWORD, optional role). Cloud remote: ClickHouse Cloud OAuth, or a Cloud API key via HTTP Basic auth (query tools then also need a generic Query API endpoint bound to that key); MCP must be enabled per service. · Maintenance: Official repo ClickHouse/mcp-clickhouse, release v0.7.0 on 2026-09-21 (PyPI mcp-clickhouse 0.7.0), last commit 2026-11-16; managed remote server at https://mcp.clickhouse.cloud/mcp for ClickHouse Cloud · Verified 2026-11-24
- Pinecone Developer MCP Server · Pinecone
- Local stdio server `npx -y @pinecone-database/mcp` with PINECONE_API_KEY in env. Claude Code: `claude mcp add-json pinecone-mcp '{"type":"stdio","command":"npx","args":["-y","@pinecone-database/mcp"],"env":{"PINECONE_API_KEY":"YOUR_API_KEY"}}'`; Cursor: same command in .cursor/mcp.json; Gemini CLI: `gemini extensions install https://github.com/pinecone-io/pinecone-mcp`. official docs ↗Can do: Searches Pinecone docs; with an API key it lists and describes indexes, creates document indexes (full-text and/or integrated embedding) and legacy integrated indexes, upserts documents or records, searches and reranks across indexes in the project the key belongs to. Indexes for vectors from your own embedding model are not supported.Credentials: Optional: works without a key for docs search only; a Pinecone API key (PINECONE_API_KEY) is needed to manage or query indexes. Node.js 20+ with npx. · Maintenance: Official repo pinecone-io/pinecone-mcp; release v0.4.0 on 2026-10-29 (npm @pinecone-database/mcp 0.4.0, adds document-index tools); last commit 2026-11-09 · Verified 2026-11-24
- Redis MCP Server · Redis
- Run `uvx --from redis-mcp-server@latest redis-mcp-server --url redis://localhost:6379/0` from your client's MCP config (see README). official docs ↗Can do: Reads and writes Redis data (strings, hashes, lists, sets, streams, JSON, vector search) with the connection's ACL rights; the README shows how to use a read-only ACL user.Credentials: Redis connection URL or REDIS_HOST/REDIS_PORT plus REDIS_USERNAME/REDIS_PWD when auth is enabled; Entra ID for Azure Managed Redis. · Maintenance: Release 0.5.1 on 2026-08-05 (PyPI redis-mcp-server 0.5.1); last commit 2026-11-23 (main adds MCP_REDIS_ALLOWED_TOOLS tool allowlist, not yet in a release) · Verified 2026-11-24
- Elasticsearch MCP Server (deprecated) · Elastic
- README marks it deprecated (critical security fixes only) and points to the Elastic Agent Builder MCP endpoint ({KIBANA_URL}/api/agent_builder/mcp; Elastic 9.2+ and Serverless, GA since 9.3), which takes an API key or, on Serverless, OAuth. official docs ↗Can do: Queries Elasticsearch indices with your credentials.Credentials: ES_URL plus ES_API_KEY (or username/password). · Maintenance: Release v0.4.6 on 2025-10-24; last commit 2026-06-23; DEPRECATED per README (critical security fixes only) · Verified 2026-11-25
Sources
- MCP docs: Connect to local MCP servers (Claude Desktop config, logs) ↗
- Claude Help Center: Get started with custom connectors using remote MCP ↗
- Claude Help Center: Getting started with local MCP servers on Claude Desktop ↗
- Prisma docs: MCP server (Claude Desktop) ↗
- Render docs: Render MCP Server (Claude Desktop setup, supported actions) ↗
- ClickHouse Cloud docs: Enable and connect the remote MCP server ↗
- ClickHouse MCP server README: Claude Desktop config, read-only mode, write/drop flags ↗
- Redis MCP Server README: Claude Desktop, ACL, allowed tools ↗
- Pinecone docs: Pinecone MCP server (Configure Claude Desktop) ↗
- Pinecone MCP README: tools (v0.4.0) ↗
- AWS MCP Servers README (awslabs/mcp): database servers ↗
- AWS PostgreSQL MCP server README: read-only enforcement and --privilege_check ↗
- Elasticsearch MCP Server README (deprecated) ↗
- Elastic docs: Elastic Agent Builder MCP server ↗
- Elastic docs: Connect an MCP host to Elastic Agent Builder (Claude desktop app) ↗
- Elastic docs: Authenticate MCP clients with API keys ↗
- Prisma MCP Server: official install docs ↗
- AWS MCP Servers: official install docs ↗
- ClickHouse MCP Server: official install docs ↗
- Redis MCP Server: official install docs ↗
- Elasticsearch MCP Server (deprecated): official install docs ↗
All databases & SQL entries, in every client: Best MCP servers for Databases & SQL · Databases & SQL explorer. Ask the catalog from inside Claude Desktop with the free, read-only AgentTask Atlas MCP server.
Other comparisons: Best MCP servers for Infra & deploy in Cursor · Best MCP servers for Debugging & observability in Cursor · Best MCP servers & skills for Frontend & UI in Claude Code · Best MCP servers for Databases & SQL in Cursor · Best MCP servers for Infra & deploy in Claude Code · Best MCP servers for Library docs & research in VS Code · Best MCP servers for Infra & deploy in VS Code · Best MCP servers for Debugging & observability in VS Code · Best MCP servers for Databases & SQL in VS Code · Best MCP servers for Frontend & UI in Cursor · Best MCP servers for Frontend & UI in VS Code · Best MCP servers for Library docs & research in Cursor · Best MCP servers for Library docs & research in Claude Code · Best MCP servers for Debugging & observability in Claude Code · Best MCP servers for Databases & SQL in Claude Code · Best MCP servers for Library docs & research in Claude Desktop · Best MCP servers for Infra & deploy in Claude Desktop · Best MCP servers & skills for Docs & writing in Claude Code · Best MCP servers for Utilities in VS Code · Best MCP servers for Debugging & observability in Claude Desktop · Best MCP servers for Planning & reasoning in VS Code · Best MCP servers for Planning & reasoning in Cursor · Best MCP servers for Utilities in Claude Desktop · Best MCP servers for Utilities in Claude Code · Best MCP servers for Utilities in Cursor · Best MCP servers for CI/CD in Cursor · Git & GitHub repos · Code review · CI/CD · Infra & deploy · Debugging & observability · Library docs & research · Web fetching & scraping · Frontend & UI · Local files · Docs & writing · Build AI apps · Planning & reasoning · Utilities
How much context does each one cost? See the MCP tool budget: measured tools and tokens per server.
⚠ No independent security audit: entries summarize official sources only. Review permissions and code before installing.