ConnectoryIndex of MCP servers — No. 060

Index / Guides / Guide

MCP servers for databases

Connecting an agent to a database is the most useful and most dangerous MCP setup. Here is what each server needs, and which ones document a read-only mode.

Updated Oct 15, 2026 · 5 sources

§1At a glance

ServerRunsAuthRead-only option
SupabaseRemoteOAuthYes — read_only=true URL parameter, scoped by project_ref
NeonRemoteOAuth or Neon API keyNot in our verified snippet — see README
PostgreSQL (reference, archived)Local (npx)Connection stringRead-only by design (archived reference server)
DBHubLocal (npx, HTTP)Database DSNUse a read-only DB user (Claude Code docs example)
MongoDBLocal (npx)Connection string or Atlas service accountYes — --readOnly flag
SQLite (reference, archived)LocalNone (local file)No — exposes write_query and create_table
RedisLocalRedis URL / credentialsSee README
ClickHouseLocal (uvx)ClickHouse user + passwordSee README

§2Postgres options

There are three Postgres paths in the index. Supabase and Neon are vendor-run remote servers that sign you in with OAuth. PostgreSQL (reference, archived) is the original reference server — read-only and schema-aware, but archived, so it receives no updates. DBHub is a maintained community server that speaks Postgres, MySQL, SQL Server and SQLite through one DSN.

Supabase — scoped and read-only (from Supabase docs)
{
  "mcpServers": {
    "supabase": { "url": "https://mcp.supabase.com/mcp?project_ref=<project-ref>&read_only=true" }
  }
}
DBHub in Claude Code with a read-only user (from Anthropic's docs)
claude mcp add --transport stdio db -- npx -y @bytebase/dbhub \
  --dsn "postgresql://readonly:pass@prod.db.com:5432/analytics"

§3Rules worth following

  • Connect with a database user that has only the privileges the task needs; read-only for analysis.
  • Prefer a branch, replica or staging database over production.
  • Keep credentials in environment variables, not in a committed config file.
  • Leave tool approval on for anything that writes.

§4All database servers

  1. 01

    Supabase

    Official · Remote (HTTP) · OAuth (remote server)

    Connect agents to Supabase projects: databases, migrations, edge functions and docs.

  2. 02

    Neon

    Official · Remote (HTTP) · OAuth (remote) or Neon API key

    Manage Neon serverless Postgres projects, branches and SQL in natural language.

  3. 03

    PostgreSQL (reference, archived)

    Official · Local (stdio) · Database connection string

    Read-only Postgres access with schema inspection. Archived reference server.

  4. 04

    DBHub

    Community · Remote HTTP + local stdio · Database DSN

    Universal database MCP server for Postgres, MySQL, SQL Server, SQLite and more.

  5. 05

    MongoDB

    Official · Local (stdio) · Connection string or Atlas service account

    MongoDB's official MCP server for databases and Atlas clusters.

  6. 06

    SQLite (reference, archived)

    Official · See README · None (local database file)

    Query and analyze SQLite databases. Archived reference server.

  7. 07

    Redis

    Official · Remote HTTP + local stdio · Redis URL / credentials

    Redis's official MCP server for managing and searching data in Redis.

  8. 08

    ClickHouse

    Official · Local (stdio) · ClickHouse user + password

    Run SQL against ClickHouse clusters (and chDB) from your agent.

  9. 09

    Elasticsearch

    Official · Local (stdio) · Elasticsearch API key or basic auth

    Query Elasticsearch indices and mappings from your agent.

  10. 10

    Qdrant

    Official · Local (stdio) · Qdrant URL (+ API key if required)

    Semantic memory layer on top of the Qdrant vector database.

  11. 11

    Pinecone

    Official · Local (stdio) · Pinecone API key

    Pinecone's developer MCP server: search docs and manage indexes and records.

§5FAQ

Is there an official Postgres MCP server?
The Postgres reference server from the MCP project is archived. Supabase and Neon run official remote servers for their hosted Postgres, and DBHub is a maintained community option.
Which database MCP servers have a read-only mode?
Supabase (read_only=true URL parameter) and MongoDB (--readOnly flag) document one; the archived Postgres reference server is read-only by design. For others, use a read-only database user.

§6Sources

  1. Claude Code docs — Connect Claude Code to tools via MCP ↗
  2. Supabase MCP docs ↗
  3. neondatabase/mcp-server-neon ↗
  4. bytebase/dbhub ↗
  5. mongodb-js/mongodb-mcp-server ↗

Sources checked Oct 15, 2026. Spot something out of date? Tell us.

The Weekly Digest · Every Thursday

New MCP servers, weekly.

One short email: the newest servers, what changed in the ones you use, and one setup tip. No tracking pixels, no fluff.