
askdba/mysql-mcp-server
Analytics & monitoring이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
askdba/mysql-mcp-server는 MCP 서버 후보가 https://github.com/askdba/mysql-mcp-server.에서 수입되었습니다
개요
askdba/mysql-mcp-server는 MCP 서버 후보가 https://github.com/askdba/mysql-mcp-server.에서 수입되었습니다
개요(AI 번역)
빠른, 읽기 전용 MySQL Server for the Model Context Protocol (MCP) 에서 작성되었습니다.
이 프로젝트는 MCP를 통해 Claude Desktop에 안전한 MySQL 인트로픽션 도구를 노출시킵니다. Claude는 데이터베이스를 탐험 할 수 있으며 스키마를 설명하고 제어 된 읽기 전용 SQL 쿼리를 실행합니다. 안전한 개발 지원, 디버깅, 분석 및 스키마 문서에 이상적입니다.
특징
- 완전 읽기 전용 (모든 non-SELECT/SHOW/DESCRIBE/EXPLAIN 차단)
- Multi-DSN 지원: 여러 MySQL 또는 MariaDB 인스턴스에 연결하여 도구로 전환
- MariaDB 지원: MariaDB 10.x, 11.x 및 12.x의 기본 호환성 -Vector Search (MySQL 9.0+): 벡터 열에 대한 유사성 검색
- MCP 도구 :
- list databases, list tables, 설명 table
- run query (안전하고 행 제한)
- 핑, 서버 info
- list connections, 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.3)
- Query timeouts, Structured logging, 감사 로그; 옵션 ** 라이브 토큰 메트릭스 ** 및
/statusHTTP 모드의 대시보드
이 페이지는 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"
}
}
}
}