db-mcp-server
by FreePeak·★ 377·Score 52
Multi-database MCP server connecting AI assistants to MySQL, PostgreSQL, SQLite and Oracle through standardized SQL interfaces.
Overview
The DB MCP Server is a powerful Go-based implementation that allows AI models to interact with multiple databases simultaneously through the Model Context Protocol. It supports lazy loading for efficient resource management, database-specific tool generation, and follows clean architecture principles. The server provides standardized tools for SQL queries, transaction management, schema exploration, and performance analysis across different database systems.
Try asking AI
After installing, here are 6 things you can ask your AI assistant:
When to choose this
Teams working with multiple database systems (MySQL, PostgreSQL, SQLite, Oracle) who need AI assistants to analyze data across different databases without direct database access.
When NOT to choose this
If you need write access to databases (this server appears focused on read operations), or if you're working exclusively with databases not in the supported list.
Tools this server exposes
6 tools extracted from the READMEquery_<db_id>Execute SELECT queries and get results as a tabular dataset
execute_<db_id>Run data manipulation statements (INSERT, UPDATE, DELETE)
transaction_<db_id>Begin, commit, and rollback transactions
schema_<db_id>Get information about tables, columns, indexes, and foreign keys
generate_schema_<db_id>Generate SQL or code from database schema
performance_<db_id>Analyze query performance and get optimization suggestions
Comparable tools
Installation
Installation
Docker Deployment
docker pull freepeak/db-mcp-server:latest
docker run -p 9092:9092 \
-v $(pwd)/config.json:/app/my-config.json \
-e TRANSPORT_MODE=sse \
-e CONFIG_PATH=/app/my-config.json \
freepeak/db-mcp-serverSource Code Installation
git clone https://github.com/FreePeak/db-mcp-server.git
cd db-mcp-server
make build
./bin/server -t sse -c config.jsonClaude Desktop Integration
Add to claude_desktop_config.json:
{
"mcpServers": {
"db-mcp-server": {
"command": "path/to/db-mcp-server/server",
"args": ["-t", "stdio", "-c", "/path/to/config.json"]
}
}
}FAQ
- What databases are supported?
- The server supports MySQL, PostgreSQL, SQLite, Oracle, and TimescaleDB with full functionality for queries, transactions, schema analysis, and performance insights.
- Can I connect to multiple databases simultaneously?
- Yes, the server is designed to connect to multiple databases concurrently, each with their own connection configuration and dynamically generated tools.
- What transport modes are available?
- The server supports both STDIO mode for IDE integration and SSE mode for server-client communication over HTTP.
Compare db-mcp-server with
Last updated · Auto-generated from public README + GitHub signals.