MySQL MCP 서버
@comonetso
关于 MySQL MCP 서버
Model Context Protocol server for MySQL databases in Cursor IDE
基本信息
配置
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mysql": {
"command": "npx",
"args": [
"-y",
"github:comonetso/mysql-mcp-server"
],
"env": {
"MYSQL_HOST": "localhost",
"MYSQL_PORT": "3306",
"MYSQL_USER": "사용자명",
"MYSQL_PASSWORD": "비밀번호",
"MYSQL_DATABASE": "데이터베이스명",
"MYSQL_READONLY": "true"
}
}
}
}工具
未检测到工具
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
概览
What is MySQL MCP 서버?
MySQL MCP 서버는 Cursor IDE에서 MySQL 데이터베이스와 상호작용하기 위한 Model Context Protocol (MCP) 서버입니다. SQL 쿼리 실행, 테이블 목록 조회, 데이터베이스 관리 등의 기능을 제공합니다.
How to use MySQL MCP 서버?
npm으로 패키지를 설치하고 (npm install), 서버를 실행합니다 (npm start). MySQL 연결 정보는 환경 변수로 설정합니다. Cursor IDE에서는 mcp.json 파일에 npx 명령어와 환경 변수를 추가하여 사용합니다.
Key features of MySQL MCP 서버
- SQL 쿼리 실행
- 테이블 목록 조회
- 테이블 구조 설명
- 데이터베이스 목록 조회
- 데이터베이스 전환
- 연결 상태 확인
Use cases of MySQL MCP 서버
- Cursor IDE 내에서 MySQL 데이터베이스 관리
- 읽기 전용 모드로 프로덕션 데이터베이스 쿼리
- 데이터베이스 스키마 탐색 및 문서화
- 개발 워크플로우에서 데이터베이스 작업 자동화
FAQ from MySQL MCP 서버
MySQL 연결을 어떻게 구성하나요?
환경 변수 MYSQL_HOST, MYSQL_PORT, MYSQL_USER, MYSQL_PASSWORD, MYSQL_DATABASE를 설정합니다. 기본값은 각각 localhost, 3306, root, 빈 문자열, test입니다.
읽기 전용 모드를 사용할 수 있나요?
네, MYSQL_READONLY 환경 변수를 "true"로 설정하면 쿼리 실행이 읽기 전용으로 제한됩니다.
서버를 어떻게 실행하나요?
npm install로 패키지를 설치한 후 npm start 명령어로 실행합니다.
Cursor IDE와 어떻게 통합하나요?
Cursor IDE 프로젝트의 `
数据库 分类下的更多 MCP 服务器
MCP Server for Milvus
zilliztechModel Context Protocol Servers for Milvus
MongoDB Lens
furey🍃🔎 MongoDB Lens: Full Featured MCP Server for MongoDB Databases
MongoDB MCP Server
mongodb-jsA Model Context Protocol server to connect to MongoDB databases and MongoDB Atlas Clusters.
Redis MCP Server
redisThe official Redis MCP Server is a natural language interface designed for agentic applications to manage and search data in Redis efficiently
Postgres Mcp
crystaldbaPostgres MCP Pro provides configurable read/write access and performance analysis for you and your AI agents.
评论