$ timeahead.in
mcp/database-mcp/install

install database-mcp

pick your MCP client below. snippets, file paths and reload steps included.
source: extracted from upstream READMEgithub.com/TheRaLabs/legion-mcp
paste into
macos: ~/Library/Application Support/Claude/claude_desktop_config.json
windows: %APPDATA%\Claude\claude_desktop_config.json
linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "database-mcp": {
      "command": "uvx",
      "args": [
        "database-mcp"
      ],
      "env": {
        "DB_CONFIGS": "[{\"id\":\"pg_main\",\"db_type\":\"pg\",\"configuration\":{\"host\":\"localhost\",\"port\":5432,\"user\":\"user\",\"password\":\"pw\",\"dbname\":\"postgres\"},\"description\":\"PostgreSQL Database\"},{\"id\":\"mysql_data\",\"db_type\":\"mysql\",\"configuration\":{\"host\":\"localhost\",\"port\":3306,\"user\":\"root\",\"password\":\"pass\",\"database\":\"mysql\"},\"description\":\"MySQL Database\"}]"
      }
    }
  }
}
then: Quit Claude Desktop completely (Cmd/Ctrl+Q) and reopen it.
prefer a direct link? /mcp/database-mcp/install/claude-desktop
← back to database-mcp