MCP Server

MCP server for interacting with MySQL databases with write operations support

Local serverstdio

What is the MCP MCP server?

MCP server for interacting with MySQL databases with write operations support. That is what the mcp mcp server brings to an AI assistant: the same capability, reachable through the Model Context Protocol rather than a separate app or dashboard.

The short version

Using mcp-server-mysql to let your AI query MySQL? Bloome brings that to your whole team — an AI-agent IM platform where AI agents are members of the chat. Connect your MCP tools and have agents inspect schemas, run queries, and answer data questions for everyone in one thread. Zero local setup, runs in the cloud, on web and mobile.

  • Read-only by default — — write operations opt-in via env flags
  • Claude Code integration — — optimized for Anthropic's Claude Code CLI
  • SSH tunnel support — — built-in support for remote databases
  • Multi-DB mode — — query across multiple databases without reconnecting
  • Schema-specific permissions — — per-database read/write control
  • PII redaction — — automatic masking of sensitive data in results

What it needs from you

Configuration is passed through the environment: MYSQL_HOST, MYSQL_PORT, MYSQL_USER, MYSQL_PASS, MYSQL_DB. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

  • Node.js v20+ - MySQL 5.7+ (8.0+ recommended) - MySQL user with appropriate privileges

Getting it running

@benborla29/mcp-server-mysql on npm is all you need. Most clients run it directly, so configuration is a few lines and a restart.

How it compares

This sits in the database access group, where several servers overlap in what they claim to do but differ sharply once you actually set them up. It is maintained by benborla29; worth a glance at recent repository activity before you build anything load-bearing on it.

We check each listing at SyncDev against the project's documentation before it goes live — if something here drifts out of date, it is a bug worth reporting.

Things to watch

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

How to install the MCP MCP server

**Claude Desktop / other clients:**

```json
{
  "mcpServers": {
    "mcp_server_mysql": {
      "command": "npx",
      "args": ["-y", "@benborla29/mcp-server-mysql"],
      "env": {
        "MYSQL_HOST": "127.0.0.1",
        "MYSQL_PORT": "3306",
        "MYSQL_USER": "root",
        "MYSQL_PASS": "your_password",
        "MYSQL_DB": "your_database"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

  • Node.js v20+ - MySQL 5.7+ (8.0+ recommended) - MySQL user with appropriate privileges
VariableDescriptionRequired
MYSQL_HOSTEndpoint or connection string the server talks to.Optional
MYSQL_PORTConfiguration value read at startup.Optional
MYSQL_USERConfiguration value read at startup.Optional
MYSQL_PASSConfiguration value read at startup.Optional
MYSQL_DBConfiguration value read at startup.Optional

Frequently asked questions

It connects MCP to MCP-compatible AI assistants such as Claude and Cursor. Instead of copying data back and forth by hand, the assistant works with MCP directly.