MySQL Managing MCP
Provides tools for managing MySQL databases including listing tables, retrieving table schemas, executing queries, showing indexes, and analyzing query execution plans.
Click on "Deploy 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 Managing MCPshow me the schema for the users table"
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.
MCPs
MySQL Managing MCP
How to use this MCP:
Import imagem in the docker-compose with how to docker-compose.yml
version: '3.8'
services:
mcp-mysql:
image: lclpedro/mcp-mysql:latest
container_name: mcp-mysql
ports:
- "3002:3002"
environment:
- MYSQL_DATABASE_HOST=mysql-db
- MYSQL_DATABASE_PORT=3306
- MYSQL_DATABASE_USER=test
- MYSQL_DATABASE_PASSWORD=root
- MYSQL_DATABASE_NAME=testdb
depends_on:
- testdb
volumes:
- poetry-cache:/root/.cache/pypoetry
your-database-mysql:
image: mysql:8.0
environment:
- MYSQL_DATABASE=couponsdbx
- MYSQL_USER=test
- MYSQL_PASSWORD=root
- MYSQL_ROOT_PASSWORD=root
ports:
- "3306:3306"
volumes:
- mysql_data:/var/lib/mysql
volumes:
your-database-mysql:Run docker-compose up -d
Configure MCP Server in this IDE:
{
"mcpServers": {
"mysqlManaging":{
"serverUrl": "http://localhost:3002/sse"
}
}
}Load MCPs in IDE.
Others Executions
If your running only MCP server, you can run it with:
> git clone https://github.com/lclpedro/mcp-mysql.git
> cd mcp-mysql
> cp .env.example .env
> poetry install
> poetry run python main.pyTools available:
health_check
list_tables
get_table_schema
execute_query
show_indexes_table
show_explain_query
Contributing with this MCP
Fork it
Create your feature branch (git checkout -b feature/AmazingFeature)
Commit your changes (git commit -m 'Add some AmazingFeature')
Push to the branch (git push origin feature/AmazingFeature)
Open a Pull Request
This server cannot be deployed
Maintenance
Related MCP Connectors
Explore, query, and inspect SQLite databases with ease. List tables, preview results, and view det…
- dbtrailOAuthcom.dbtrail
MySQL change tracking with instant row-level recovery and forensic attribution for compliance.
Connect to PlanetScale databases, branches, schema, query insights, and execute SQL
Generate, fix, explain and run read-only SQL on PostgreSQL, MySQL and SQL Server
Related MCP Servers
- AlicenseBqualityNot gradedmaintenanceEnables secure interaction with MySQL databases through listing tables, reading data, and executing SQL queries with proper error handling and controlled access.1MIT
- FlicenseNot gradedqualityNot gradedmaintenanceEnables direct interaction with MySQL databases through SQL queries, table exploration, and schema inspection with support for prepared statements and connection pooling.-
- AlicenseAqualityDmaintenanceEnables comprehensive MySQL database operations including CRUD, performance optimization, health monitoring, index analysis, lock detection, and SQL execution plan analysis with role-based permission control.9MIT
- AlicenseNot gradedqualityCmaintenanceEnables natural language interaction with MySQL databases through MCP tools for querying, executing DDL/DML, listing databases/tables, and describing table schemas, with parameterized queries and read-only mode.381 npmMIT