# Does MySQL have an MCP server?

**Yes — Official.** MySQL maintains an official MCP server.

> Oracle's MySQL MCP server lives in the oracle/mcp monorepo and its README labels it a proof of concept — the community server benborla/mcp-server-mysql (~2k stars) is the production workhorse.

## Facts

- Verdict: Official (Yes)
- Access: Local server — Runs on your machine over stdio, launched by your MCP client.
- Repository: [oracle/mcp](https://github.com/oracle/mcp) — ★ 422, last push 2026-08-05, UPL-1.0
- Maintainer: Oracle
- Language: Python
- Category: [Databases](https://mcpyet.com/category/databases/)
- Verified against vendor docs: 2026-08-10
- GitHub data refreshed: 2026-08-11 (re-checked every 6 hours)

## What it does

> Repository containing MCP (Model Context Protocol) servers that provides a suite of tools for managing and interacting with Oracle products.
> — how [oracle/mcp](https://github.com/oracle/mcp) describes itself

## The receipts

- **Official repository:** [oracle/mcp](https://github.com/oracle/mcp) — ★ 422, pushed 2026-08-05, UPL-1.0 (active)
- **Community alternative:** [benborla/mcp-server-mysql](https://github.com/benborla/mcp-server-mysql) — ★ 2.0k, pushed 2026-07-27. A Model Context Protocol server that provides read-only access to MySQL databases. This server enables LLMs to inspect database schemas and execute read-only queries.

## How to connect it

Runs on your machine over stdio, launched by your MCP client.

### Claude Code

```sh
claude mcp add mysql -- npx -y <package-from-readme>
```

Swap in the exact package and flags from the repo README — most servers need an API key passed as an environment variable. Add `--scope user` to make it available in every project.

### Claude Desktop

Open **Settings → Developer → Edit Config** and add the server to `claude_desktop_config.json`, then restart Claude Desktop:

```json
{
  "mcpServers": {
    "mysql": {
      "command": "npx",
      "args": [
        "-y",
        "<package-from-readme>"
      ],
      "env": {
        "API_KEY": "…"
      }
    }
  }
}
```

### Cursor

Add to `.cursor/mcp.json` in your project, or `~/.cursor/mcp.json` for every project:

```json
{
  "mcpServers": {
    "mysql": {
      "command": "npx",
      "args": [
        "-y",
        "<package-from-readme>"
      ],
      "env": {
        "API_KEY": "…"
      }
    }
  }
}
```

### VS Code

Add to `.vscode/mcp.json`, then pick the server from Copilot's agent-mode tools menu:

```json
{
  "servers": {
    "mysql": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "<package-from-readme>"
      ]
    }
  }
}
```

### ChatGPT

ChatGPT connects to **remote servers only**, and this one runs on your machine. Either expose it through an MCP gateway that gives it a public URL, or use a client with native local support (Claude or Cursor).

## How we know

Oracle ships an official MySQL MCP server in oracle/mcp (announced with MySQL AI on blogs.oracle.com). Seed said COMMUNITY-ONLY.

- GitHub data refreshed 2026-08-11, then every 6 hours.
- Vendor docs verified on 2026-08-10.
- Corrections: hello@mcpyet.com.

## Also in Databases

- [Snowflake](https://mcpyet.com/mcp/snowflake.md) — Official (Yes)
- [Firebase](https://mcpyet.com/mcp/firebase.md) — Official (Yes)
- [Supabase](https://mcpyet.com/mcp/supabase.md) — Official (Yes)
- [PostgreSQL](https://mcpyet.com/mcp/postgres.md) — Community only (Sort of)
- [Airtable](https://mcpyet.com/mcp/airtable.md) — Official (Yes)
- [MongoDB](https://mcpyet.com/mcp/mongodb.md) — Official (Yes)

---

Source: https://mcpyet.com/mcp/mysql/ — data refreshed 2026-08-11
