mysql-mcp
Allows interaction with a MySQL database, enabling SQL queries, table listing, table description, and data retrieval.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@mysql-mcplist all tables"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Servidor MCP para MySQL
Este es un servidor MCP (Model Context Protocol) que proporciona acceso a la base de datos MySQL local rangernomina.
Características
Ejecutar consultas SQL personalizadas
Listar todas las tablas de la base de datos
Describir la estructura de las tablas
Obtener datos de las tablas con límites configurables
Conexión segura usando variables de entorno
Related MCP server: MCP MySQL Server
Instalación
Navegar al directorio del proyecto:
cd tools/mysql-mcpInstalar las dependencias:
pip install -r requirements.txtConfigurar las variables de entorno en el archivo
.env(ya está configurado):
MYSQL_HOST=localhost
MYSQL_DATABASE=rangernomina
MYSQL_USER=root
MYSQL_PASSWORD=RHoss.1234
MYSQL_PORT=3306Herramientas Disponibles
1. execute_sql
Ejecuta consultas SQL personalizadas.
Parámetros:
query(requerido): La consulta SQL a ejecutarparams(opcional): Parámetros para la consulta
2. list_tables
Lista todas las tablas de la base de datos.
Parámetros: Ninguno
3. describe_table
Describe la estructura de una tabla específica.
Parámetros:
table_name(requerido): Nombre de la tabla a describir
4. get_table_data
Obtiene datos de una tabla con límite configurable.
Parámetros:
table_name(requerido): Nombre de la tablalimit(opcional): Límite de registros (por defecto 100)
Uso
El servidor se ejecuta como un proceso que lee solicitudes JSON desde stdin y devuelve respuestas JSON a stdout, siguiendo el protocolo MCP.
python server.pyConfiguración MCP
Para usar este servidor con Cline, agrega la siguiente configuración a tu archivo de configuración MCP:
{
"mcpServers": {
"mysql-local": {
"command": "python",
"args": ["D:/ssd/Projects/tools/mysql-mcp/server.py"],
"cwd": "D:/ssd/Projects/tools/mysql-mcp"
}
}
}This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- Flicense-qualityDmaintenanceEnables secure interaction with MySQL databases, allowing AI assistants to list tables, read data, and execute SQL queries through a controlled interface.Last updated
- Alicense-qualityDmaintenanceEnables AI assistants to safely query MySQL databases with read-only access by default, supporting table listing, structure inspection, and SQL queries with optional write operation control.Last updated33MIT
- Alicense-qualityDmaintenanceEnables AI models to interact with MySQL databases through standardized operations including querying, executing commands, listing tables, and describing table structures with secure prepared statement support.Last updated679MIT
- AlicenseBquality-maintenanceEnables secure interaction with MySQL databases through listing tables, reading data, and executing SQL queries with proper error handling and controlled access.Last updated1
Related MCP Connectors
Run SOQL queries to explore and retrieve Salesforce data. Access accounts, contacts, opportunities…
Run SOQL queries to explore and retrieve Salesforce data. Inspect records, fields, and relationshi…
Provide real-time data querying and visualization by integrating Tako with your agents. Generate o…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/rhayalcantara/mysql-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server