database — Claude Code MCP server: what it does, how to install
MCP server for Claude Code and Codex that links assistants directly to external databases. Queries and updates tables or collections across SQL and NoSQL engines.
Apache-2.0 ★ 10 updated 2026-11-16
Open on GitHubWhat database does
This connector queries and modifies PostgreSQL, MySQL, SQL Server, Oracle, and MongoDB instances. All connections rely on your own database credentials and storage, without routing through external platform storage.
The tool is part of the magoneai-mcp collection built with the official Python SDK. It lacks stdio transport, communicating strictly over Streamable HTTP at http://127.0.0.1:8000/mcp. Starting the process in local mode automatically binds the endpoint to 127.0.0.1.
Running the connector requires Python 3.11 or later. Database driver dependencies install from the checked-out source tree using pip install -e ".[database]".
What it helps with
- run queries and mutate rows in PostgreSQL and MySQL
- retrieve and update records in SQL Server or Oracle
- inspect and modify documents in MongoDB collections
- access corporate databases over an HTTP-based MCP transport
Example prompts for the agent
- Query the PostgreSQL database for all users created this week
- Update the status field in MongoDB orders collection where id is 402
- Describe the columns of the products table in MySQL
How to install database
Install
The MCP registry has no launch command for it: see the repository README
Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more
Questions about database
What does the database MCP server do?
It lets coding assistants execute queries and modifications against PostgreSQL, MySQL, SQL Server, Oracle, and MongoDB databases.
How to install database in Claude Code?
Clone the repository, create a virtual environment, run pip install -e ".[database]", start the server with MCP_MODE=local python -m connectors.database, and configure your MCP client to access http://127.0.0.1:8000/mcp.
What is required to run database?
You need Python 3.11 or later, the connector dependencies from source, and connection credentials for your database instances.