PluginBench
MCP Server
Maintained
MIT

DB MCP Server MCP Server

io.github.stucchi/db

RepositoryRegistry
How to choose

What this kind of tool is for

  • Query, inspect, or seed a database without writing a one-off script.
  • Let your agent look up schema details before it writes migration code.
  • Move a small dataset between tools without leaving the terminal.

How to compare servers like this

Engine match:
Confirm it speaks your exact database and version, not just the family.
Access scope:
Read-only connections are the safe default — start there before granting writes.
Safety rails:
Check whether destructive statements need an explicit confirmation before they run.
Maintenance signal:
Database drivers change; a recently updated tool is less likely to break mid-query.

This page carries your copy-paste config: pick your MCP client in the install section on this page and use the copy button.

What is the DB MCP Server MCP server?

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

How to install DB MCP Server

Copy-paste configuration for popular MCP clients.

transport: stdio
Config generated by PluginBench — verify against the source before use.
Environment / auth
  • DB_TYPE
    required

    Database type

  • DB_DATABASE
    required

    Database name

  • DB_MODE

    Access mode

  • DB_HOST

    Database host (MySQL/PostgreSQL)

  • DB_PORT

    Database port (MySQL: 3306, PostgreSQL: 5432)

  • DB_USER

    Database user (MySQL default: root, PostgreSQL default: postgres)

  • DB_PASSWORD
    secret

    Database password (MySQL/PostgreSQL, optional)

  • DB_URL
    secret

    MongoDB connection URL (required for MongoDB, e.g. mongodb://...)

  • SSH_HOST

    SSH bastion host for tunneling (MySQL/PostgreSQL only)

  • SSH_PORT

    SSH port

  • SSH_USER

    SSH username (default: current OS user)

  • SSH_KEY

    Path to SSH private key (e.g. ~/.ssh/id_rsa)

  • SSH_PASSWORD
    secret

    SSH password (if no key provided)

~/Library/Application Support/Claude/claude_desktop_config.json
JSON config
{
  "mcpServers": {
    "db": {
      "command": "uvx",
      "args": [
        "db-mcp-server"
      ],
      "env": {
        "DB_TYPE": "<YOUR_DB_TYPE>",
        "DB_DATABASE": "<YOUR_DB_DATABASE>",
        "DB_MODE": "<YOUR_DB_MODE>",
        "DB_HOST": "<YOUR_DB_HOST>",
        "DB_PORT": "<YOUR_DB_PORT>",
        "DB_USER": "<YOUR_DB_USER>",
        "DB_PASSWORD": "<YOUR_DB_PASSWORD>",
        "DB_URL": "<YOUR_DB_URL>",
        "SSH_HOST": "<YOUR_SSH_HOST>",
        "SSH_PORT": "<YOUR_SSH_PORT>",
        "SSH_USER": "<YOUR_SSH_USER>",
        "SSH_KEY": "<YOUR_SSH_KEY>",
        "SSH_PASSWORD": "<YOUR_SSH_PASSWORD>"
      }
    }
  }
}

Related MCP servers

DODomain Check logo

Domain Check

Maintained

Check domain availability across 500+ TLDs. Single and bulk checks with UI.

0
Python
View repository →
GOGoogle Analytics 4 logo

Manage GA4 properties, data streams, conversions, and run reports via Admin & Data APIs.

0
Python
View repository →
ITItaly OpenData logo

Italy OpenData

Maintained

Italian open data: municipalities, provinces, regions, postal codes, coordinates.

1
Python
View repository →
MCMCP Advisor logo

MCP Advisor

Maintained

Browse, search, and discover MCP servers from your AI assistant

0
Python
MIT
View repository →
NENexi XPay logo

Nexi XPay

Maintained

MCP server for Nexi XPay Back Office APIs: orders, transactions, warnings.

0
Python
MIT
View repository →
TETelnyx logo

Telnyx

Maintained

MCP server for the Telnyx API — billing, phone numbers, and messaging

0
Python
View repository →