MySQL MCP Server
Allows execution of SQL queries and access to table data in a MySQL database.
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 MCP Serverlist all tables in the database"
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.
MySQL MCP Server (HTTP/SSE Edition)
A Model Context Protocol (MCP) server implementation for MySQL databases, featuring a stateless HTTP/SSE architecture.
This project is a modified version based on the original work by designcomputer/mysql_mcp_server.
Key Improvements
Stateless HTTP/SSE Support: Switched from stdio-based communication to an HTTP/SSE model using
FastMCP, making it suitable for cloud deployment and remote access.Enhanced Configuration: Added support for
.envfiles usingpython-dotenv.Improved Diagnostics: Detailed error messages when database environment variables are missing or incorrect.
Flexible Deployment: Can be run as a standalone server or managed by AI IDEs like Trae or Claude Desktop.
Related MCP server: MCP MySQL Server
Features
Tools: Execute custom SQL queries, list tables.
Resources: Access table data directly via
mysql://{table}/dataURIs.Security: Database credentials managed via environment variables.
Installation
Clone this repository:
git clone <your-repository-url> cd mysql_mcp_server_httpInstall dependencies:
pip install mcp mysql-connector-python python-dotenv uvicornCreate a
.envfile in the project root:MYSQL_HOST=localhost MYSQL_PORT=3306 MYSQL_USER=root MYSQL_PASSWORD=your_password MYSQL_DATABASE=your_database
Usage
Manual Start (Standalone)
Run the server using the module command:
python -m mysql_mcp_server_http.serverThe server will start on http://0.0.0.0:8000/mcp.
Integrating with AI IDEs (e.g., Trae)
Add the following JSON configuration to your mcpServers settings:
{
"mcpServers": {
"mysql_http": {
"url": "http://127.0.0.1:8000/mcp"
}
}
}Acknowledgements
This project is inspired by and modified from mysql_mcp_server by @designcomputer.
License
MIT License. See LICENSE for details.
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
- AlicenseBqualityDmaintenanceA Model Context Protocol server that enables AI models to interact with MySQL databases, providing tools for querying, executing statements, listing tables, and describing table structures.5466MIT
- FlicenseBqualityDmaintenanceA Model Context Protocol server that enables AI models to interact with MySQL databases through a standardized interface, providing tools for querying, executing commands, and managing database schemas.7
- AlicenseBqualityDmaintenanceA server based on Model Context Protocol that enables AI models to interact with MySQL databases through a standardized interface, supporting features like query execution, table listing, and automated connection management.42510MIT
- FlicenseAqualityNot gradedmaintenanceA Model Context Protocol server that enables agents to execute SQL queries against a MySQL database, supporting operations like SELECT, CREATE TABLE, INSERT, UPDATE, and DELETE with results returned in JSON format.6519
Related MCP Connectors
A Model Context Protocol server for Wix AI tools
Connect to PlanetScale databases, branches, schema, query insights, and execute SQL
A comprehensive Model Context Protocol (MCP) server that enables AI assistants to interact with yo…
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/Woodrose233/MySQL_MCP_Server_Based_On_HTTP_SSE_URL'
If you have feedback or need assistance with the MCP directory API, please join our Discord server