MCP MySQL Server

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Allows Language Learning Models (LLMs) to inspect database schemas and execute read-only queries on MySQL databases

mcp-서버-mysql

MySQL 데이터베이스용 모델 컨텍스트 프로토콜 서버입니다. 이 서버를 통해 LLM은 데이터베이스 스키마를 검사하고 읽기 전용 쿼리를 실행할 수 있습니다.

특징

  • MySQL 데이터베이스에 대한 읽기 전용 액세스
  • 스키마 검사 기능
  • READ ONLY 트랜잭션 내에서 안전한 쿼리 실행
  • 도커 지원
  • NPM 패키지 사용 가능

설치

Docker 사용하기

지엑스피1

Smithery를 통해 설치

Smithery를 통해 Claude Desktop용 MySQL 데이터베이스 서버를 자동으로 설치하려면:

npx -y @smithery/cli install @yuru-sha/mcp-server-mysql --client claude

용법

Claude Desktop과 함께

claude_desktop_config.json 에 다음 구성을 추가하세요.

{ "mcpServers": { "mysql": { "command": "docker", "args": [ "run", "-i", "--rm", "mcp/mysql", "mysql://host:port/dbname" ] } } }

참고: macOS에서 Docker를 사용하는 경우 MySQL 서버가 호스트 네트워크에서 실행 중이면 host.docker.internal 사용하세요.

연결 URL 형식

mysql://[user][:password]@host[:port]/database

/database 데이터베이스 이름으로 바꾸세요.

개발

# Initial setup make setup # Build the project make build # Format code make format # Run linter make lint

특허

이 프로젝트는 MIT 라이선스 에 따라 배포됩니다.

보안

이 서버는 데이터베이스 보호를 위해 읽기 전용 액세스를 적용합니다. 모든 쿼리는 읽기 전용 트랜잭션 내에서 실행됩니다.

보안을 강화하려면 읽기 전용 사용자를 만드는 것이 좋습니다.

기여하다

기여를 환영합니다! 풀 리퀘스트를 제출해 주세요.

-
security - not tested
A
license - permissive license
-
quality - not tested

트랜잭션 내에서 스키마를 검사하고 안전한 읽기 전용 쿼리를 실행하여 LLM이 MySQL 데이터베이스와 상호 작용할 수 있도록 합니다.

  1. Features
    1. Installation
      1. Using Docker
      2. Installing via Smithery
    2. Usage
      1. With Claude Desktop
      2. Connection URL Format
    3. Development
      1. License
        1. Security
          1. Contributing
            ID: 9giyvsy2ap