Install DB in Claude Code
claude mcp add stucchi-db -e DB_TYPE=... -e DB_DATABASE=... -- uvx db-mcp-server{
"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 allDB Conn
Idle-Sync/db-conn-mcp
A dead-simple, self-hosted MCP server for securely querying databases via AI agents.
Database
cocaxcode/database-mcp
MCP server for database connectivity. Multi-DB (PostgreSQL, MySQL, SQLite), 19 tools.
Delx Memory
davidmosiah/delx-memory
Local-first persistent memory MCP: shared SQLite key/value store, searchable, TTL-aware, secret-safe
BigQuery Data Platform
deBilla/bigquery-mcp
Read-only BigQuery tools for plain-language data questions, with a cost gate on every query
Echo Memory
echo-mem/echo-mem
Shared memory for AI agents, as a graph in your own Postgres. Writes never call an LLM.
ERP Report Engine
gulmezeren2-byte/erp-report-engine
Read-only access to ERP SQL databases (Logo Tiger, Netsis, Mikro) through canonical entities like orders, with a guard that blocks side-effecting statements.