MySQL MCP Server
MySQL MCP 서버
MySQL 데이터베이스에 직접 액세스할 수 있는 강력한 MCP 서버입니다. 이 서버를 통해 AI 에이전트는 간단한 인터페이스를 통해 MySQL 데이터베이스와 상호 작용하고, SQL 쿼리를 실행하고, 데이터베이스 콘텐츠를 관리할 수 있습니다.
특징
자원
note:///{id}URI를 통해 데이터베이스에 저장된 메모에 액세스합니다.각 노트에는 제목과 내용이 있습니다
간단한 콘텐츠 액세스를 위한 일반 텍스트 MIME 유형
도구
create_note- 데이터베이스에 새로운 텍스트 노트를 생성합니다.제목과 내용을 필수 매개변수로 사용합니다.
MySQL 데이터베이스에 저장됨
list_tables- 연결된 데이터베이스의 모든 테이블 나열count_tables- 데이터베이스에 있는 총 테이블 수를 가져옵니다.search_tables- LIKE 패턴을 사용하여 테이블 검색describe_table- 특정 테이블의 구조를 가져옵니다execute_sql- 사용자 정의 SQL 쿼리 실행
Related MCP server: MySQL MCP Server
필수 조건
Node.js 18 이상
MySQL 서버가 설치되고 실행 중입니다.
적절한 권한이 있는 데이터베이스
설정
이 저장소를 복제하세요:
지엑스피1
종속성 설치:
npm installMySQL 연결 세부 정보가 포함된
.env파일을 루트 디렉토리에 만듭니다.MYSQL_HOST=localhost MYSQL_USER=your_username MYSQL_PASSWORD=your_password MYSQL_DATABASE=your_database서버를 빌드하세요:
npm run build
설치
클로드 데스크탑용
Claude Desktop 구성 파일에 서버 구성을 추가합니다.
MacOS의 경우: ~/Library/Application Support/Claude/claude_desktop_config.json Windows의 경우: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"mysql": {
"command": "node",
"args": ["/path/to/mysql-server/build/index.js"],
"env": {
"MYSQL_HOST": "localhost",
"MYSQL_USER": "your_username",
"MYSQL_PASSWORD": "your_password",
"MYSQL_DATABASE": "your_database"
}
}
}
}클라인을 위해
Cline MCP 설정 파일에 서버 구성을 추가합니다.
MacOS의 경우: ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json Windows의 경우: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
{
"mcpServers": {
"mysql": {
"command": "node",
"args": ["/path/to/mysql-server/build/index.js"],
"env": {
"MYSQL_HOST": "localhost",
"MYSQL_USER": "your_username",
"MYSQL_PASSWORD": "your_password",
"MYSQL_DATABASE": "your_database"
},
"disabled": false,
"autoApprove": []
}
}
}사용 예
설치가 완료되면 Claude와의 대화에서 MySQL MCP 서버를 사용할 수 있습니다.
데이터베이스의 모든 테이블 나열
Please list all the tables in my MySQL database.SQL 쿼리 실행
Run this SQL query: SELECT * FROM users LIMIT 5메모를 만드세요
Create a note titled "Meeting Notes" with the content "Discussed project timeline and assigned tasks."개발
자동 재빌드를 사용한 개발의 경우:
npm run watch디버깅
MCP Inspector를 사용하여 서버를 디버깅하세요.
npm run inspector검사기는 브라우저에서 디버깅 도구에 액세스할 수 있는 URL을 제공합니다.
특허
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityFmaintenanceThis server enables AI models to interact with MySQL databases through a standardized interface.5466168MIT
- AlicenseNot gradedqualityCmaintenanceA server that enables AI models to interact with MySQL databases through a Model Control Protocol, providing tools for table creation, schema inspection, query execution, and data retrieval.28MIT
- AlicenseAqualityDmaintenanceA Model Context Protocol server that allows AI agents to execute SQL queries against a MySQL database, supporting operations like reading data, creating tables, inserting, updating, and deleting records.65198MIT
- AlicenseNot gradedqualityCmaintenanceMCP server that connects AI agents to MySQL databases for schema exploration, data querying, and SQL execution via natural language.2MIT
Related MCP Connectors
GibsonAI MCP server: manage your databases with natural language
Analytical memory for AI agents: a real Postgres queried in plain English over MCP. One command.
Driflyte MCP server which lets AI assistants query topic-specific knowledge from web and GitHub.
Appeared in Searches
- A tool for comparing design documents and source code, and accumulating business knowledge
- Exploring MySQL Database Information
- Information about MySQL database management system
- An open-source relational database management system
- Connect to MySQL server, edit database structure, and run manual migrations
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/LeonMelamud/mysql-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server