How do I enable read‑only mode?
Set the environment variable `MYSQL_READ_ONLY=true` or set `mysql.read_only: true` in the configuration file. In read‑only mode, only tools starting with `list_`, `read_`, and `desc_` are available.
@cnosuke
基本情報
MCP server that acts as a MySQL Client implemented in Go language
以下の設定を使って、このサーバーを MCP 対応クライアントに追加してください。
{
"mcpServers": {
"mcp-mysql-cnosuke": {
"command": "docker",
"args": [
"pull",
"cnosuke/mcp-mysql:latest"
]
}
}
}ツール一覧はまだありません
この掲載には表示できるツール一覧がまだありません。サーバーにツールがないという意味ではありません。対応機能はプロジェクトのドキュメントをご確認ください。
ツールは README から自動的に抽出されます。メンテナーは ## Tools という見出しの下に記載することで、このタブに反映できます。
MCP MySQL Server is a Go-based MCP (Model Context Protocol) server implementation that provides MySQL database interaction functionality, allowing MCP clients such as Claude Desktop to perform database operations.
Run the server via Docker (docker pull cnosuke/mcp-mysql:latest and appropriate environment variables) or build and run the Go binary (./bin/mcp-mysql server --config=config.yml). Integrate with Claude Desktop by adding an entry to claude_desktop_config.json using either the Docker command or the Go binary path, and configure MySQL connection settings via environment variables or a YAML config file.
mysql://user:pass@host:port/dbname).Set the environment variable `MYSQL_READ_ONLY=true` or set `mysql.read_only: true` in the configuration file. In read‑only mode, only tools starting with `list_`, `read_`, and `desc_` are available.
You can provide connection details via tool parameter (`dsn`), DSN in config (`mysql.dsn`), or individual config parameters (host, user, password, port, database). The server uses URL-style or native MySQL DSN formats.
For Docker deployment no additional runtime is needed. For local development, Go 1.24 or later and a MySQL server are required.
Yes. Environment variables such as `MYSQL_HOST`, `MYSQL_PORT`, `MYSQL_USER`, `MYSQL_PASSWORD`, `MYSQL_DATABASE`, `MYSQL_DSN`, `MYSQL_READ_ONLY`, and `MYSQL_EXPLAIN_CHECK` override corresponding YAML settings.
The server supports URL schemes `mysql://` and `mariadb://`. The MySQL DSN format used is compatible with both MySQL and MariaDB servers.

Local database MCP server: your agent sees a migration's impact before it runs, for PostgreSQL, MySQL, SQL Server and SQLite, with no database credentials.
The Xata MCP server lets AI assistants and agents interact with your Xata organizations, projects, and Postgres database branches.
Connect ClickHouse to your AI assistants.
A powerful multi-database server implementing the Model Context Protocol (MCP) to provide AI assistants with structured access to databases.
The official Redis MCP Server is a natural language interface designed for agentic applications to manage and search data in Redis efficiently
コメント