DB MCP Server

Database MCP server for MySQL, PostgreSQL, MongoDB, and SQLite with SSH tunneling support. Its 9 documented tools cluster into read & search, run & execute, aggregate, my sql. It runs locally over stdio via the published package.

People connecting database tools to Claude, Cursor, VS Code, or another MCP client. The project is written in Python.

VERIFIED ACTIVE

LAST COMMIT 2026-03-24 · ★ 2 · #103 OF 151 MAINTAINED DATABASE · VERIFIED 2026-08-25

MIT · Python servers · how we verify → /methodology

01 · Install DB MCP Server

before you install - you'll need

Set DB_TYPE, DB_PATH, SSH_HOST, SSH_USER, SSH_KEY, DB_MODE, DB_HOST, DB_PORT, DB_USER, DB_PASSWORD, DB_DATABASE before connecting.

Claude Code

claude mcp add stucchi-db-mcp-server -- uvx db-mcp-server

Claude Desktop / Cursor / VS Code - add to config

{
  "mcpServers": {
    "stucchi-db-mcp-server": {
      "command": "uvx",
      "args": [
        "db-mcp-server"
      ]
    }
  }
}

Same JSON for Cursor. For VS Code, rename the top-level key from `mcpServers` to `servers`.

Using another client? Same JSON, different key

Claude Desktop · mcpServers

Cursor · mcpServers

VS Code · servers

Windsurf · mcpServers

Zed · context_servers

Cline · mcpServers

Roo Code · mcpServers

Continue · mcpServers

LibreChat · mcpServers

Gemini CLI · mcpServers

Codex CLI · mcp_servers

Full setup guides: every client.

02 · Evidence

Security posture

What to check before giving this server access to your agent - from the registry, GitHub, and our own probes. We don't score safety; we show what's verifiable.

runs as local process (stdio) - runs on your machine with your user's permissions

license MIT - declared in the repository

pypi package db-mcp-server - check the name against the project README before installing (PyPI has no namespace ownership)

registry namespace io.github.stucchi is GitHub-verified and matches the repo owner

03 · What DB MCP Server can do

Prose above is summarized from the project's README and registry record - no invented capabilities.

What you can build

With this server connected, an agent can execute read-only SQL (SELECT, SHOW, DESCRIBE, EXPLAIN, WITH), execute write SQL (INSERT, UPDATE, DELETE) - requires DB_MODE=read-write, describe table structure, and list all tables.

Capability map

Tools grouped from the project's README - what DB MCP Server lets an agent do.

read & search

4 tools - e.g. Execute read-only SQL (SELECT, SHOW, DESCRIBE, EXPLAIN, WITH); Describe table structure; List all tables

query · describe · list_tables · list_collections

run & execute

1 tool - e.g. Execute write SQL (INSERT, UPDATE, DELETE) - requires DB_MODE=read-write

execute

Aggregate

1 tool - e.g. Execute aggregation pipelines ($out/$merge blocked on read-only)

aggregate

My Sql

1 tool - e.g. My Sql

MySQL

create & write

1 tool - e.g. Postgre Sql

PostgreSQL

Mongo Db

1 tool - e.g. Mongo Db

MongoDB

04 · Who maintains DB MCP Server

DB MCP Server is maintained by stucchi. We track 8 MCP servers from stucchi - 8 actively maintained, 5 combined GitHub stars, oldest repo from Feb 2026.

05 · Facts

category
database - ranked #103 of 151 actively-maintained database servers as of 2026-08-25.
registry
io.github.stucchi/db (active, first published 2026-02-20 · 11 versions)
packages
pypi:db-mcp-server

06 · DB MCP Server FAQ

Is DB MCP Server still maintained?

Yes - as of 2026-08-25, its last commit was 2026-03-24. We re-verify nightly.

What can DB MCP Server do?

With this server connected, an agent can execute read-only SQL (SELECT, SHOW, DESCRIBE, EXPLAIN, WITH), execute write SQL (INSERT, UPDATE, DELETE) - requires DB_MODE=read-write, describe table structure, and list all tables.

How do I install DB MCP Server?

Run `uvx db-mcp-server`. The README documents 11 environment variables (DB_TYPE, DB_PATH, SSH_HOST…) to set first. Set DB_TYPE, DB_PATH, SSH_HOST, SSH_USER, SSH_KEY, DB_MODE, DB_HOST, DB_PORT, DB_USER, DB_PASSWORD, DB_DATABASE before connecting. You can also paste the ready-made client config above.

Does DB MCP Server run locally?

Yes - it's a stdio server: it runs on your machine (via uvx) with your user's permissions. Your data stays local unless the server itself calls external APIs.

07 · Alternatives to DB MCP Server

More database MCP servers · Polar Health Data (self-hosted) · Amnesic · Iso27001 MCP

More Python MCP servers · Sugra API · AI Audit Trail · HTML to Markdown MCP Server · Super CMO · see all