MySQL Server MCP Server
Servidor MCP del servidor MySQL
Un servidor de protocolo de contexto de modelo para el acceso a bases de datos MySQL
Este es un servidor MCP basado en TypeScript que proporciona herramientas para consultar bases de datos MySQL. Demuestra los conceptos básicos de MCP al proporcionar:
Herramientas para ejecutar consultas SQL
Conexión a bases de datos MySQL mediante variables de entorno
Características
Herramientas
query- Ejecutar consultas SQLToma la cadena de consulta SQL como parámetro obligatorio
Devuelve los resultados de la consulta
Related MCP server: Angular Bootstrap MCP Server
Configuración
Establezca las siguientes variables de entorno en la configuración de su servidor MCP:
MYSQL_HOST: host del servidor MySQL
MYSQL_USER: nombre de usuario de MySQL
MYSQL_PASSWORD: Contraseña de MySQL
MYSQL_DATABASE: nombre de la base de datos MySQL
Desarrollo
Instalar dependencias:
npm installConstruir el servidor:
npm run buildPara desarrollo con reconstrucción automática:
npm run watchInstalación
Para utilizar con Claude Desktop, agregue la configuración del servidor:
En MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json En Windows: %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"mysql": {
"command": "/path/to/mysql-server/build/index.js",
"env": {
"MYSQL_HOST": "your-mysql-host",
"MYSQL_USER": "your-mysql-user",
"MYSQL_PASSWORD": "your-mysql-password",
"MYSQL_DATABASE": "your-mysql-database"
}
}
}
}Depuración
Dado que los servidores MCP se comunican a través de stdio, la depuración puede ser complicada. Recomendamos usar el Inspector MCP , disponible como script de paquete:
npm run inspectorEl Inspector proporcionará una URL para acceder a las herramientas de depuración en su navegador.
This server cannot be installed
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
- AlicenseAqualityFmaintenanceA TypeScript-based MCP server that enables testing of REST APIs through Cline. This tool allows you to test and interact with any REST API endpoints directly from your development environment.110099MIT
- AlicenseNot gradedqualityDmaintenanceA TypeScript-based MCP server that provides backend API handling and facilitates communication between microservices. Features an organized structure with controllers, routes, and models for easy extensibility and maintenance.3811MIT
- AlicenseNot gradedqualityBmaintenanceA TypeScript/Node.js MCP server that wraps the Metabase REST API, enabling AI agents to execute queries, explore schemas, and build dashboards through structured tool calls.61MIT
- AlicenseNot gradedqualityAmaintenanceA simple MCP server that executes SQL queries on a MariaDB database using a YAML config file.1MIT
Related MCP Connectors
A TypeScript MCP server for Home Assistant, enabling programmatic management of entities, automati…
MCP server for managing Prisma Postgres.
An MCP server that let you interact with Cycloid.io Internal Development Portal and Platform
Appeared in Searches
- Best free MCP for React app with MySQL/MariaDB database
- Information about MySQL database management system
- A service or tool for downloading and installing SDKs for development
- Developing and redeveloping web frontend and Python backend projects, including frontend-backend integration and debugging
- Free PostgreSQL Database Solutions
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/xianzong85/mysql-server-MCP-Server'
If you have feedback or need assistance with the MCP directory API, please join our Discord server