MCP cover image
See in Github
2025-04-04

用于光标IDE中MySQL数据库的模型上下文协议服务器

2

Github Watches

0

Github Forks

1

Github Stars

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

相关推荐

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Yusuf Emre Yeşilyurt
  • I find academic articles and books for research and literature reviews.

  • https://maiplestudio.com
  • Find Exhibitors, Speakers and more

  • Carlos Ferrin
  • Encuentra películas y series en plataformas de streaming.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • lumpenspace
  • Take an adjectivised noun, and create images making it progressively more adjective!

  • Lists Tailwind CSS classes in monospaced font

  • https://appia.in
  • Siri Shortcut Finder – your go-to place for discovering amazing Siri Shortcuts with ease

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • modelcontextprotocol
  • 模型上下文协议服务器

  • Mintplex-Labs
  • 带有内置抹布,AI代理,无代理构建器,MCP兼容性等的多合一桌面和Docker AI应用程序。

  • ravitemer
  • 一个功能强大的Neovim插件,用于管理MCP(模型上下文协议)服务器

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

  • patruff
  • Ollama和MCP服务器之间的桥梁,使本地LLMS可以使用模型上下文协议工具

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

    Reviews

    3 (1)
    Avatar
    user_jfyopXG3
    2025-04-17

    mysql-mcp-server by comonetso is a fantastic tool for anyone who uses MySQL extensively. Its seamless integration and robust performance have truly enhanced my database management experience. I highly recommend checking it out on GitHub: https://github.com/comonetso/mysql-mcp-server.