MySQL MCP 서버

by comonetso

330 downloads
Not rated
GitHub

About

MySQL MCP 서버는 Cursor IDE에서 MySQL 데이터베이스와 상호작용하기 위한 Model Context Protocol (MCP) 서버입니다. SQL 쿼리 실행, 테이블 목록 조회, 데이터베이스 관리 등의 기능을 제공합니다.

Details

Author
comonetso
Downloads
330
Categories
Database

- SQL 쿼리 실행
- 테이블 목록 조회
- 테이블 구조 설명
- 데이터베이스 목록 조회
- 데이터베이스 전환
- 연결 상태 확인

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name MySQL MCP 서버
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

npm으로 패키지를 설치하고 (npm install), 서버를 실행합니다 (npm start). MySQL 연결 정보는 환경 변수로 설정합니다. Cursor IDE에서는 mcp.json 파일에 npx 명령어와 환경 변수를 추가하여 사용합니다.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "mysql mcp \uc11c\ubc84": {
            "mysql": {
                "command": "npx",
                "args": [
                    "-y",
                    "github:comonetso/mysql-mcp-server"
                ],
                "env": {
                    "MYSQL_HOST": "localhost",
                    "MYSQL_PORT": "3306",
                    "MYSQL_USER": "\uc0ac\uc6a9\uc790\uba85",
                    "MYSQL_PASSWORD": "\ube44\ubc00\ubc88\ud638",
                    "MYSQL_DATABASE": "\ub370\uc774\ud130\ubca0\uc774\uc2a4\uba85",
                    "MYSQL_READONLY": "true"
                }
            }
        }
    }
}

McpServers

{
    "mysql": {
        "command": "npx",
        "args": [
            "-y",
            "github:comonetso/mysql-mcp-server"
        ],
        "env": {
            "MYSQL_HOST": "localhost",
            "MYSQL_PORT": "3306",
            "MYSQL_USER": "\uc0ac\uc6a9\uc790\uba85",
            "MYSQL_PASSWORD": "\ube44\ubc00\ubc88\ud638",
            "MYSQL_DATABASE": "\ub370\uc774\ud130\ubca0\uc774\uc2a4\uba85",
            "MYSQL_READONLY": "true"
        }
    }
}

MySQL MCP 서버

Cursor IDE를 위한, MySQL 데이터베이스와 상호작용하는 Model Context Protocol(MCP) 서버입니다.

설치 및 실행

1. 필요한 패키지 설치:

   npm install

2. 서버 실행:

   npm start

환경 변수

서버 실행 시 다음 환경 변수를 설정할 수 있습니다:

- MYSQL_HOST: MySQL 서버 호스트 (기본값: "localhost")
- MYSQL_PORT: MySQL 서버 포트 (기본값: 3306)
- MYSQL_USER: MySQL 사용자 이름 (기본값: "root")
- MYSQL_PASSWORD: MySQL 비밀번호 (기본값: "")
- MYSQL_DATABASE: 기본 데이터베이스 (기본값: "test")
- MYSQL_READONLY: 읽기 전용 모드 활성화 여부 ("true" 또는 "false")

Cursor IDE와 함께 사용하기

mcp.json 파일을 Cursor IDE 프로젝트에 추가하고 다음과 같이 구성하세요:

{
  "mcpServers": {
    "mysql": {
      "command": "npx",
      "args": [
        "-y",
        "github:comonetso/mysql-mcp-server"
      ],
      "env": {
        "MYSQL_HOST": "localhost",
        "MYSQL_PORT": "3306",
        "MYSQL_USER": "사용자명",
        "MYSQL_PASSWORD": "비밀번호",
        "MYSQL_DATABASE": "데이터베이스명",
        "MYSQL_READONLY": "true"
      }
    }
  }
}

기능

- SQL 쿼리 실행
- 테이블 목록 조회
- 테이블 구조 설명
- 데이터베이스 목록 조회
- 데이터베이스 전환
- 연결 상태 확인

라이센스

MIT

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.