Enables connection to MySQL databases with capabilities for executing SQL queries, viewing table lists, and examining table structures.
MySQL MCP Server
MySQL 데이터베이스에 연결할 수 있는 Model Context Protocol (MCP) 서버입니다.
기능
- MySQL 데이터베이스 연결
- SQL 쿼리 실행
- 테이블 목록 조회
- 테이블 구조 확인
설치
의존성에 문제가 있는 경우
위 내용을 선행 후 git에서 받은 것을 다운로드 덮어 씌운 뒤
사용법
1. 직접 실행 경우
2. Claude Desktop 설정 해서 사용 할 경우
Claude Desktop의 설정 파일에 다음과 같이 추가하세요:
Windows: %APPDATA%/Claude/claude_desktop_config.json
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
3. 여러 데이터베이스 연결
환경 변수
DB_HOST
: MySQL 서버 호스트 (기본값: localhost)DB_PORT
: MySQL 서버 포트 (기본값: 3306)DB_USER
: MySQL 사용자명 (기본값: root)DB_PASSWORD
: MySQL 비밀번호 (기본값: 빈 문자열)DB_NAME
: 데이터베이스 이름 (기본값: test)
사용 가능한 도구
execute_query
SQL 쿼리를 실행합니다.
show_tables
데이터베이스의 모든 테이블을 조회합니다.
describe_table
특정 테이블의 구조를 확인합니다.
요구사항
- Node.js 18.0.0 이상
- MySQL 서버
의존성
@modelcontextprotocol/sdk
: MCP SDKmysql2
: MySQL 클라이언트
라이선스
MIT
This server cannot be installed
A Model Context Protocol server that connects to MySQL databases, allowing execution of SQL queries, table listing, and schema inspection through Claude Desktop.
Related MCP Servers
- -securityFlicense-qualityA Model Context Protocol server that enables SQL query execution, database management, and business intelligence capabilities through MySQL connections.Last updated -JavaScript
- -securityAlicense-qualityA Model Context Protocol server that provides Claude access to Turso-hosted LibSQL databases, enabling database table listing, schema retrieval, and SELECT query execution.Last updated -125TypeScriptMIT License
- -securityAlicense-qualityA connector that gives Claude direct access to MySQL databases through the Model Context Protocol, enabling natural language querying, schema exploration, and database management.Last updated -PythonMIT License
- -securityFlicense-qualityA Model Context Protocol server that allows Large Language Models like Claude to execute SQL queries, explore database schemas, and maintain persistent connections to SQL Server databases.Last updated -TypeScript