
designcomputer/mysql_mcp_server
Developer tools이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
MySQL 데이터베이스와의 안전한 상호작용을 가능하게 하는 모델 컨텍스트 프로토콜(MCP) 서버입니다
개요
MySQL 데이터베이스와의 안전한 상호작용을 가능하게 하는 모델 컨텍스트 프로토콜(MCP) 구현체입니다. 이 서버 구성 요소는 AI 애플리케이션(호스트/클라이언트)과 MySQL 데이터베이스 간의 통신을 용이하게 하여, 통제된 인터페이스를 통해 데이터베이스 탐색과 분석을 더 안전하고 구조화할 수 있게 합니다. : MySQL MCP 서버는 표준 입출력(STDIO)과 스트림 가능한 HTTP(SSE) 전송 모드를 모두 지원합니다. SSE 모드는 원격/자체 호스팅 배포에 권장됩니다. - — 프론테어 AI가 서버를 대신 운영하며; 로컬 설정이 필요 없습니다. - — 스미더리가 서버를 설치하고 운영합니다.
개요(AI 번역)
MySQL 데이터베이스와의 안전한 상호작용을 가능하게 하는 모델 컨텍스트 프로토콜(MCP) 구현체입니다. 이 서버 구성 요소는 AI 애플리케이션(호스트/클라이언트)과 MySQL 데이터베이스 간의 통신을 용이하게 하여, 통제된 인터페이스를 통해 데이터베이스 탐색과 분석을 더 안전하고 구조화할 수 있게 합니다.
참고: MySQL MCP 서버는 표준 입출력(STDIO)과 Streamable HTTP(SSE) 전송 모드를 모두 지원합니다. SSE 모드는 원격/자체 호스팅 배포에 권장됩니다.
배치 옵션
- 호스팅 — Fronteir AI가 서버를 운영합니다; 로컬 설정이 필요하지 않습니다.
- Local — Smithery는 사용자의 컴퓨터에 서버를 설치하고 실행합니다.
특징
- 사용 가능한 MySQL 테이블을 리소스로 나열
- 테이블 목차 읽기
- 적절한 오류 처리를 통해 SQL 쿼리를 실행합니다
- 다중 데이터베이스 모드 (선택
MYSQL_DATABASE) - SSE/HTTP 전송 지원 (
MCP_TRANSPORT=sse) - SSH 터널링 지원
- 포괄적인 스키마 정보
- 표 데이터 샘플링
- 환경 변수를 통한 데이터베이스 접근 보안
- 종합 기록
설치
수동 설치
Smithery를 통해 설치 중
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
MySQL MCP Server
A Model Context Protocol (MCP) implementation that enables secure interaction with MySQL databases. This server component facilitates communication between AI applications (hosts/clients) and MySQL databases, making database exploration and analysis safer and more structured through a controlled interface.
Note: MySQL MCP Server supports both standard input/output (STDIO) and Streamable HTTP (SSE) transport modes. The SSE mode is recommended for remote/self-hosted deployments.
Deployment options
- Hosted — Fronteir AI runs the server for you; no local setup required.
- Local — Smithery installs and runs the server on your own machine.
Features
- List available MySQL tables as resources
- Read table contents
- Execute SQL queries with proper error handling
- Multi-database mode (Optional
MYSQL_DATABASE) - SSE/HTTP transport support (
MCP_TRANSPORT=sse) - SSH Tunneling support
- Comprehensive schema information
- Table data sampling
- Secure database access through environment variables
- Comprehensive logging
Installation
Manual Installation
pip install mysql-mcp-server
Installing via Smithery
To install MySQL MCP Server for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install designcomputer/mysql-mcp-server --client claude
Installing via Claude Code CLI
claude mcp add --transport stdio designcomputer-mysql_mcp_server uvx mysql_mcp_server
Installing via Autohand Code CLI
autohand mcp add mysql env MYSQL_HOST=localhost MYSQL_PORT=3306 MYSQL_USER=your_username MYSQL_PASSWORD=your_password MYSQL_DATABASE=your_database uvx mysql_mcp_server
Add --scope project after mcp add to keep the registration in the current workspace. See Autohand Code for current CLI details.
Configuration
Set the following environment variables:
MYSQL_HOST=localhost # Database host
MYSQL_PORT=3306 # Optional: Database port (defaults to 3306 if not specified)
MYSQL_USER=your_username
MYSQL_PASSWORD=your_password
MYSQL_DATABASE=your_database # Optional: Omit for multi-database mode
# Advanced Configuration
MYSQL_SSL_MODE=DISABLED # DISABLED, REQUIRED, VERIFY_CA, VERIFY_IDENTITY
MYSQL_CONNECT_TIMEOUT=10 # Timeout in seconds
# Connection behaviour (Optional)
설치
uvx --from mysql-mcp-server mysql_mcp_server설정
{
"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"
}
}
}
}