mcp-mysql
MySQL
Documentation
MCPs
MySQL Managing MCP
How to use this MCP:
1. 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:2. Run docker-compose up -d
3. Configure MCP Server in this IDE:
{
"mcpServers": {
"mysqlManaging":{
"serverUrl": "http://localhost:3002/sse"
}
}
}4. 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
1. Fork it
2. Create your feature branch (git checkout -b feature/AmazingFeature)
3. Commit your changes (git commit -m 'Add some AmazingFeature')
4. Push to the branch (git push origin feature/AmazingFeature)
5. Open a Pull Request
Frequently asked questions
What is mcp-mysql?
mcp-mysql is MySQL
How do I install mcp-mysql?
Open the GitHub repository and follow its README. Most MCP servers are added to your client's MCP config, then called by your agent.
Is mcp-mysql open source?
Yes — it is hosted on GitHub at https://github.com/lclpedro/mcp-mysql.
Related MCP tools
Cognee is the open-source AI memory platform for agents. Give your AI agents persistent long-term memory across sessions with a self-hosted knowledge graph engine.
Automate browser based workflows with AI
Hindsight: Agent Memory That Learns
A privacy-first app that strips AI watermarks from content you own.
Agent framework and applications built upon Qwen>=3.0, featuring Function Calling, MCP, Code Interpreter, RAG, Chrome extension, etc.
The power of Claude Code / GeminiCLI / CodexCLI + [Gemini / OpenAI / OpenRouter / Azure / Grok / Ollama / Custom Model / All Of The Above] working as one.
Run your own MCP server? See who uses it and what to fix.
Measure it with TrackMCP