Skip to content

MCP servers for databases

6 official MCP servers that connect AI agents to databases, each with the Claude Code and Cursor setup and the read-only option its publisher documents. Listed alphabetically; each section links the publisher’s own page.

Checked 25 November 2026. Commands change between releases: the linked page is the current version.

At a glance

ServerWhat it doesRunsSign-in
ClickHouse MCPRuns SQL queries and lists databases and tables on a ClickHouse cluster.LocalClickHouse host, user and password in environment variables; optional bearer token or OAuth for HTTP
MongoDB MCP ServerQueries and manages MongoDB databases and MongoDB Atlas resources.Remote or localOAuth for the Atlas remote server; connection string or Atlas API credentials locally
Neon MCP ServerCreates and manages Neon Postgres projects and branches, runs SQL and handles schema migrations.RemoteOAuth, or a Neon API key in an Authorization header
Prisma MCP ServerManages Prisma Postgres databases and existing Prisma Compute apps.RemotePrisma account sign-in when connecting
Redis MCP ServerStores, reads and searches data in Redis, including streams, caches and vector indexes.LocalRedis URL or host, port and password; EntraID for Azure Managed Redis
Supabase MCP ServerManages tables, reads project configuration and queries data in Supabase projects.Remote or localSupabase sign-in (OAuth) during setup

ClickHouse MCP

By ClickHouse

Runs SQL queries and lists databases and tables on a ClickHouse cluster.

Transport
Local (Python, run with uv); can also serve HTTP
Sign-in
ClickHouse host, user and password in environment variables; optional bearer token or OAuth for HTTP
Read-only
Read-only by default (CLICKHOUSE_ALLOW_WRITE_ACCESS=false)
Claude Code
Setup steps on the publisher’s page
Cursor
{"mcpServers":{"mcp-clickhouse":{"command":"uv","args":["run","--with","mcp-clickhouse","--python","3.12","mcp-clickhouse"],"env":{"CLICKHOUSE_HOST":"<clickhouse-host>"}}}}

Source: github.com, checked 25 November 2026.

MongoDB MCP Server

By MongoDB

Queries and manages MongoDB databases and MongoDB Atlas resources.

Transport
Remote Atlas server over OAuth, or local (npx mongodb-mcp-server)
Sign-in
OAuth for the Atlas remote server; connection string or Atlas API credentials locally
Read-only
--readOnly flag (used in all of the README's examples)
Claude Code
Install the mongodb-atlas or mongodb plugin from the Claude plugin marketplace, or run: npx -y mongodb-mcp-server@latest setup
Cursor
{"mcpServers":{"MongoDB":{"command":"npx","args":["-y","mongodb-mcp-server@latest","--readOnly"]}}}

Source: github.com, checked 25 November 2026.

Neon MCP Server

By Neon

Creates and manages Neon Postgres projects and branches, runs SQL and handles schema migrations.

Transport
Remote (https://mcp.neon.tech/mcp)
Sign-in
OAuth, or a Neon API key in an Authorization header
Claude Code
npx neon@latest init
Cursor
{"mcpServers":{"Neon":{"url":"https://mcp.neon.tech/mcp?category=projects&category=branches&category=endpoints&category=querying&category=schema"}}}

Source: github.com, checked 25 November 2026.

Prisma MCP Server

By Prisma

Manages Prisma Postgres databases and existing Prisma Compute apps.

Transport
Remote (https://mcp.prisma.io/mcp)
Sign-in
Prisma account sign-in when connecting
Claude Code
claude mcp add --transport http prisma https://mcp.prisma.io/mcp
Cursor
{"mcpServers":{"Prisma":{"url":"https://mcp.prisma.io/mcp"}}}

Source: www.prisma.io, checked 25 November 2026.

Redis MCP Server

By Redis

Stores, reads and searches data in Redis, including streams, caches and vector indexes.

Transport
Local (Python, run with uvx); Docker image available
Sign-in
Redis URL or host, port and password; EntraID for Azure Managed Redis
Read-only
Through a Redis ACL user limited to read commands, per the README
Claude Code
Setup steps on the publisher’s page
Cursor
Setup steps on the publisher’s page

Source: github.com, checked 25 November 2026.

Supabase MCP Server

By Supabase

Manages tables, reads project configuration and queries data in Supabase projects.

Transport
Remote (https://mcp.supabase.com/mcp); local CLI and self-hosted servers with fewer tools
Sign-in
Supabase sign-in (OAuth) during setup
Read-only
read_only=true in the server URL
Claude Code
claude mcp add --scope project --transport http supabase "https://mcp.supabase.com/mcp?features=docs%2Caccount%2Cdatabase%2Cdebugging%2Cdevelopment%2Cfunctions%2Cbranching%2Cfeedback%2Cnotebooks"
Cursor
{"mcpServers":{"supabase":{"type":"http","url":"https://mcp.supabase.com/mcp"}}}

Source: supabase.com, checked 25 November 2026.

Frequently asked questions

What does a database MCP server do?+

It lets an AI client such as Claude Code or Cursor run queries and manage a database through tools exposed over the Model Context Protocol, instead of the user copying SQL and results by hand.

Can I stop the agent from changing data?+

Most of these servers document a read-only setting: a URL parameter on Supabase, a --readOnly flag on MongoDB, a default on ClickHouse, and a read-only database user for Redis. Each section lists the option its publisher gives.

Should a database MCP server point at production?+

Neon states its MCP server is intended for local development and IDE integrations and does not recommend it in production. ClickHouse advises a dedicated ClickHouse user even in read-only mode, and MongoDB suggests a database user with limited privileges. The agent acts with whatever permissions the connection has.

Which of these run without installing anything?+

Supabase, Neon, Prisma and MongoDB Atlas offer remote servers reached over HTTP with a sign-in. ClickHouse and Redis run locally from their Python packages or a Docker image.

Servers for coding agents: MCP servers for coding. Vector stores and their prices: vector database pricing.