MCP.so
登录

Database MCP Server

@georgi-terziyski

关于 Database MCP Server

暂无概览

基本信息

分类

数据库

运行时

python

传输方式

stdio

发布者

georgi-terziyski

配置

使用下面的配置,将此服务器添加到你的 MCP 客户端。

{
  "mcpServers": {
    "database_mcp_server": {
      "command": "python",
      "args": [
        "-m",
        "db_mcp_server"
      ]
    }
  }
}

工具

未检测到工具

工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。

概览

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.

评论

数据库 分类下的更多 MCP 服务器