Skip to main content
AllMCPs
BrowseBestCategoriesStackCompareToolsGuidesBlog
Log in Submit MCP

Stay in the loop

Get new MCP servers and top picks in your inbox.

AllMCPs

The open directory for discovering and installing Model Context Protocol servers.

AllMCPs on GitHub (opens in a new tab)
Launched onTiny Startupstinystartups.com
Explore
  • Browse servers
  • Best MCP servers
  • Categories
  • MCP clients
  • Agent prompts
  • Stack Builder
  • Compare servers
  • Random discovery New
  • Submit a server
  • Pricing & Boost Boost
Learn
  • Guides hub
  • What is MCP?
  • Install guide
  • Build an MCP server
  • Deploy an MCP server
  • Security guide
  • Troubleshooting
  • MCP for SEO & AEO
  • Protocol versioning
  • Transports: stdio vs HTTP
  • State of MCP (stats)
  • Blog & updates
Tools
  • All developer tools
  • Config generator
  • Config validator
  • Config auditor
  • MCP playground
  • Token calculator
  • OpenAPI β†’ MCP
  • Badge generator
For agents
  • REST API docs
  • Trust & traffic Live
  • Remote MCP server SSE β†— (opens in a new tab)
  • llms.txt β†— (opens in a new tab)
  • Catalog JSON β†— (opens in a new tab)
Company
  • About
  • Advertise Sponsor
  • Contact
  • GitHub β†— (opens in a new tab)
  • Terms
  • Privacy
AllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZoneAllMCPs VerifiedAllMCPs VerifiedFeatured on Nick LaunchesFeatured on Nick LaunchesLaunch Llama NewsletterLaunch Llama NewsletterVerified DR - allmcps.comVerified DR - allmcps.comFeatured on SaaSGrowFeatured on SaaSGrowFeatured on Twelve ToolsFeatured on Twelve ToolsFeatured on Saaspa.geFeatured on Saaspa.geFeatured on Findly.toolsFeatured on Findly.toolsFeatured on Startup FameFeatured on Startup FameFeatured on LaunchKiwiFeatured on LaunchKiwiFeatured on ScrollLaunchFeatured on ScrollLaunchFeatured on DailyPingsFeatured on DailyPingsFazier badgeFazier badgeFeatured on NewTool.siteFeatured on NewTool.siteFeatured on saasfame.comFeatured on saasfame.comDR Checker - Domain RatingDR Checker - Domain RatingListed on Turbo0Listed on Turbo0Launched on LaunchBoard - Product Launch PlatformLaunched on LaunchBoard - Product Launch PlatformList on SimilarlabsList on Similarlabshttps://codetrendy.comhttps://codetrendy.comListed on DevTool.ioFeatured on BuildlistFeatured on BuildlistLaunched on Tiny StartupsFeatured on ShowMeBestAIFeatured on ShowMeBestAIFind us on LaunchZoneFind us on LaunchZone
Β© 2026 Jackalope Digital LLC. All rights reserved.
  1. Home
  2. πŸ—„οΈ Databases
  3. Db Conn MCP
Db Conn MCP logo
Health: ActiveRecent health check succeeded.Last checked 9/22/2026, 4:04:01 PM

Db Conn MCP

User RatingsBe the first to rate and review this MCP server! Enrichment pendingWe haven’t run our AI enrichment pass on this listing yet, so the overview, use cases, and FAQ below may be sparse or missing. We work through the catalog over time β€” check back soon.
View Repository2 GitHub StarsTotal stargazers on GitHub for the source repository (2 stars).

A dead-simple, self-hosted MCP server for securely querying databases via AI agents.

Quick Install

Automated & IDE Setup

Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β€” or use 1-click editor setup below.

Add to CursorAdd to VS Code
Not yet automatically verified

We haven't yet run this listing's install command through our automated sandbox check. This isn't a red flag β€” we're steadily working through the catalog.

Manual Client & Custom JSON ConfigExpand JSON β–Ύ

Client Config & Setup

Choose your client or environment
Target File:~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "db-conn-mcp": {
      "command": "uvx",
      "args": [
        "caches"
      ]
    }
  }
}

πŸ’‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.

Install Tool Schemas (23) Directory Badge Claim listing AlternativesπŸ—„οΈ More in Databases

Capabilities & Tool Schemas (23) ~1.1k tokensApproximate context cost of this server’s tool schemas (~4 chars/token), before any tool is called. Actual usage depends on your client and model.Self-reported Self-reportedParsed from the repository README, not verified against a live server β€” may be incomplete or out of date.

Inspect callable tools, capabilities, and parameters exposed to AI agents by Db Conn MCP.

list_databases

Configured databases (name, mode, yolo, and `active_port` when a fallback port is in use β€” **no DSN**).

