Search / io.github.stucchi/db
DB MCP Server
L0· runs locallyDatabase MCP server for MySQL, PostgreSQL, MongoDB, and SQLite with SSH tunneling support.
v1.2.1 · active · repository · descriptor JSON · versions
Search / io.github.stucchi/db
L0· runs locallyDatabase MCP server for MySQL, PostgreSQL, MongoDB, and SQLite with SSH tunneling support.
v1.2.1 · active · repository · descriptor JSON · versions
{
"mcpServers": {
"db": {
"command": "uvx",
"args": [
"db-mcp-server==1.2.1"
],
"env": {
"DB_TYPE": "${DB_TYPE}",
"DB_DATABASE": "${DB_DATABASE}",
"DB_MODE": "read-only",
"DB_HOST": "localhost",
"DB_PASSWORD": "${DB_PASSWORD}",
"DB_URL": "${DB_URL}",
"SSH_PORT": "22",
"SSH_PASSWORD": "${SSH_PASSWORD}"
}
}
}
}claude mcp add db -e "DB_TYPE=${DB_TYPE}" -e "DB_DATABASE=${DB_DATABASE}" -e "DB_MODE=read-only" -e "DB_HOST=localhost" -e "DB_PASSWORD=${DB_PASSWORD}" -e "DB_URL=${DB_URL}" -e "SSH_PORT=22" -e "SSH_PASSWORD=${SSH_PASSWORD}" -- uvx db-mcp-server==1.2.1[mcp_servers.db]
command = "uvx"
args = ["db-mcp-server==1.2.1"]
env = { "DB_TYPE" = "${DB_TYPE}", "DB_DATABASE" = "${DB_DATABASE}", "DB_MODE" = "read-only", "DB_HOST" = "localhost", "DB_PASSWORD" = "${DB_PASSWORD}", "DB_URL" = "${DB_URL}", "SSH_PORT" = "22", "SSH_PASSWORD" = "${SSH_PASSWORD}" }
{
"$schema": "https://opencode.ai/config.json",
"mcp": {
"db": {
"type": "local",
"command": [
"uvx",
"db-mcp-server==1.2.1"
],
"enabled": true,
"environment": {
"DB_TYPE": "{env:DB_TYPE}",
"DB_DATABASE": "{env:DB_DATABASE}",
"DB_MODE": "read-only",
"DB_HOST": "localhost",
"DB_PASSWORD": "{env:DB_PASSWORD}",
"DB_URL": "{env:DB_URL}",
"SSH_PORT": "22",
"SSH_PASSWORD": "{env:SSH_PASSWORD}"
}
}
}
}{
"mcpServers": {
"db": {
"command": "uvx",
"args": [
"db-mcp-server==1.2.1"
],
"env": {
"DB_TYPE": "${DB_TYPE}",
"DB_DATABASE": "${DB_DATABASE}",
"DB_MODE": "read-only",
"DB_HOST": "localhost",
"DB_PASSWORD": "${DB_PASSWORD}",
"DB_URL": "${DB_URL}",
"SSH_PORT": "22",
"SSH_PASSWORD": "${SSH_PASSWORD}"
}
}
},
"deeplink": "cursor://anysphere.cursor-deeplink/mcp/install?name=db&config=eyJjb21tYW5kIjoidXZ4IiwiYXJncyI6WyJkYi1tY3Atc2VydmVyPT0xLjIuMSJdLCJlbnYiOnsiREJfVFlQRSI6IiR7REJfVFlQRX0iLCJEQl9EQVRBQkFTRSI6IiR7REJfREFUQUJBU0V9IiwiREJfTU9ERSI6InJlYWQtb25seSIsIkRCX0hPU1QiOiJsb2NhbGhvc3QiLCJEQl9QQVNTV09SRCI6IiR7REJfUEFTU1dPUkR9IiwiREJfVVJMIjoiJHtEQl9VUkx9IiwiU1NIX1BPUlQiOiIyMiIsIlNTSF9QQVNTV09SRCI6IiR7U1NIX1BBU1NXT1JEfSJ9fQ%3D%3D"
}{
"servers": {
"db": {
"type": "stdio",
"command": "uvx",
"args": [
"db-mcp-server==1.2.1"
],
"env": {
"DB_TYPE": "${DB_TYPE}",
"DB_DATABASE": "${DB_DATABASE}",
"DB_MODE": "read-only",
"DB_HOST": "localhost",
"DB_PASSWORD": "${DB_PASSWORD}",
"DB_URL": "${DB_URL}",
"SSH_PORT": "22",
"SSH_PASSWORD": "${SSH_PASSWORD}"
}
}
}
}{
"mcpServers": {
"db": {
"command": "uvx",
"args": [
"db-mcp-server==1.2.1"
],
"env": {
"DB_TYPE": "${DB_TYPE}",
"DB_DATABASE": "${DB_DATABASE}",
"DB_MODE": "read-only",
"DB_HOST": "localhost",
"DB_PASSWORD": "${DB_PASSWORD}",
"DB_URL": "${DB_URL}",
"SSH_PORT": "22",
"SSH_PASSWORD": "${SSH_PASSWORD}"
}
}
}
}extensions:
"db":
enabled: true
name: "db"
type: stdio
cmd: "uvx"
args:
- "db-mcp-server==1.2.1"
envs:
"DB_TYPE": "${DB_TYPE}"
"DB_DATABASE": "${DB_DATABASE}"
"DB_MODE": "read-only"
"DB_HOST": "localhost"
"DB_PASSWORD": "${DB_PASSWORD}"
"DB_URL": "${DB_URL}"
"SSH_PORT": "22"
"SSH_PASSWORD": "${SSH_PASSWORD}"
timeout: 300
Placeholders to fill from your own secret store: ${DB_PASSWORD}, ${DB_URL}, ${SSH_PASSWORD}. The registry never accepts secret values.
This is a local package: the command runs on your machine.
Not scored: fewer than three checks apply, usually because no remote answered a credential-free probe or the server is a local package.
protocol.modern, protocol.stateless, protocol.transport, protocol.list_ttlno remote answered a protocol handshake (not probed yet, unreachable, or local-only)auth.prm, auth.as_metadata, auth.cimdno remote uses OAuthauth.secret_in_urlno templated URLtools.descriptions, tools.description_length, tools.schemas, tools.annotations, tools.directory_hints, tools.token_cost, tools.api_dumptool list unknown (behind auth, not probed, or empty)stability.changes, stability.rug_pulltool list unknowndeps.known_vulnsno known advisory in 49 resolved packagesdeps.mcp_sdk_versionmcp 2.2.0, no known advisorydeps.resolvable[email protected] resolved: 49 packagesNo tool definition changes recorded. A server's first observation is its baseline; later probes record what changes.
Checks run on what our credential-free, read-only probes observe; tools are never called and no code audit is performed. How it is computed.
+repository +namespace-matches-repo ~liveness-unmeasured -stale-210d
Derived from observable signals (official registry feed and our own credential-free probes); no code audit performed. How it is computed.
[email protected] PyPI48 dependencies, resolved · MCP SDK mcp 2.2.0 · advisories checked 2026-10-19
No known advisory affects this dependency graph.
Dependency graphs from deps.dev; advisories from OSV.dev, including the GitHub Advisory Database and the PyPI Advisory Database; all CC BY 4.0. The graph is what a clean install of this version resolves today; nothing was installed or run. How it is checked.
| package | registry | version | runtime | secrets |
|---|---|---|---|---|
db-mcp-server | pypi | 1.2.1 | – | DB_PASSWORD, DB_URL, SSH_PASSWORD |
No tools observed. Local packages are never executed by the registry.
Schemas: list_tools.
And 1 more from this publisher.
{
"name": "io.github.stucchi/db",
"icons": [
{
"src": "https://raw.githubusercontent.com/stucchi/db-mcp-server/master/assets/icon.png",
"sizes": [
"1024x1024"
],
"mimeType": "image/png"
}
],
"title": "DB MCP Server",
"$schema": "https://static.modelcontextprotocol.io/schemas/2025-12-11/server.schema.json",
"version": "1.2.1",
"packages": [
{
"version": "1.2.1",
"transport": {
"type": "stdio"
},
"identifier": "db-mcp-server",
"registryType": "pypi",
"environmentVariables": [
{
"name": "DB_TYPE",
"choices": [
"mysql",
"postgresql",
"mongodb",
"sqlite"
],
"isRequired": true,
"description": "Database type"
},
{
"name": "DB_DATABASE",
"isRequired": true,
"description": "Database name"
},
{
"name": "DB_MODE",
"choices": [
"read-only",
"read-write"
],
"default": "read-only",
"description": "Access mode"
},
{
"name": "DB_HOST",
"default": "localhost",
"description": "Database host (MySQL/PostgreSQL)"
},
{
"name": "DB_PORT",
"format": "number",
"description": "Database port (MySQL: 3306, PostgreSQL: 5432)"
},
{
"name": "DB_USER",
"description": "Database user (MySQL default: root, PostgreSQL default: postgres)"
},
{
"name": "DB_PASSWORD",
"isSecret": true,
"description": "Database password (MySQL/PostgreSQL, optional)"
},
{
"name": "DB_URL",
"isSecret": true,
"description": "MongoDB connection URL (required for MongoDB, e.g. mongodb://...)"
},
{
"name": "SSH_HOST",
"description": "SSH bastion host for tunneling (MySQL/PostgreSQL only)"
},
{
"name": "SSH_PORT",
"format": "number",
"default": "22",
"description": "SSH port"
},
{
"name": "SSH_USER",
"description": "SSH username (default: current OS user)"
},
{
"name": "SSH_KEY",
"format": "filepath",
"description": "Path to SSH private key (e.g. ~/.ssh/id_rsa)"
},
{
"name": "SSH_PASSWORD",
"isSecret": true,
"description": "SSH password (if no key provided)"
}
]
}
],
"repository": {
"url": "https://github.com/stucchi/db-mcp-server",
"source": "github"
},
"description": "Database MCP server for MySQL, PostgreSQL, MongoDB, and SQLite with SSH tunneling support."
}