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

unimysql-tutor

v0.1.1

Published

Educational MCP server for MySQL with safe guardrails and SQL tutoring.

Readme

UniMySQL-MCP (Global Tutor Edition)

License: MIT TypeScript MCP Protocol

UniMySQL-MCP is more than just a database connector; it's the tutor you wish you had in your first year of university. Transform your AI into a SQL expert that guides, protects, and teaches you.


Why UniMySQL?

Unlike other MCP servers that are "black boxes" or security risks, UniMySQL is built on the philosophy of Supervised Learning:

1. Interactive Supervision Layer

If you attempt a DELETE or UPDATE, the server intercepts the request. The Tutor explains the consequences and only executes the command if you explicitly confirm. No more accidental data loss!

2. Educational Planner (Explain-First)

Built-in audit tools analyze how MySQL executes your queries. The AI can detect missing indexes or inefficient queries before they become a problem.

3. Relationship Mapping (Oracle Style)

We automatically detect Foreign Keys (FK) and present them clearly so the LLM understands your schema without hallucinations.

4. Bulk Data Export (CSV/JSON)

Export thousands of rows directly to your local exports/ folder without hitting chat limits.

5. Native Schema Resources

Expose your full database schema as an MCP Resource (mysql://localhost/schema), allowing the AI to understand your tables instantly without executing tools.

6. Interactive Prompts

Use built-in teaching templates like sql_lesson and schema_audit to guide your learning journey.


How it Works (Architecture)

graph TD
  User((Student)) -->|Natural Language| LLM["MCP Client"]
  LLM -->|JSON-RPC| MCP["UniMySQL-MCP Server (TS)"]
  
  subgraph "Safety & Tutoring"
    MCP --> Guard{Is Destructive?}
    Guard -->|Yes| Warn["Ask for Confirmation"]
    Guard -->|No| Safe["Execute SQL"]
  end
  
  Safe --> MySQL[("MySQL Localhost")]
  MySQL --> Results["Paginated Results"]
  Results -->|Educational Feedback| LLM

Quick Start

Global Installer (Recommended)

We've created a script that handles everything for you:

curl -sSL https://raw.githubusercontent.com/adiego-101/unimysql-mcp-ts/main/setup.sh | bash

Manual Installation

  1. Clone the repo:
git clone https://github.com/adiego-101/unimysql-mcp-ts.git
cd unimysql-mcp-ts
  1. Install dependencies:
npm install
  1. Build the project:
npm run build
  1. Configure your .env: Copy .env.example to .env and set your credentials.

Agent Configuration

Claude Desktop

Add this to your claude_desktop_config.json:

"unimysql-ts": {
 "command": "node",
 "args": ["/absolute/path/to/unimysql-mcp-ts/dist/index.js"]
}

Cursor / Gemini CLI

Point the MCP server to the dist/index.js file path.


The "Tutor User" (Best Practices)

Don't use root. Be a good engineer and create a user with just enough permissions:

CREATE USER 'mcp_tutor'@'localhost' IDENTIFIED BY 'your_password';
GRANT SELECT, INSERT, UPDATE, DELETE ON university.* TO 'mcp_tutor'@'localhost';
FLUSH PRIVILEGES;

Contributing

This is an Open Source project for students. If you have an idea for a new educational tool, open a PR!

Made with for the OpenAI community and students worldwide.