Database MCP Server
@georgi-terziyski
About Database MCP Server
No overview available yet
Basic information
Config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"database_mcp_server": {
"command": "python",
"args": [
"-m",
"db_mcp_server"
]
}
}
}Tools
No tools detected
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is Database MCP Server?
Database MCP Server is a Model Context Protocol (MCP) server that provides a unified interface for connecting to and interacting with multiple database systems: SQLite, PostgreSQL, MySQL/MariaDB, and SQL Server. It is designed for LLMs like Claude to execute queries, manage schemas, and handle transactions programmatically.
How to use Database MCP Server?
Install from source with pip install -e ., configure via environment variables (DB_CONFIG_PATH, DB_CONNECTIONS) or a JSON config file, then run as an MCP server with python -m db_mcp_server or as a standalone web server with python -m db_mcp_server.web_server. Use built-in MCP tools like execute_query, list_tables, or add_connection. For other LLMs, send HTTP POST requests to the /call_tool endpoint.
Key features of Database MCP Server
- Multi-database support (SQLite, PostgreSQL, MySQL/MariaDB, SQL Server)
- Unified interface for database operations across all types
- Schema management (create, alter, drop tables and indexes)
- Query execution (raw SQL or structured tools)
- Transaction support (begin, commit, rollback)
- Connection management (add, test, list, remove connections)
Use cases of Database MCP Server
- Allow Claude or other LLMs to query and update a database using natural language
- Manage database schemas programmatically through an LLM agent
- Execute parameterized SQL queries via MCP tools
- Integrate database operations into automated cross-database workflows
FAQ from Database MCP Server
What databases does Database MCP Server support?
It supports SQLite, PostgreSQL, MySQL/MariaDB, and SQL Server.
How does Database MCP Server connect to a database?
Connections are configured via environment variables (DB_CONFIG_PATH, DB_CONNECTIONS) or a JSON configuration file specifying type, host, port, credentials, and database path.
What are the runtime requirements for Database MCP Server?
Python 3.8+ and SQLAlchemy are required, along with optional database‑specific drivers like psycopg2-binary (PostgreSQL) or mysql-connector-python (MySQL).
What transport protocols does Database MCP Server support?
It supports the standard MCP protocol (stdio) and can also run as a standalone HTTP web server exposing /list_tools and /call_tool endpoints.
Where does the data managed by Database MCP Server live?
Data resides in the connected external databases; the server itself does not store any data.
More Databases MCP servers
mcp_mysql_server
wenb1n-devModel Context Protocol (MCP) server that supports secure interaction with MySQL databases and has anomaly analysis capabilities.更加牛逼!更加好用!不仅止于mysql的增删改查功能; 还包含了数据库异常分析能力;且便于开发者们进行个性化的工具扩展
Sail MCP Server for Spark SQL
lakehqDrop-in Apache Spark replacement written in Rust, unifying batch processing, stream processing, and compute-intensive AI workloads.
Database Gateway
centralmindUniversal MCP-Server for your Databases optimized for LLMs and AI-Agents.
Elasticsearch MCP Server
elasticMongoDB MCP Server
mongodb-jsA Model Context Protocol server to connect to MongoDB databases and MongoDB Atlas Clusters.
Comments