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

mysql-mcp-universal

v2.2.0

Published

🚀 Universal MySQL MCP Server - Connect GitHub Copilot to any MySQL database instantly

Downloads

36

Readme

🚀 MySQL MCP Universal Server

npm version License: MIT Node.js

🌟 ¡La forma más fácil de conectar GitHub Copilot a cualquier base de datos MySQL al instante!

Servidor MCP (Model Context Protocol) que permite a GitHub Copilot conectarse a cualquier base de datos MySQL en cualquier servidor (local o remoto).

📖 English Documentation | Guía de Instalación | Guía Rápida

⚡ Instalación Rápida

  1. Instalar dependencias:

    npm install
  2. Configurar VS Code globalmente: Agregar a C:\Users\[usuario]\AppData\Roaming\Code\User\settings.json:

    "mcp": {
        "servers": {
            "mysql-universal": {
                "command": "node",
                "args": ["Q:\\laragon\\www\\mysql-connect\\main-universal.cjs"],
                "env": {
                    "MYSQL_HOST": "127.0.0.1",
                    "MYSQL_USER": "root",
                    "MYSQL_PASSWORD": "tu_password",
                    "MYSQL_PORT": "3306"
                }
            }
        }
    }
  3. Reiniciar VS Code

🎯 Uso Inmediato

Abre GitHub Copilot Chat en VS Code y prueba:

  • "Muestra las bases de datos disponibles"
  • "Lista las tablas de la base de datos 'mi_proyecto'"
  • "Describe la estructura de la tabla 'usuarios'"
  • "Ejecuta: SELECT * FROM productos LIMIT 10"

🌟 Características

  • Universal: Conecta a cualquier servidor MySQL
  • Flexible: Parámetros dinámicos por consulta
  • Inteligente: Cache de conexiones automático
  • Simple: Sin configuración compleja

🔧 Herramientas Disponibles

| Herramienta | Descripción | Parámetros | |-------------|-------------|------------| | show_databases | Lista todas las bases de datos | host, port, user, password (opcionales) | | show_tables | Lista tablas de una BD | database (requerido), conexión (opcional) | | describe_table | Estructura de una tabla | table_name, database (requeridos), conexión (opcional) | | execute_query | Ejecuta consultas SQL | query, database (requeridos), conexión (opcional) |

📝 Ejemplos Avanzados

# Servidor remoto
"Conecta al servidor 192.168.1.100 puerto 3307 usuario 'admin' y muestra las bases de datos"

# Múltiples operaciones
"Lista las tablas de 'produccion' en localhost y las de 'desarrollo' en servidor remoto"

# Consultas específicas
"En la base de datos 'ventas', ejecuta: SELECT COUNT(*) FROM pedidos WHERE fecha >= '2024-01-01'"

⚙️ Configuración Opcional (.env)

MYSQL_HOST=127.0.0.1
MYSQL_USER=root
MYSQL_PASSWORD=123456
MYSQL_PORT=3306

Nota: Las variables de entorno son valores por defecto. Cada consulta puede usar parámetros diferentes.

🚀 Inicio del Servidor

# Opción 1: Script automatizado
start-universal.bat

# Opción 2: Comando directo
node main-universal.cjs

📁 Archivos del Proyecto

  • main-universal.cjs - Servidor principal (CommonJS)
  • package.json - Dependencias del proyecto
  • .env - Variables de entorno por defecto
  • start-universal.bat - Script de inicio
  • README.md - Esta documentación

⚠️ Requisitos

  • Node.js 18 o superior
  • MySQL Server ejecutándose
  • Laragon o servidor MySQL local/remoto

© 2024-2025 MySQL MCP Universal Server v2.0.1