MCP Database Manager
Enables LLM agents to perform CRUD (Create, Read, Update, Delete) operations on MySQL databases.
Enables LLM agents to perform CRUD (Create, Read, Update, Delete) operations on PostgreSQL databases.
Integrates with SQLAlchemy to provide a unified interface for LLM agents to perform CRUD operations across multiple supported database systems.
Enables LLM agents to perform CRUD (Create, Read, Update, Delete) operations on SQLite databases.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Database Manager Show me the schema for the users table"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Database Manager
An MCP server that enables LLM agents to perform CRUD operations across multiple databases.
Features
Multi-Database Support
Permission Management (Read-only by default)
SQLAlchemy Integration
list_connectionsredacts passwords from connection URLs in its output
Related MCP server: Universal Database MCP Server
Database Support
This MCP server supports multiple databases. You can enable specific database drivers using installation extras:
Extra | Database | Drivers Installed |
| PostgreSQL |
|
| MySQL |
|
| SQL Server |
|
| All of the above | All drivers |
Configuration
The configuration file is located at:
~/.mcp-database-manager/config.yaml(on all platforms)
Example config.yaml:
connections:
- name: "main_db"
url: "sqlite:///./main.db"
readonly: trueCursor Configuration
To use this MCP server in Cursor, add the following to your MCP settings (Settings > Features > MCP):
Option 1: Local Development (Recommended for debugging)
Use this if you have the source code locally and want to test changes immediately.
{
"mcpServers": {
"database-manager": {
"command": "uv",
"args": [
"run",
"--extra",
"all",
"mcp-database-manager"
],
"cwd": "/absolute/path/to/mcp-database-manager"
}
}
}Note: Replace
/absolute/path/to/mcp-database-managerwith the actual path to your project directory.
Option 2: Using PyPI (Published version)
Use this to run the stable version published on PyPI without cloning the repository.
{
"mcpServers": {
"database-manager": {
"command": "uvx",
"args": [
"--from",
"mcp-database-manager[all]",
"mcp-database-manager"
]
}
}
}Troubleshooting
If you see "Module not found" errors, ensure you are using uv run which handles the virtual environment automatically.
Available Tools
4 toolsget_schemaA
获取数据库 schema(Markdown)。默认返回所有表的摘要;传入 table_names 时返回这些表的列详情。
Inputs: connection_name (required), table_names.
list_connectionsA
List configured database connections and their permission (readonly). Passwords are redacted from URLs in the output. Returns: JSON array of connection configs.
Inputs: include_urls (required).
read_sqlA
执行只读 SQL 查询(例如 SELECT/SHOW/PRAGMA)。 Returns: JSON array of rows.
Inputs: connection_name (required), query (required).
write_sqlA
执行写入 SQL(INSERT/UPDATE/DELETE/DDL)。 仅当连接 readonly=false 时允许。 Returns: JSON {status, rows_affected}.
Inputs: connection_name (required), query (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 4 tools
Each tool has a clearly distinct purpose: schema retrieval, connection listing, read-only queries, and write queries. There is no overlap or ambiguity.
All tool names follow a consistent verb_noun pattern with lowercase and underscores: get_schema, list_connections, read_sql, write_sql. The pattern is predictable and easy to understand.
With 4 tools covering essential database operations (schema inspection, connection management, read queries, write queries), the count is well-scoped for the server's purpose.
The tool set covers core database interactions: schema inspection, read/write operations, and connection management. Minor gaps like transaction control or query analysis tools might be missing, but the set is largely complete for basic usage.
Related MCP Connectors
PostgreSQL, MySQL, OpenAPI/Swagger, and shared Agent Memory with scoped access.
Safe, read-only Postgres and MySQL access for AI agents. Audit log + column-level controls.
PostgreSQL, MySQL, and SQL Server in one session. 26 read-only MCP tools for AI agents.
Query Postgres, MySQL, SQL Server, Oracle, BigQuery, ClickHouse and Redshift from your AI client.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables LLM agents to perform complete database operations on SQLite databases, including creating tables, executing queries, and managing data through CRUD operations with schema inspection capabilities.MIT
- AlicenseAqualityDmaintenanceEnables AI agents to securely query databases (PostgreSQL, SQLite, MySQL, DuckDB) with read-only defaults and multi-layer SQL injection prevention.81MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to safely explore and query databases across SQLite, PostgreSQL, MySQL, and MSSQL, with schema introspection, natural language queries, and data profiling.MIT
- AlicenseAqualityBmaintenanceEnables LLMs to safely explore, query, diagnose, and modify relational databases through a unified set of schema introspection, SQL execution, and administration tools. Supports multiple database backends with AST-level read-only guards, automatic LIMIT injection, and explicit opt-in write permissions for DML and DDL.658 PyPI1Apache 2.0