mcp-server-mysql

benborla/mcp-server-mysql
★ 1,335 stars JavaScript 💻 Code/Dev Tools Updated 1mo ago
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.
View on GitHub →

Quick Install

Copy the config for your editor. Some servers may need additional setup — check the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "mcp-server-mysql": {
      "command": "npx",
      "args": [
        "-y",
        "benborla/mcp-server-mysql"
      ]
    }
  }
}

README Excerpt

> **🚀 This is a modified version optimized for Claude Code with SSH tunnel support** > **Original Author:** [@benborla29](https://github.com/benborla) > **Original Repository:** [https://github.com/benborla/mcp-server-mysql](https://github.com/benborla/mcp-server-mysql) > **License:** MIT - ✅ **Claude Code Integration** - Optimized for use with Anthropic's Claude Code CLI

Tools (20)

ALLOW_DDL_OPERATIONALLOW_DELETE_OPERATIONALLOW_INSERT_OPERATIONALLOW_UPDATE_OPERATIONIS_REMOTE_MCPMULTI_DB_WRITE_MODEMYSQL_CACHE_TTLMYSQL_CONNECTION_STRINGMYSQL_CONNECT_TIMEOUTMYSQL_DATE_STRINGSMYSQL_DBMYSQL_DISABLE_READ_ONLY_TRANSACTIONSMYSQL_ENABLE_LOGGINGMYSQL_HOSTMYSQL_LOG_LEVELMYSQL_MAX_QUERY_COMPLEXITYMYSQL_METRICS_ENABLEDMYSQL_PASSMYSQL_POOL_SIZEMYSQL_PORT