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

@teolin/mcp-local-mysql

v3.3.6

Published

MCP server for local MySQL database operations

Readme

MySQL MCP Server

Features

MCP server for MySQL 8.0 with connection pooling and parameterized queries.

  • Execute SQL queries with parameterized placeholders
  • List databases and tables
  • Describe table structures
  • Connection pooling for performance

Prerequisites

  • Node.js >=18.0.0
  • MySQL 8.0+
# Setup environment
cp .env.example .env
# Add:
#   MYSQL_HOST=localhost
#   MYSQL_PORT=3306
#   MYSQL_USER=root
#   MYSQL_PASSWORD=password
#   MYSQL_DATABASE=mydb

Setup

| Method | Pros | Cons | When | | -------------- | ----------------------------- | -------------------------------- | -------------- | | npx | No install, latest version | Slower, needs internet | Quick demos | | Global npm | Instant, offline | Takes disk space, manual updates | Default choice | | Local npm | Version controlled, team sync | Extra disk per project | Shared teams |

# Option 1: npx (fastest)
claude mcp add mysql --scope user -- npx --yes @teolin/mcp-local-mysql
gemini mcp add mysql npx --yes @teolin/mcp-local-mysql

# Option 2: Global install (recommended)
npm install --global @teolin/mcp-local-mysql
claude mcp add mysql --scope user -- mysql-mcp
gemini mcp add mysql mysql-mcp

# Option 3: Local project
npm install @teolin/mcp-local-mysql
claude mcp add mysql --scope project -- node ./node_modules/@teolin/mcp-local-mysql/src/index.js

# Verify
claude mcp list
gemini mcp list

# Remove
claude mcp remove mysql --scope user
gemini mcp remove mysql

Available Tools

1. query

Execute SQL queries with parameterized queries. Supports ? placeholders for parameters.

2. list_databases

List all databases.

3. list_tables

List tables in a database. Parameters: database (required).

4. describe_table

Show table structure. Parameters: database (required), table (required).

Usage Examples

Example 1: Execute query

// In Claude Code:
"Get all users from the users table where status = 'active'"
// Uses: query with parameterized placeholders

Example 2: List databases

// In Claude Code:
"Show me all databases in MySQL"
// Lists available databases

Example 3: Describe table

// In Claude Code:
"Show me the structure of the users table"
// Returns table schema

Example 4: Search data

// In Claude Code:
"Find all orders where customer_id = 123"
// Retrieves matching records