MySQL MCP Server
Provides read-only access to MySQL databases, allowing SQL queries, table listing, schema inspection, index viewing, DDL retrieval, and query execution plan analysis.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MySQL MCP Servershow me the users table schema"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MySQL MCP Server
Claude Code에서 MySQL 데이터베이스에 접근하기 위한 읽기 전용 MCP(Model Context Protocol) 서버입니다.
특징
읽기 전용:
SELECT,SHOW,DESCRIBE,EXPLAIN쿼리만 허용안전한 연결: Connection Pool 사용 (최대 5개 연결)
6가지 도구 제공: 쿼리 실행, 테이블 목록, 스키마 조회, 인덱스 확인, DDL 조회, 실행 계획 분석
Related MCP server: mysql-mcp
설치
npm install @ahngbeom/mysql-mcp-serverClaude Code 설정
~/.claude.json 또는 프로젝트의 .mcp.json에 추가:
{
"mcpServers": {
"mysql": {
"command": "npx",
"args": ["@ahngbeom/mysql-mcp-server"],
"env": {
"MYSQL_HOST": "localhost",
"MYSQL_PORT": "3306",
"MYSQL_USER": "your_user",
"MYSQL_PASS": "your_password",
"MYSQL_DB": "your_database"
}
}
}
}환경 변수
변수 | 설명 | 기본값 |
| MySQL 호스트 |
|
| MySQL 포트 |
|
| 사용자 이름 |
|
| 비밀번호 | (없음) |
| 데이터베이스 이름 |
|
제공 도구
도구 | 설명 | 예시 |
| 읽기 전용 SQL 쿼리 실행 |
|
| 데이터베이스의 모든 테이블 조회 | - |
| 테이블 구조 (컬럼, 타입, 키) 확인 |
|
| 테이블의 인덱스 정보 조회 |
|
| CREATE TABLE 문 확인 |
|
| 쿼리 실행 계획 분석 |
|
보안
INSERT,UPDATE,DELETE,DROP등 쓰기 쿼리는 차단됩니다프로덕션 환경에서는 읽기 전용 DB 계정 사용을 권장합니다
라이선스
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Text-to-SQL MCP server: read-only queries on PostgreSQL, MySQL and SQL Server with your real schema
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
Read-only MCP server for ClassQuill, a tutoring-business-management platform.
Draxlr's remote MCP server connects AI assistants to your SQL databases and dashboards. Explore schemas, run read-only queries, manage saved queries and dashboards, and export results, all with row-level security so each user sees only their own data.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceAn MCP server implementation that enables Claude to execute read-only queries against MariaDB databases and explore database schemas through natural language.20MIT
- AlicenseNot gradedqualityDmaintenanceA lightweight MCP server providing safe, read-only access to MySQL databases. It enables users to query multiple MySQL instances securely while preventing write operations.892 npmMIT
- AlicenseNot gradedqualityDmaintenanceMCP server for MySQL/MariaDB/Aurora MySQL that enables executing SQL queries, explaining query plans, inspecting schema, checking health, and running diagnostic playbooks through Claude.Apache 2.0
- FlicenseNot gradedqualityFmaintenanceA read-only MCP server that enables AI agents to explore database schemas and execute safe queries on PostgreSQL and MySQL.-