Skip to main content
MCP server CX Codex

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 GitHub

What 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.

Similar MCP servers

All MCP servers for Data and databases →

From the same set15

The whole set →
linear This MCP server for Claude Code connects an agent to Linear. It searches and edits issues, projects, comments, and labels. CX Codex +1 ★ 10repo stars kapso-whatsapp Claude Code MCP server kapso-whatsapp sends WhatsApp messages and reads conversations. The tool connects AI agents to the messaging API. CX Codex +1 ★ 10repo stars image-generation The image-generation MCP server for Claude Code turns a text description into an image with Google Gemini. Describe a scene or object to request an image. CX Codex +1 ★ 10repo stars google-calendar This MCP server for Claude Code manages Google Calendar events by listing, creating, updating, and deleting them. It responds to calendar requests. CX Codex +1 ★ 10repo stars docusign This MCP server for Claude Code manages DocuSign envelopes and reads their documents. It can create, send, track, or void an envelope. CX Codex +1 ★ 10repo stars cloudflare-r2 cloudflare-r2 is a Claude Code MCP server that sends files to your Cloudflare R2 bucket and returns a shareable link. CX Codex +1 ★ 10repo stars atlassian-jira atlassian-jira — an MCP server for Claude Code and Cursor connects your assistant to Jira API. It queries issues, tracks worklogs, moves tickets through workflows, and manages attachments. CX Codex +1 ★ 10repo stars atlassian-confluence The atlassian-confluence MCP server for Claude Code lets an agent read and edit Confluence content. It comes into play when a task involves pages, blog posts, or attachments. CX Codex +1 ★ 10repo stars

Project sponsors

Companies that keep this analytics open