MySQL MCP Server

Integrations

  • Provides read-only access to MySQL databases, allowing for schema inspection and execution of read-only SQL queries within a READ ONLY transaction context.

@davewind/mysql-mcp-서버

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

주요 특징

  1. 읽기 전용 데이터베이스 액세스: SQL 검증 및 읽기 전용 트랜잭션을 통해 읽기 전용 작업을 시행합니다.
    2. 스키마 검색: 데이터베이스 테이블 구조를 자동으로 식별하고 노출합니다.
    3.SQL 쿼리 실행: SELECT 문을 수용하고 실행하는 쿼리 도구를 제공합니다.
    4. 모델 컨텍스트 프로토콜 준수: 호환 가능한 LLM과의 원활한 통합을 위해 MCP 사양을 구현합니다.
    5. 간단한 구성: 최소한의 구성만 필요하여 쉽게 설정 가능

도구

  • 질문
    • 연결된 데이터베이스에 대해 읽기 전용 SQL 쿼리를 실행합니다.
    • 입력: sql (문자열): 실행할 SQL 쿼리
    • 모든 쿼리는 READ ONLY 트랜잭션 내에서 실행됩니다.

자원

서버는 데이터베이스의 각 테이블에 대한 스키마 정보를 제공합니다.

  • 테이블 스키마 ( mysql://user:password@localhost:3306/database )
    • 각 테이블에 대한 JSON 스키마 정보
    • 열 이름과 데이터 유형이 포함됩니다.
    • 데이터베이스 메타데이터에서 자동으로 검색됨

설치하다

지엑스피1

구성

MCP 설정 구성 파일:

권장 사용

{ "mcpServers": { "mysql": { "command": "npx", "args": ["-y", "@davewind/mysql-mcp-server", "mysql://user:password@localhost:port/database"], } } }

시험

mysql://user:password@localhost:port/를 바꾸고 npm run inspector를 실행하세요.

"scripts": { "inspector": "npx @modelcontextprotocol/inspector@0.10.2 build/index.js mysql://user:password@localhost:port/database }

환경

node v18 +

시스템 아키텍처

MySQL MCP 서버는 LLM과 MySQL 데이터베이스 사이의 중개자 역할을 하며 모델 컨텍스트 프로토콜에 따라 요청을 처리합니다.

구성 요소 상호 작용

구성 요소 상호 작용

보안 모델

MySQL MCP 서버는 데이터베이스 액세스가 읽기 전용인지 확인하기 위해 엄격한 보안 모델을 구현합니다.

보안 조치에는 다음이 포함됩니다.

  1. SELECT 문만 허용하는 SQL 쿼리 검증 2. READ ONLY 트랜잭션 내에서 모든 쿼리 실행 3. 데이터 수정 작업(INSERT, UPDATE, DELETE 등)을 지원하지 않음 4. 데이터베이스 스키마 수정(CREATE, ALTER, DROP 등)을 지원하지 않음

LLM과의 통합

MySQL MCP 서버는 모델 컨텍스트 프로토콜(MCP)을 지원하는 모든 LLM 시스템과 호환되도록 설계되었습니다. MCP 사양에 따라 stdio를 통한 JSON-RPC를 통해 통신합니다.

특허

MIT

-
security - not tested
A
license - permissive license
-
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.

LLM에 MySQL 데이터베이스에 대한 읽기 전용 액세스 권한을 제공하는 서버로, 이를 통해 LLM은 데이터베이스 스키마를 검사하고 읽기 전용 쿼리를 실행할 수 있습니다.

  1. Key Features
    1. Tools
      1. Resources
        1. Install
          1. Configuration
            1. Test
            2. Env
            3. System Architecture
            4. Component Interaction
            5. Component Interaction
            6. Security Model
            7. Integration with LLMs
          2. License

            Related MCP Servers

            • -
              security
              A
              license
              -
              quality
              Enables LLMs to interact with MySQL databases by inspecting schemas and executing safe, read-only queries within transactions.
              Last updated -
              6
              JavaScript
              MIT License
              • Apple
            • -
              security
              A
              license
              -
              quality
              A Model Context Protocol server that provides read-only access to MySQL databases, enabling LLMs to inspect database schemas and execute read-only queries.
              Last updated -
              1,219
              133
              TypeScript
              MIT License
              • Linux
              • Apple
            • -
              security
              A
              license
              -
              quality
              A Model Context Protocol server providing read-only access to MySQL databases, enabling LLMs to inspect database schemas and execute read-only queries.
              Last updated -
              1,219
              TypeScript
              MIT License
              • Linux
              • Apple
            • -
              security
              A
              license
              -
              quality
              A Model Context Protocol server that provides read-only access to MySQL databases, enabling LLMs to inspect database schemas and execute read-only queries.
              Last updated -
              1,219
              MIT License

            View all related MCP servers

            ID: 3hfsi2nz07