database-manager
Comprehensive MCP (Model Context Protocol) server for database management and analysis. Supports multiple database types including PostgreSQL, MySQL, SQLite, SQL Server, MongoDB, and Redis.
claude mcp add --transport stdio code-alchemist01-database-manager-mcp-server node dist/index.js
How to use
The MCP Database Manager server provides a centralized interface for interacting with and managing a variety of databases through the MCP protocol. It exposes a suite of tools that enable you to connect to PostgreSQL, MySQL, SQLite, SQL Server, MongoDB, and Redis, then perform tasks such as query analysis, schema management, data analysis, and automatic backups. Clients using MCP (like Cursor IDE, Claude Desktop, or other MCP-compliant clients) can issue natural-language or programmatic commands to perform actions such as connecting to databases, inspecting schemas, analyzing queries, and generating migration scripts. The server translates these requests into database operations, returning structured results and insights that you can act on directly from your client interface. This setup is designed to streamline database workflows for AI-assisted workflows, including performance tuning and security checks.
Key capabilities include multi-database support, SQL query analysis (including performance metrics and execution plans), schema management (ER diagrams, migrations, and documentation), data analysis (statistics, data quality checks, and duplicate detection), backup and restore processes, and security-related checks (permissions analysis and vulnerability detection). Integrations with various MCP clients allow you to issue commands in natural language and receive actionable results without manual scripting on the client side.
How to install
Prerequisites:
- Node.js 18 or higher
- npm or yarn
- TypeScript (dev dependency) as indicated by the project
Installation steps:
- Clone the repository:
git clone https://github.com/code-alchemist01/database-manager-mcp-Server.git
cd database-manager-mcp-Server
- Install dependencies:
npm install
- Build the project:
npm run build
- Start the server:
npm start
Optional (Docker):
- Build and run the container with a Node.js 18 base, then start the MCP server inside the container using the built dist/index.js. Ensure port mappings if you expose any APIs.
Additional notes
Environment and configuration tips:
- The server is designed to be used with MCP clients that expect a Node-based command with a path to dist/index.js. If you customize the build output path, adjust the MCP client config accordingly.
- If you run in production, consider setting NODE_ENV and other relevant environment variables in your hosting environment.
- Ensure database drivers for supported databases are accessible from the host running the MCP server (network access, credentials, and firewall rules must be configured).
- Common issues: ensure the build outputs dist/index.js; if the server fails to start, check logs for missing dependencies or TypeScript compilation errors; verify that the MCP client configuration uses the correct absolute path to dist/index.js when using local file paths.
- The server supports a wide range of MCP tools (Connection management, Query analysis, Schema management, Data analysis, Backup & restore, Security) as listed in the documentation; consult the MCP client you are using for the exact command names and usage patterns.
Related MCP Servers
obsidian -tools
Add Obsidian integrations like semantic search and custom Templater prompts to Claude or any MCP client.
Matryoshka
MCP server for token-efficient large document analysis via the use of REPL state
pluggedin-app
The Crossroads for AI Data Exchanges. A unified, self-hostable web interface for discovering, configuring, and managing Model Context Protocol (MCP) servers—bringing together AI tools, workspaces, prompts, and logs from multiple MCP sources (Claude, Cursor, etc.) under one roof.
Agentic -Skill
Agentic-MCP, Progressive MCP client with three-layer lazy loading. Validates AgentSkills.io pattern for efficient token usage. Use MCP without pre-install & wasting full-loading
mongo
MCP server that provide tools to LLMs such as claude in cursor to interact with MongoDB
vscode-context
MCP Server to Connect with VS Code IDE