Skip to content
mcp/skillhub

DB MCP Server

by stucchiio.github.stucchi/dbv1.2.1

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

2Pythonstdioofficial registry

context tax

queued

security

queued

cold start

queued

freshness

Stale7mo ago

Install DB MCP server

Install in Claude Code

claude mcp add db-stucchi -e DB_TYPE='<db-type>' -e DB_DATABASE='<db-database>' -e DB_PASSWORD='<db-password>' -e DB_URL='<db-url>' -e SSH_PASSWORD='<ssh-password>' -- uvx db-mcp-server

Configuration

VariableRequiredSecretDescription
DB_TYPEyes—Database type
DB_DATABASEyes—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—yesDatabase password (MySQL/PostgreSQL, optional)
DB_URL—yesMongoDB 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—yesSSH password (if no key provided)

Freshness

Stale — last maintenance signal 7mo ago. The newest of the signals below sets the band.

  1. Last commit (default branch)

    2026-03-24 · 7mo ago · GitHub

  2. Latest release

    no data · GitHub

  3. Package published

    no data · npm/PyPI

  4. Registry entry updated

    2026-03-24 · 7mo ago · official registry · v1.2.1

FAQ

›How do I install the DB MCP server in Claude Code?

Run: claude mcp add db-stucchi -e DB_TYPE='<db-type>' -e DB_DATABASE='<db-database>' -e DB_PASSWORD='<db-password>' -e DB_URL='<db-url>' -e SSH_PASSWORD='<ssh-password>' -- uvx db-mcp-server. For Cursor, VS Code, Claude Desktop and Windsurf, use the install tabs above.

›Does DB require an API key?

Yes. It expects DB_TYPE, DB_DATABASE, DB_PASSWORD, DB_URL, SSH_PASSWORD, of which 3 are secrets.

›Can I use DB as a remote (hosted) MCP server?

No hosted endpoint is published; it runs locally over stdio.

›Is DB in the official MCP registry?

Yes, as io.github.stucchi/db.

Alternatives to DB

Other database MCP servers.

View all