DB MCP Server

io.github.stucchi/db

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

Connect this server

Add this to your MCP client config — claude_desktop_config.json (Claude Desktop) or .cursor/mcp.json (Cursor).Suits: Claude Desktop · Cursor.

{
  "mcpServers": {
    "db": {
      "command": "uvx",
      "args": [
        "db-mcp-server"
      ],
      "env": {
        "DB_TYPE": "<your DB_TYPE>",
        "DB_DATABASE": "<your DB_DATABASE>",
        "DB_MODE": "read-only",
        "DB_HOST": "localhost",
        "DB_PASSWORD": "<your DB_PASSWORD>",
        "DB_URL": "<your DB_URL>",
        "SSH_PORT": "22",
        "SSH_PASSWORD": "<your SSH_PASSWORD>"
      }
    }
  }
}
Environment variables
  • DB_TYPErequiredDatabase type
  • DB_DATABASErequiredDatabase name
  • DB_MODEAccess mode
  • DB_HOSTDatabase host (MySQL/PostgreSQL)
  • DB_PASSWORDsecretDatabase password (MySQL/PostgreSQL, optional)
  • DB_URLsecretMongoDB connection URL (required for MongoDB, e.g. mongodb://...)
  • SSH_PORTSSH port
  • SSH_PASSWORDsecretSSH password (if no key provided)

A starting point — check the repository for exact arguments and setup. Restart your client after editing the config.

Category
Databases
Version
1.2.1
Registry
active
Published
3/24/2026
Browse all Databases →

Add the badge to your site

Show visitors that DB MCP Server is listed here — it’s also the link we check for a free listing.

DB MCP Server — listed on Serverdex

HTML — for your website

<a href="https://serverdex.io/server/io-github-stucchi-db?utm_source=badge"><img src="https://serverdex.io/brand/badge.svg" alt="DB MCP Server — listed on Serverdex" width="123" height="40" loading="lazy"></a>

Recommended. A dofollow link from your own domain is the one that counts for search engines, and it's the link we check for a free listing.

Markdown — for your README

[![DB MCP Server — listed on Serverdex](https://serverdex.io/brand/badge.svg)](https://serverdex.io/server/io-github-stucchi-db?utm_source=badge)

Nice for visibility, but GitHub marks README links nofollow, so it doesn't pass authority. Use the HTML badge on your site as well.