
askdba/mysql-mcp-server
Analytics & monitoringこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
askdba/mysql-mcp-server は [https://github.com/askdba/mysql-mcp-server.] からインポートされた MCP サーバー候補です
概要
askdba/mysql-mcp-server は [https://github.com/askdba/mysql-mcp-server.] からインポートされた MCP サーバー候補です
概要(AI 翻訳)
Go で書かれているモデルコンテキストプロトコル(MCP)用の高速で読み取り専用 MySQL サーバー。
このプロジェクトでは、MCP 経由で Claude デスクトップに安全な MySQL のイントロスペクション ツールを公開しています。 Claudeはデータベースを探索したり、スキーマを記述したり、管理された読み取り専用のSQLクエリを実行したりすることができます。安全な開発支援、デバッグ、分析、スキーマのドキュメントに最適です。
##特徴
- 完全読み取り専用(全非SELECT/SHOW/DESCRIBE/EXPLAIN) -マルチDSNサポート:複数のMySQLまたはMariaDBインスタンスに接続し、ツールを介して切り替える
- MariaDBサポート:MariaDB 10.x、11.xおよび12.xとのネイティブの互換性
- ベクトル検索 (MySQL 9.0+): ベクトル列の類似性検索
- MCP ツール:
- list databases, list tables, 説明 table
- run query (安全かつ行限)
- ping、server info
- list connection、use connection(マルチDSN)
- ベクター search、ベクター info(MySQL 9.0+)
- MySQL 8.0、8.4、9.x、26.x、MariaDB 10.x、11.x、12.x (MySQL 8.0、8.4、9.7、26.10、MariaDB 11.4、12でCI-tested)をサポート
- クエリのタイムアウト、構造化されたロギング、監査ログ;オプションライブトークンメトリックと[
/status** HTTPモードでのダッシュボード
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
README
以下は原文 README の抜粋です。原文を見る。
MySQL MCP Server
A fast, read-only MySQL Server for the Model Context Protocol (MCP) written in Go.
This project exposes safe MySQL introspection tools to Claude Desktop via MCP. Claude can explore databases, describe schemas, and execute controlled read-only SQL queries — ideal for secure development assistance, debugging, analytics, and schema documentation.
Features
- Fully read-only (blocks all non-SELECT/SHOW/DESCRIBE/EXPLAIN)
- Multi-DSN Support: Connect to multiple MySQL or MariaDB instances, switch via tool
- MariaDB Support: Native compatibility with MariaDB 10.x, 11.x and 12.x
- Vector Search (MySQL 9.0+): Similarity search on vector columns
- MCP tools:
- list_databases, list_tables, describe_table
- run_query (safe and row-limited)
- ping, server_info
- list_connections, use_connection (multi-DSN)
- vector_search, vector_info (MySQL 9.0+)
- Supports MySQL 8.0, 8.4, 9.x, 26.x and MariaDB 10.x, 11.x, 12.x (CI-tested on MySQL 8.0, 8.4, 9.7, 26.10 and MariaDB 11.4, 12.3)
- Query timeouts, structured logging, audit logs; optional live token metrics and
/statusdashboard in HTTP mode - Performance: configurable pool/query timeouts, server-side row caps,
explain_queryplan warnings - Single Go binary
- Unit and integration tests (Testcontainers)
- Native integration with Claude Desktop MCP
Installation
Homebrew (macOS/Linux)
brew install askdba/tap/mysql-mcp-server
Update local installation (after a new release):
brew update && brew upgrade mysql-mcp-server
Apple Silicon — “Cannot install under Rosetta 2 in ARM default prefix (/opt/homebrew)”
Your shell is running Homebrew under Rosetta (Intel) while /opt/homebrew is ARM. They must match. Use one of:
- Run upgrades as ARM:
arch -arm64 brew upgrade mysql-mcp-server(orarch -arm64 /opt/homebrew/bin/brew upgrade mysql-mcp-server). - Terminal.app → Get Info → uncheck Open using Rosetta, then open a new terminal.
- Put
/opt/homebrew/binfirst inPATHso you use the ARMbrewand binary.
Claude Desktop: on Apple Silicon, point command at /opt/homebrew/bin/mysql-mcp-server. /usr/local/opt/mysql-mcp-server/... is normally Intel Homebrew and can stay on an old version.
Docker
docker pull ghcr.io/askdba/mysql-mcp-server:latest
Note: Docker image tags use the raw version number without a leading “v” (e.g.,
1.5.0, notv1.5.0).
Download Binary
インストール
docker run -i --rm -e MYSQL_DSN=root:password@tcp(host.docker.internal:3306)/mydb?parseTime=true -e MYSQL_MCP_EXTENDED=1 ghcr.io/askdba/mysql-mcp-server:latest設定
{
"mcpServers": {
"mysql": {
"command": "mysql-mcp-server",
"env": {
"MYSQL_DSN": "user:password@tcp(127.0.0.1:3306)/mydb?parseTime=true",
"MYSQL_MAX_ROWS": "200",
"MYSQL_MCP_EXTENDED": "1"
}
}
}
}