# database

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.

- MCP server · `type=mcp` · Claude Code, Codex, Cursor, GitHub Copilot, Windsurf (Devin Desktop), Cline, Zed, Gemini CLI · ★ 10 repo stars
- Author: magurelabs
- License: Apache-2.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/magurelabs/magoneai-mcp/tree/HEAD/connectors/database
- Updated: 2026-11-16
- Security check: automated, 2026-11-17 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/mcp/database

## What it 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]"`.

## Requirements
- Needs: Docker
- Environment variables: `MCP_MODE`, `MCP_SERVICE_TOKEN` — keys and tokens: ask the human for the values, never commit them or put them in shared files.

## Install

### Claude Code (native platform)

**Install**
- The MCP registry has no launch command for it: see the repository README

## When to use it
- 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
- 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

## Similar
- [database-optimizer](https://affpapa.org/en/nevibecode/agents/qdhenry-database-optimizer.md) — subagent · ★ 1357 repo stars
- [database-expert](https://affpapa.org/en/nevibecode/agents/database-expert.md) — subagent · ★ 763 repo stars
- [database-performance-optimizer](https://affpapa.org/en/nevibecode/agents/database-performance-optimizer.md) — subagent · ★ 1013 repo stars
- [database-administrator](https://affpapa.org/en/nevibecode/agents/josstei-database-administrator.md) — subagent · ★ 489 repo stars
- [database-migrator](https://affpapa.org/en/nevibecode/skills/database-migrator.md) — skill · 267 installs
- [sql-pro](https://affpapa.org/en/nevibecode/agents/voltagent-community-sql-pro.md) — subagent · 3602 installs

From the same set: [magurelabs/magoneai-mcp](https://affpapa.org/en/nevibecode/by/magurelabs/magoneai-mcp.md) — 15 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
