Install DB Gateway in Claude Code
claude mcp add db-gateway -e DBS=... -- npx -y db-gateway{
"mcpServers": {
"db-gateway": {
"command": "npx",
"args": [
"-y",
"db-gateway"
],
"env": {
"DBS": "..."
}
}
}
}Replace each ... with your own value.
Frequently asked questions
What does the DB Gateway MCP server do?
145+ tools across 8 databases: MySQL, PostgreSQL, Redshift, MongoDB, Redis, Kafka, and more
Is the DB Gateway 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 Gateway 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 Gateway to Claude Code?
Run: claude mcp add db-gateway -e DBS=... -- npx -y db-gateway
More databases MCP servers
View allDB Metadata Extractor
Optisol-Business/db-metadata-extractor-mcp
Extract database metadata from PostgreSQL, Snowflake, SQL Server, BigQuery, and Oracle.
Dataparity
arif-js/dataparity
Cross-database data diff and reconciliation for AI agents, with a portable row hash
db-compare
yadu-tv/db-compare
Read-only MCP to diff SQL Server/Azure SQL schema, procs, views, and tables between environments.
Datanotes
davidefornelli/datanotes
The engine of your second brain: Markdown notes as database tables, for you and your agents.
Dbhawk Plugin
Datasparc/dbhawk-mcp-plugin
Secure access to DBHawk datasources: browse schemas, run governed queries, DBHawk AI text-to-SQL.
Databridge Kit
CloudCorpRecords/databridge-kit
Execute SQL and inspect tables, views, schemas and more on a configured database.