DB MCP Server
Database MCP server for MySQL, PostgreSQL, MongoDB, and SQLite with SSH tunneling support.
Open the source (opens github.com) https://github.com/stucchi/db-mcp-server
Before you use it
- Runs on your computer with your permissions. Read what it can do before connecting it to an agent.
- Needs credentials: DB_PASSWORD, DB_URL, SSH_PASSWORD. Use a key with the least access you can.
What it is
MCP servers from io.github.stucchi.
The problem it solves and who it suits haven't been reviewed by InnerVault. The description above is the source's own.
How to get it
pypi package (stdio)
db-mcp-server@1.2.1
From the server's entry in the official MCP Registry
Settings it asks for
DB_TYPErequired · Database typeDB_DATABASErequired · Database nameDB_MODE· Access modeDB_HOST· Database host (MySQL/PostgreSQL)DB_PORT· Database port (MySQL: 3306, PostgreSQL: 5432)DB_USER· Database user (MySQL default: root, PostgreSQL default: postgres)DB_PASSWORDsecret · Database password (MySQL/PostgreSQL, optional)DB_URLsecret · MongoDB connection URL (required for MongoDB, e.g. mongodb://...)SSH_HOST· SSH bastion host for tunneling (MySQL/PostgreSQL only)SSH_PORT· SSH portSSH_USER· SSH username (default: current OS user)SSH_KEY· Path to SSH private key (e.g. ~/.ssh/id_rsa)
Related
-
db-mcp-server
MCP serversA powerful multi-database server implementing the Model Context Protocol (MCP) to provide AI assistants with structured access to databases.
git clone https://github.com/FreePeak/db-mcp-server.git -
Serverless-DB-Oracle
MCP serversPostgreSQL database administrator with serverless query routing.
-
lazydb
MCP serversA beautiful and convenient TUI database client with MCP support.
git clone https://github.com/yelog/lazydb.git -
db-mcp (SQLite MCP Server)
MCP serversSQLite MCP server with OAuth 2.1, HTTP/SSE, 122 tools, and smart tool filtering
db-mcp@1.0.2 -
db-access-mcp
MCP serversMCP server for Postgres/MySQL/Redshift/SQL Server over SSH/SSM tunnels with secret providers.
@rheopyrin/db-access-mcp@0.1.5 -
DB Connect MCP
MCP serversMulti-database MCP server for PostgreSQL, MySQL, and ClickHouse
db-connect-mcp@0.3.1