L'Agora
MCPLocal

DB MCP Server

io.github.stucchi/db

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

Repository
github.com/stucchi/db-mcp-server
Version
1.2.1
Author
stucchi (namespace verified by the registry)
Source
Official MCP registry (updated Mar 24, 2026)

How to install it

Variables to fill in: DB_TYPE, DB_DATABASE, DB_MODE, DB_HOST, DB_PORT, DB_USER, DB_PASSWORD, DB_URL, SSH_HOST, SSH_PORT, SSH_USER, SSH_KEY, SSH_PASSWORD.

On your machine

Claude Code

The server runs on your machine (pypi package). In a terminal:

claude mcp add db -e DB_TYPE=YOUR_DB_TYPE -e DB_DATABASE=YOUR_DB_DATABASE -e DB_MODE=YOUR_DB_MODE -e DB_HOST=YOUR_DB_HOST -e DB_PORT=YOUR_DB_PORT -e DB_USER=YOUR_DB_USER -e DB_PASSWORD=YOUR_DB_PASSWORD -e DB_URL=YOUR_DB_URL -e SSH_HOST=YOUR_SSH_HOST -e SSH_PORT=YOUR_SSH_PORT -e SSH_USER=YOUR_SSH_USER -e SSH_KEY=YOUR_SSH_KEY -e SSH_PASSWORD=YOUR_SSH_PASSWORD -- uvx [email protected]
Claude Desktop claude_desktop_config.json

Settings, Developer, Edit config, then add:

{
  "mcpServers": {
    "db": {
      "command": "uvx",
      "args": [
        "[email protected]"
      ],
      "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"
      }
    }
  }
}
Cursor ~/.cursor/mcp.json

In ~/.cursor/mcp.json:

{
  "mcpServers": {
    "db": {
      "command": "uvx",
      "args": [
        "[email protected]"
      ],
      "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"
      }
    }
  }
}
VS Code .vscode/mcp.json

In .vscode/mcp.json:

{
  "servers": {
    "db": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "[email protected]"
      ],
      "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"
      }
    }
  }
}
ChatGPT

ChatGPT only connects to remote servers (an https address). This package runs locally: use one of the apps above.

These configurations are built from the information published by the author. Check the repository before installing a local server.

Our test

This server runs on your machine: we cannot test it remotely.

Reviews

No review yet.

Sign in to leave a review. Your email is all you need.

Comments

No comment yet. A question, a tip? Start the discussion.

Sign in to comment.

Is this your project? Sign in to claim this entry.

Badge for your README

io.github.stucchi/db on L’Agora

Show that your project is listed (and tested, if it responds): paste this code in your README. The badge follows the latest test and links back to this entry.

Markdown (GitHub)

[![io.github.stucchi/db on L’Agora](https://lagora.dev/badge/io.github.stucchi/db.svg?lang=en)](https://lagora.dev/en/entry/io.github.stucchi/db)

HTML

<a href="https://lagora.dev/en/entry/io.github.stucchi/db"><img src="https://lagora.dev/badge/io.github.stucchi/db.svg?lang=en" alt="io.github.stucchi/db on L’Agora" height="20"></a>

Promote

For the entry’s author only: sign in to continue.

By the same author

MCP Advisor Local

Trello MCP Server Local

Telnyx Local

Google Analytics 4 Local

Report this entry