Developer · Local MCP server

DB MCP Server

Database MCP server for MySQL, PostgreSQL, MongoDB, and SQLite with SSH tunneling support.

What the MCP Registry states

The entry as published to the official MCP Registry (read 2026-10-04), latest version.

Registry name
io.github.stucchi/db
Version
1.2.1
Status
Active
Category
developer
Transport
stdio (local process)
Package
PyPI
Published
2026-03-24
Updated
2026-03-24
Publisher
stucchi (GitHub) · 6 servers with pages here
Repository
github.com/stucchi/db-mcp-server
Source
Registry API entry

Packages

RegistryPackageVersionTransportEnvironment variables
PyPIdb-mcp-server1.2.1stdioDB_TYPE (required), DB_DATABASE (required), DB_MODE, DB_HOST, DB_PORT, DB_USER, DB_PASSWORD (secret), DB_URL (secret), SSH_HOST, SSH_PORT, SSH_USER, SSH_KEY, SSH_PASSWORD (secret)

How to connect DB MCP Server

DB MCP Server runs locally from a Python package published to PyPI: db-mcp-server version 1.2.1. It speaks MCP over stdio, so the client starts it as a program and talks to it through standard input and output. It needs Python; clients usually start it with uvx (from uv) or after pip install — the usual command is uvx db-mcp-server. It reads these environment variables: DB_TYPE (required), DB_DATABASE (required), DB_MODE, DB_HOST, DB_PORT, DB_USER, DB_PASSWORD (secret), DB_URL (secret), SSH_HOST, SSH_PORT, SSH_USER, SSH_KEY and SSH_PASSWORD (secret); set them in the client's configuration for this server.

In the mcpServers JSON format that many desktop and editor MCP clients read, the entry looks like this (placeholders in angle brackets):

{
  "mcpServers": {
    "db": {
      "command": "uvx",
      "args": [
        "db-mcp-server"
      ],
      "env": {
        "DB_TYPE": "<value>",
        "DB_DATABASE": "<value>",
        "DB_MODE": "<value>",
        "DB_HOST": "<value>",
        "DB_PORT": "<value>",
        "DB_USER": "<value>",
        "DB_PASSWORD": "<secret>",
        "DB_URL": "<secret>",
        "SSH_HOST": "<value>",
        "SSH_PORT": "<value>",
        "SSH_USER": "<value>",
        "SSH_KEY": "<value>",
        "SSH_PASSWORD": "<secret>"
      }
    }
  }
}

Derived from the registry entry, not tested here. What the server does, and on what terms, is set by its publisher; check its repository or website before giving it access to your accounts or files. How to add an MCP server to an assistant · Before you connect

More from stucchi (GitHub)

ServerRunsEndpoint or package
Domain CheckCheck domain availability across 500+ TLDs. Single and bulk checks with UI.Local · stdioPyPI: domain-check-mcp
Google Analytics 4Manage GA4 properties, data streams, conversions, and run reports via Admin & Data APIs.Local · stdioPyPI: google-analytics-4-mcp
Italy OpenDataItalian open data: municipalities, provinces, regions, postal codes, coordinates.Local · stdioPyPI: italy-opendata-mcp
Nexi XPayMCP server for Nexi XPay Back Office APIs: orders, transactions, warnings.Local · stdioPyPI: nexi-xpay-mcp-server
Trello MCP ServerMCP server for the Trello REST API – manage boards, lists, cards, labels, checklists and more.Local · stdioPyPI: trello-mcp

More developer servers

All 6,250 →
ServerRunsEndpoint or package
Db Conn MCPA dead-simple, self-hosted MCP server for securely querying databases via AI agents.Local · stdioPyPI: db-conn-mcp
DB Connect MCPMulti-database MCP server for PostgreSQL, MySQL, and ClickHouse.Local · stdioPyPI: db-connect-mcp
Db GatewayKVKK/GDPR-compliant LLM-to-database gateway: PII masking, RBAC, rate limiting, audit log.Local · stdionpm: @guardbee/mcp-db-gateway
Db Gateway145+ tools across 8 databases: MySQL, PostgreSQL, Redshift, MongoDB, Redis, Kafka, and more.Local · stdionpm: db-gateway
Db Metadata Extractor MCPExtract database metadata from PostgreSQL, Snowflake, SQL Server, BigQuery, and Oracle.Local · stdioPyPI: db-metadata-extractor-mcp
Db PlannerRead and edit DB Planner database schemas, diagrams and board layouts as an AI agent.Remote · HTTPapi.dbplanner.io
DB Query Guard MCPPaid remote MCP for governed database query review, SQL simulation, approvals, and audits.Remote · HTTPdbqueryguard.clauxel.com
db-compareRead-only MCP to diff SQL Server/Azure SQL schema, procs, views, and tables between environments.Local · stdioPyPI: db-compare-mcp