npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@ahngbeom/mysql-mcp-server

v1.0.1

Published

Read-only MySQL MCP Server for Claude Code

Readme

MySQL MCP Server

Claude Code에서 MySQL 데이터베이스에 접근하기 위한 읽기 전용 MCP(Model Context Protocol) 서버입니다.

특징

  • 읽기 전용: SELECT, SHOW, DESCRIBE, EXPLAIN 쿼리만 허용
  • 안전한 연결: Connection Pool 사용 (최대 5개 연결)
  • 6가지 도구 제공: 쿼리 실행, 테이블 목록, 스키마 조회, 인덱스 확인, DDL 조회, 실행 계획 분석

설치

npm install @ahngbeom/mysql-mcp-server

Claude Code 설정

~/.claude.json 또는 프로젝트의 .mcp.json에 추가:

{
  "mcpServers": {
    "mysql": {
      "command": "npx",
      "args": ["@ahngbeom/mysql-mcp-server"],
      "env": {
        "MYSQL_HOST": "localhost",
        "MYSQL_PORT": "3306",
        "MYSQL_USER": "your_user",
        "MYSQL_PASS": "your_password",
        "MYSQL_DB": "your_database"
      }
    }
  }
}

환경 변수

| 변수 | 설명 | 기본값 | |------|------|--------| | MYSQL_HOST | MySQL 호스트 | localhost | | MYSQL_PORT | MySQL 포트 | 3306 | | MYSQL_USER | 사용자 이름 | root | | MYSQL_PASS | 비밀번호 | (없음) | | MYSQL_DB | 데이터베이스 이름 | mysql |

제공 도구

| 도구 | 설명 | 예시 | |------|------|------| | query | 읽기 전용 SQL 쿼리 실행 | SELECT * FROM users LIMIT 10 | | list_tables | 데이터베이스의 모든 테이블 조회 | - | | describe_table | 테이블 구조 (컬럼, 타입, 키) 확인 | users | | show_indexes | 테이블의 인덱스 정보 조회 | users | | show_create_table | CREATE TABLE 문 확인 | users | | explain | 쿼리 실행 계획 분석 | SELECT * FROM users WHERE id = 1 |

보안

  • INSERT, UPDATE, DELETE, DROP 등 쓰기 쿼리는 차단됩니다
  • 프로덕션 환경에서는 읽기 전용 DB 계정 사용을 권장합니다

라이선스

MIT