Enables secure interaction with MySQL databases, allowing AI assistants to list tables, read data, and execute SQL queries through a controlled interface.
#https://github.com/designcomputer/mysql_mcp_server
MySQL 데이터베이스와의 안전한 상호작용을 가능하게 하는 Model Context Protocol (MCP) 구현체입니다. 이 서버 컴포넌트는 AI 애플리케이션(호스트/클라이언트)과 MySQL 데이터베이스 간의 통신을 용이하게 하여, 제어된 인터페이스를 통해 데이터베이스 탐색 및 분석을 더 안전하고 구조화된 방식으로 수행할 수 있게 합니다.
참고: MySQL MCP 서버는 독립 실행형 서버로 사용하도록 설계되지 않았으며, AI 애플리케이션과 MySQL 데이터베이스 간의 통신 프로토콜 구현체로 사용됩니다.
pip install mysql-mcp-server
Smithery를 통해 Claude Desktop용 MySQL MCP 서버를 자동으로 설치하려면:
npx -y @smithery/cli install mysql-mcp-server --client claude
다음 환경 변수를 설정하세요:
MYSQL_HOST=localhost # 데이터베이스 호스트
MYSQL_PORT=3306 # 선택사항: 데이터베이스 포트 (지정하지 않으면 기본값 3306)
MYSQL_USER=your_username
MYSQL_PASSWORD=your_password
MYSQL_DATABASE=your_database
claude_desktop_config.json
에 다음을 추가하세요:
{
"mcpServers": {
"mysql": {
"command": "uv",
"args": [
"--directory",
"path/to/mysql_mcp_server",
"run",
"mysql_mcp_server"
],
"env": {
"MYSQL_HOST": "localhost",
"MYSQL_PORT": "3306",
"MYSQL_USER": "your_username",
"MYSQL_PASSWORD": "your_password",
"MYSQL_DATABASE": "your_database"
}
}
}
}
mcp.json
에 다음을 추가하세요:
{
"servers": {
"mysql": {
"type": "stdio",
"command": "uvx",
"args": [
"--from",
"mysql-mcp-server",
"mysql_mcp_server"
],
"env": {
"MYSQL_HOST": "localhost",
"MYSQL_PORT": "3306",
"MYSQL_USER": "your_username",
"MYSQL_PASSWORD": "your_password",
"MYSQL_DATABASE": "your_database"
}
}
}
참고: 이 기능을 사용하려면 uv를 설치해야 합니다.
MySQL MCP 서버는 독립 실행형으로 또는 Python을 통해 직접 명령줄에서 실행하도록 설계되지 않았지만, MCP Inspector를 사용하여 디버깅할 수 있습니다.
MCP Inspector는 MCP 구현을 테스트하고 디버깅하는 편리한 방법을 제공합니다:
# 의존성 설치
pip install -r requirements.txt
# 디버깅을 위해 MCP Inspector 사용 (Python으로 직접 실행하지 마세요)
MySQL MCP 서버는 Claude Desktop과 같은 AI 애플리케이션과 통합되도록 설계되었으며, 독립 실행형 Python 프로그램으로 직접 실행해서는 안 됩니다.
# 저장소 클론
git clone https://github.com/yourusername/mysql_mcp_server.git
cd mysql_mcp_server
# 가상 환경 생성
python -m venv venv
source venv/bin/activate # Windows에서는 `venv\Scripts\activate`
# 개발 의존성 설치
pip install -r requirements-dev.txt
# 테스트 실행
pytest
이 MCP 구현은 기능을 위해 데이터베이스 접근이 필요합니다. 보안을 위해:
자세한 지침은 MySQL 보안 설정 가이드를 참조하세요:
⚠️ 중요: 데이터베이스 접근을 구성할 때 항상 최소 권한 원칙을 따르세요.
MIT 라이선스 - 자세한 내용은 LICENSE 파일을 참조하세요.
git checkout -b feature/amazing-feature
)git commit -m 'Add some amazing feature'
)git push origin feature/amazing-feature
)A server for secure interaction with Microsoft SQL Server databases using environment variables for configuration.
Interact with Snowflake databases to query and manage data.
Securely access BigQuery datasets with intelligent caching, schema tracking, and query analytics via Supabase integration.
BigQuery database integration with schema inspection and query capabilities
Update various databases (PostgreSQL, MySQL, MongoDB, SQLite) using data from CSV and Excel files.
Interact with the microCMS headless CMS API, enabling AI assistants to manage content.
Read and write access to Airtable databases.
Access a comprehensive database of over 30,000 SaaS products, including reviews, pricing, alternatives, and growth metrics.
Unofficial server for accessing Open Targets platform data for gene-drug-disease associations research.
Access the NFTGo Developer API for comprehensive NFT data and analytics. Requires an NFTGo API key.