mysql-mcp
mysql-mcp
MySQL 데이터베이스에 대한 안전한 읽기 전용 액세스를 제공하는 경량 MCP 서버입니다.
기능
다중 데이터베이스 — 여러 MySQL 인스턴스에 연결하고 즉시 전환 가능
읽기 전용 — 쓰기 작업(
INSERT,UPDATE,DELETE,DROP등) 차단지연 연결 — 시작 시점이 아닌 첫 사용 시점에 풀 생성
MCP 네이티브 —
@modelcontextprotocol/sdk기반으로 구축되어 모든 MCP 클라이언트와 호환
Related MCP server: mcp-database
설정
데이터베이스 연결 정보가 포함된 JSON 설정 파일을 생성합니다:
{
"my-db": {
"host": "db.example.com",
"port": 3306,
"user": "readonly",
"password": "secret",
"database": "mydb",
"environment": "production",
"ssl": false
}
}해당 파일을 가리키는
MYSQL_DATABASES_CONFIG환경 변수를 설정합니다.서버를 실행합니다:
npx tsx index.ts도구
도구 | 설명 |
| 구성된 모든 데이터베이스와 활성 데이터베이스 나열 |
| 활성 데이터베이스 연결 전환 |
| 읽기 전용 SQL 쿼리 실행 |
MCP 클라이언트 구성
{
"mcpServers": {
"mysql": {
"command": "npx",
"args": ["tsx", "/path/to/mysql-mcp/index.ts"],
"env": {
"MYSQL_DATABASES_CONFIG": "/path/to/databases.json"
}
}
}
}라이선스
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
An MCP server that provides read access to your cloud storage providers, bank accounts and more.
Read-only MCP server for The Quiet Protocol's engines, benchmarks, proof, and business data.
Read-only MCP server for ClassQuill, a tutoring-business-management platform.
MCP server for querying and analyzing data from ad platforms, analytics tools, and spreadsheets
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that provides read-only access to MySQL databases.4317 npm72MIT
- AlicenseAqualityCmaintenanceRead-only MySQL/MariaDB MCP server for running SELECT queries safely, with automatic read-only enforcement and query limits.36 npmMIT
- AlicenseNot gradedqualityDmaintenanceA readonly MCP server for MySQL databases that ensures safety by whitelisting only SELECT, SHOW, DESCRIBE, and EXPLAIN statements, with table blacklist support and configurable limits.MIT
- AlicenseNot gradedqualityDmaintenanceA secure, read-only MySQL database proxy using MCP protocol, enabling SQL queries and table inspections via HTTP.10 npm1MIT