list_tables

Tables and views in a database. Narrow it in the database rather than after the fact: `pattern` keeps only names containing it (fuzzy, case-insensitive) and `limit` caps the number of rows.

get_table_schema

Columns, types, primary/foreign keys for a table. Pass `include_indexes=true` to also get its indexes (`name`, key `columns` in index order β€” an INCLUDE payload is not listed β€” `unique`, `method`); omitted by default.

get_database_schema

The whole database's schema in one deterministic call. `format="json"` (default) returns every table's columns/types/PK/FK; `format="sql"` returns a **self-contained, runnable DDL script** (tables, sequences, PK/FK/UNIQUE/CHECK, indexes, trigger functions, triggers) β€” no extra tools required. Pass…

dump_schema_faithful

Byte-faithful** schema dump via the database's own `pg_dump --schema-only` β€” the most complete/runnable export. Requires the `pg_dump` binary on the server host; if missing, returns `pg_dump_not_found` with install guidance (see the `faithful_schema_export` prompt).

sample_table_rows

First N rows of a table (default 10).

Documentation Overview

db-conn-mcp

GitHub stars

A dead-simple, self-hosted Model Context Protocol (MCP) server for querying your databases with AI agents (Claude, Cursor, Windsurf, VS Code, Zed, Codex, and more).

