LocalFree

DB MCP server

stucchi/db-mcp-server

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

2 GitHub stars1 forks

Install DB in Claude Code

Claude Code
claude mcp add stucchi-db -e DB_TYPE=... -e DB_DATABASE=... -- uvx db-mcp-server
mcp.json (Claude Desktop, Cursor, VS Code, Windsurf)
{
  "mcpServers": {
    "stucchi-db": {
      "command": "uvx",
      "args": [
        "db-mcp-server"
      ],
      "env": {
        "DB_TYPE": "...",
        "DB_DATABASE": "..."
      }
    }
  }
}

Replace each ... with your own value.

Frequently asked questions

What does the DB MCP server do?

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

Is the DB MCP server free?

Yes, most likely. Open source and no paid account or API key is mentioned in the listing. Check the provider for current pricing.

Does DB run locally or remotely?

Local. Runs on your machine (stdio). You install it with npx, uvx, Docker or from source.

How do I add DB to Claude Code?

Run: claude mcp add stucchi-db -e DB_TYPE=... -e DB_DATABASE=... -- uvx db-mcp-server

More databases MCP servers

View all