Skip to main content
Glama

MySQL Server MCP Server

by xianzong85

MySQL 서버 MCP 서버

MySQL 데이터베이스 액세스를 위한 모델 컨텍스트 프로토콜 서버

이는 MySQL 데이터베이스 쿼리 도구를 제공하는 TypeScript 기반 MCP 서버입니다. 다음을 통해 핵심 MCP 개념을 보여줍니다.

  • SQL 쿼리 실행을 위한 도구
  • 환경 변수를 통한 MySQL 데이터베이스 연결

특징

도구

  • query - SQL 쿼리 실행
    • SQL 쿼리 문자열을 필수 매개변수로 사용합니다.
    • 쿼리 결과를 반환합니다

구성

MCP 서버 구성에서 다음 환경 변수를 설정하세요.

  • MYSQL_HOST: MySQL 서버 호스트
  • MYSQL_USER: MySQL 사용자 이름
  • MYSQL_PASSWORD: MySQL 비밀번호
  • MYSQL_DATABASE: MySQL 데이터베이스 이름

개발

종속성 설치:

지엑스피1

서버를 빌드하세요:

npm run build

자동 재빌드를 사용한 개발의 경우:

npm run watch

설치

Claude Desktop과 함께 사용하려면 서버 구성을 추가하세요.

MacOS의 경우: ~/Library/Application Support/Claude/claude_desktop_config.json Windows의 경우: %APPDATA%/Claude/claude_desktop_config.json

{ "mcpServers": { "mysql": { "command": "/path/to/mysql-server/build/index.js", "env": { "MYSQL_HOST": "your-mysql-host", "MYSQL_USER": "your-mysql-user", "MYSQL_PASSWORD": "your-mysql-password", "MYSQL_DATABASE": "your-mysql-database" } } } }

디버깅

MCP 서버는 stdio를 통해 통신하므로 디버깅이 어려울 수 있습니다. 패키지 스크립트로 제공되는 MCP Inspector를 사용하는 것이 좋습니다.

npm run inspector

검사기는 브라우저에서 디버깅 도구에 액세스할 수 있는 URL을 제공합니다.

-
security - not tested
F
license - not found
-
quality - not tested

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.

환경 변수를 사용하여 SQL 쿼리 실행과 MySQL 데이터베이스 연결을 용이하게 하는 TypeScript 기반 MCP 서버입니다.

  1. 특징
    1. 도구
  2. 구성
    1. 개발
      1. 설치
        1. 디버깅

      Related MCP Servers

      • A
        security
        F
        license
        A
        quality
        A TypeScript-based MCP server designed for experimentation and integration with Calude Desktop and Cursor IDE, offering a modular playground for extending server capabilities.
        Last updated -
        2
        645
        4
        JavaScript
      • A
        security
        F
        license
        A
        quality
        MCP server that allows Claude AI to interact directly with MySQL databases, enabling query execution and table information retrieval through natural language.
        Last updated -
        1
        6
        3
        JavaScript
      • -
        security
        A
        license
        -
        quality
        A TypeScript framework for building MCP servers with client session management capabilities, supporting tools definition, authentication, image content, logging, and error handling.
        Last updated -
        6,371
        TypeScript
        MIT License
      • -
        security
        -
        license
        -
        quality
        An MCP server that allows working with MySQL databases by providing tools for executing read-only SQL queries, getting table schemas, and listing database tables.
        Last updated -
        1
        JavaScript

      View all related MCP servers

      MCP directory API

      We provide all the information about MCP servers via our MCP API.

      curl -X GET 'https://glama.ai/api/mcp/v1/servers/xianzong85/mysql-server-MCP-Server'

      If you have feedback or need assistance with the MCP directory API, please join our Discord server