It does one thing well: let an agent safely explore and query a database you point it at β€” with security delegated to the simplest possible primitives (a static JSON file and your database's own read-only transactions), not custom auth servers or fragile SQL parsing.

v1 ships PostgreSQL only. All database-specific code lives behind a Dialect seam, so adding MySQL/SQLite later is a single new file.


Why

  • Read stays read. A read database runs every query in a native read-only transaction, and the read tool only accepts a single read-only statement (SELECT/WITH/VALUES/TABLE/SHOW/EXPLAIN) β€” so an agent can't slip in a write or a SET … READ WRITE to flip the session. For a hard, privilege-level guarantee that holds no matter what, point the DSN at a read-only database role (see Use a read-only role).
  • No secret leaks. DSNs/passwords are never logged or returned by any tool. Connection failures come back as sanitized diagnostics (a category + fix), never a raw traceback with your host and credentials in it.
  • Tiered write safety. Writes are gated server-side: mode (hard, native) β†’ dry-run first (a commit is refused unless that exact statement was previewed) β†’ yolo (per-database trust) β†’ user_consent (explicit per-operation approval).
  • Zero-friction setup. An interactive wizard registers your database and injects the server into your AI client's config for you β€” across 9 popular clients, each in its own format. Prefer clicking? db-conn-mcp gui opens a local dashboard that does the same, and proves each client can actually launch the server.

Install

Requires Python 3.12+.

bash
# Recommended: isolated but globally available on your PATH
pipx install db-conn-mcp

# or plain pip
pip install db-conn-mcp

This installs the db-conn-mcp command.

Upgrade

Not sure how you installed it? Each manager keeps its own registry β€” ask them:

bash
pipx list                 # db-conn-mcp listed here β†’ pipx
uv tool list              # listed here β†’ uv tool
pip show db-conn-mcp      # found in the current Python env β†’ pip

If none of those know it, your MCP client config is likely launching it via uvx (check the command in the client's config entry β€” that entry is the source of truth for what actually runs, and which db-conn-mcp / Get-Command db-conn-mcp shows the binary on your PATH).

Then use the matching upgrade command:

bash
pipx upgrade db-conn-mcp          # pipx
pip install --upgrade db-conn-mcp # pip
uv tool upgrade db-conn-mcp       # uv tool

Running via uvx (e.g. in an MCP client config)? There's nothing installed to upgrade, but uvx caches resolved versions β€” use db-conn-mcp@latest as the command to always resolve the newest release, or run uv cache clean db-conn-mcp to force a re-resolve.

After upgrading, restart/reconnect your AI client so it picks up the new version (and any new tools). Verify with db-conn-mcp -v.

You don't have to remember to check. When you run a db-conn-mcp subcommand in a terminal, it prints a single line if a newer release is published β€” looked up in the background, so it never slows a command down or changes its exit code (offline just means no line). Set DB_CONN_MCP_NO_UPDATE_CHECK=1 to silence it. The server your MCP client launches never checks; db-conn-mcp doctor is the deliberate, authoritative version of the same question.

PyPI's index can lag a release by a minute or two. If your upgrade reports "already at latest" right after a release, retry with pipx upgrade db-conn-mcp --pip-args="--no-cache-dir" (or pip install --upgrade --no-cache-dir db-conn-mcp).


Quick start

bash
db-conn-mcp setup

The wizard asks for:

  1. Scope β€” global (~/.db-conn-mcp/connections.json) or repo (./connections.json).
  2. Connection name β€” e.g. prod.
  3. DSN β€” e.g. postgresql://user:pass@host:5432/dbname.
  4. Mode β€” read (recommended) or write.
  5. Fallback ports (optional) β€” comma-separated extra ports to try if the primary one refuses; press Enter to skip.
  6. Client injection β€” pick which detected MCP clients to wire up (e.g. 1,3 or all).

It then writes your config and (optionally) registers the server in your chosen AI clients. Restart/reconnect the client and the tools are available.

Cancelling is safe. Press Ctrl+C at any prompt and nothing is written.


Configuration

The single source of truth is connections.json, resolved in this order (first match wins):

  1. --config /path/to/connections.json
  2. ./connections.json (repo-scoped)
  3. ~/.db-conn-mcp/connections.json (global-scoped)
config.json
{
  "connections": [
    { "name": "prod", "dsn": "postgresql://…", "mode": "read" },
    { "name": "dev",  "dsn": "postgresql://…", "mode": "write", "yolo": false }
  ]
}
FieldRequiredMeaning
nameyesUnique identifier the agent uses to pick a database.
dsnyesConnection string. Secret β€” never shown by any tool.
modeyesread or write. An absolute, native security boundary.
yolono (default false)If true, skip the per-write consent prompt for this database. The dry-run preview still applies.
fallback_portsnoExtra ports to probe, in order, when the primary port refuses or times out. See below.
  • fallback_ports (optional) β€” extra ports probed in order when the primary port refuses or times out (auth/TLS errors fail immediately and are never masked). For DSNs behind SSH tunnels that don't always land on the same port. The winning port is remembered for the server's lifetime and shown as active_port in list_databases / check_database. Hand-edit the JSON (agents may too) or answer the wizard prompt. Example: "fallback_ports": [5433, 15432]

Probing is strictly opt-in and bounded: only the ports you list are ever tried (no scanning), each fallback probe is capped at 5 seconds, and a connection without the key behaves exactly as it always has. Existing connections.json files keep working untouched β€” the server never adds the key to a file that doesn't have it.

connections.json is git-ignored by this project's .gitignore β€” never commit real DSNs.


The security model

Writes pass through four gates, in order:

  1. mode (hard, native). If the database isn't "mode": "write", the write is rejected β€” and the connection is opened read-only at the PostgreSQL session level regardless, so it's blocked twice over. Nothing β€” not yolo, not user_consent, not skip_dry_run β€” can ever make a read database writable.
  2. Dry-run first (server-enforced). execute_write_query defaults to dry_run=true. A commit is rejected unless the identical statement was dry-run first. The one escape hatch is skip_dry_run=true, which the agent passes to attest that you explicitly asked to skip the preview β€” the server can't verify that claim, so it's the same trust model as user_consent (and, like it, useless on a read database). yolo does not waive this stage.
  3. yolo (persisted trust). On a write database with yolo: true, the previewed write commits without prompting.
  4. user_consent (per-operation). Otherwise the agent must first read the schema, show you the exact SQL, get your "yes", and re-call with user_consent=true.

What the dry-run does: it executes the statement in a transaction and always rolls back, returning the rows it would have affected β€” so only the mode gate applies, nothing commits, and you see the real impact before saying yes. The resulting permission to commit is scoped to that exact statement (same database, SQL, and params), expires after 10 minutes, and is consumed by the commit attempt it authorizes β€” including one that fails, since a failed commit may still have applied server-side, so a retry has to be previewed afresh. Running the same statement twice means previewing it twice. (A dry-run does still execute server-side until rollback: brief locks, sequence advancement, trigger side effects.)

Reads always run inside a native read-only transaction, and execute_read_query accepts only a single read-only statement (SELECT/WITH/VALUES/TABLE/SHOW/EXPLAIN). That allowlist is what stops an agent from sending SET SESSION CHARACTERISTICS AS TRANSACTION READ WRITE to flip the session, or piggy-backing a ; DELETE … onto a read β€” there's no SQL parsing involved, just a leading-keyword check plus the driver's single-command protocol.

Use a read-only role (strongest guarantee)

The application-level checks above are defense-in-depth. The hardest boundary is a privilege one: connect with a PostgreSQL role that simply cannot write, so a write fails even if every layer above were bypassed. Create one per database and use its DSN for read connections:

sql
CREATE ROLE agent_ro LOGIN PASSWORD '…';
GRANT CONNECT ON DATABASE mydb TO agent_ro;
GRANT USAGE ON SCHEMA public TO agent_ro;
GRANT SELECT ON ALL TABLES IN SCHEMA public TO agent_ro;
ALTER DEFAULT PRIVILEGES IN SCHEMA public GRANT SELECT ON TABLES TO agent_ro;

This is the recommended setup for any database that holds data you care about.

Prompt injection: the data coming back is untrusted too

Read the full README β†’View source on GitHub β†’

Related MCP Servers

View all in Databases View all alternatives
  • Postgres MCP logoPostgres MCP

    PostgreSQL MCP server with 14 tools for querying, schema exploration, and table analysis. Features security-first design with SQL injection prevention and read-only by default.

    πŸ—„οΈ Databases3 views
    Compare vs Postgres MCP β†’
  • MCP Sqlite Tools logoMCP Sqlite Tools

    MCP server for local SQLite database operations

    πŸ—„οΈ Databases0 views
    Compare vs MCP Sqlite Tools β†’
  • Influxdb3 MCP Server logoInfluxdb3 MCP Server
    Verified

    Official MCP server for InfluxDB 3 Core/Enterprise/Cloud Dedicated

    πŸ—„οΈ Databases10 views
    Compare vs Influxdb3 MCP Server β†’
  • MCP Clickhouse logoMCP Clickhouse

    ClickHouse database integration with schema inspection and query capabilities

    πŸ—„οΈ Databases3 views
    Compare vs MCP Clickhouse β†’

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks β€” not a rating.

GitHub stars
2
Stargazers on the source repository.
npm downloads
79
Package downloads in the last 30 days.
Last commit
1mo ago
Most recent push to the default branch.
Tools exposed
23
Callable tools this server registers over MCP.
Directory activity
2 views
Config copies, upvotes, and views on AllMCPs.

Reviews

No reviews yet β€” be the first to share how this listing worked for you.

Frequently Asked Questions about Db Conn MCP

Add the following block to your claude_desktop_config.json under mcpServers: "mcpServers": { "db-conn-mcp": { "command": "uvx", "args": ["caches"] } }

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewDb Conn MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/db-conn-mcp?style=directory)](https://allmcps.com/mcp/db-conn-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/db-conn-mcp"><img src="https://allmcps.com/api/badge/db-conn-mcp?style=directory" alt="Db Conn MCP on AllMCPs" /></a>

Technical Specs & Signals

CategoryπŸ—„οΈDatabases
More technical detailsExpand β–Ύ
TransportSTDIO
RuntimePython
Last updatedAug 13, 2026
2/6 checks healthy over the last 45d
Views2
Unique ViewsTotal visits recorded for this listing page on AllMCPs.
Installs0
Installs & Copy ActionsTotal times users copied install commands or configuration snippets for this server.
GitHub stars2
GitHub Star CountTotal stargazers on GitHub representing community popularity (2 stars).
Last commit1mo ago
Last Repository CommitThe most recent commit or push recorded for this server's GitHub repository.Last commit on Aug 13, 2026
npm downloads79/mo
Monthly npm DownloadsAverage monthly package installs recorded from npm registry statistics.
53Quality signal: Good Β· 53/100How this signal is calculated β–Ύ
Server availabilityNot measured

Not scored for repo-hosted servers β€” we can't reach the running server, only its GitHub page. Hosted MCP endpoints are health-checked live.

Verified ownership10/20
Documentation & tools25/30
Adoption & activity5/15
Community engagement0/10

A guidance signal from public completeness & health data β€” not a user rating. New listings start lower and rise as they add docs, get verified, and grow adoption. Signals we can't observe for a listing are skipped, not counted against it.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 5d ago via OSV.dev Β· caches (PyPI)

β˜… FeaturedAllMCPs Server logo

AllMCPs Server

The official MCP server for AllMCPs.com - submit and manage tools directly from your AI. The open directory for MCP servers. Connect Claude, Cursor, Windsurf, and AI agents to databases, tools, files, and APIs. Explore 10,000+ servers. AllMCPs is the premier, open directory for discovering, evaluating, and installing Model Context Protocol (MCP) servers to equip AI agents and LLMs with real-world superpowers.

Explore Server β†’

Own this project?

This directory is pre-filled from public sources. Claim via GitHub README, site badge, or DNS TXT to unlock edit access and the Official badge and attach your website β€” proof is checked automatically, then reviewed by our team.

Free dofollow backlink: add your website and place the AllMCPs badge on it β€” no claim needed. We detect it automatically and keep it verified as long as the badge stays live.

Claim & get free dofollow

Share & Embed

Add our SVG badge (dark/light directory styles) or embeddable widget to your site.

Explore more

More in πŸ—„οΈ Databases β†’Best MCP servers for Databases β†’Alternatives to Db Conn MCP β†’Install in Claude DesktopInstall in CursorInstall in VS CodeSetup guides for all 13 MCP clients