What is MySQL MCP Server?
MySQL MCP Server is a Model Context Protocol (MCP) implementation that facilitates secure interaction between AI applications and MySQL databases.
What is MCP?
MCP (Model Context Protocol) is an open protocol that standardizes how applications provide context to LLMs, enabling secure data access for AI models.
How do I install MySQL MCP Server?
You can install it manually using pip install mysql-mcp-server or via Smithery with npx -y @smithery/cli install mysql-mcp-server --client claude.
What environment variables do I need to configure?
You need to set MYSQL_HOST, MYSQL_PORT, MYSQL_USER, MYSQL_PASSWORD, and MYSQL_DATABASE.
Can I use MySQL MCP Server as a standalone server?
No, MySQL MCP Server is designed as a communication protocol implementation between AI applications and MySQL databases, not as a standalone server.
How can I use it with Claude Desktop?
Add the MySQL MCP Server configuration to your claude_desktop_config.json file, specifying the command and environment variables.
How can I use it with Visual Studio Code?
Add the MySQL MCP Server configuration to your mcp.json file, specifying the type, command, and environment variables.
What are the security considerations?
Never commit environment variables or credentials, use a database user with minimal required permissions, consider query whitelisting, and monitor database operations.
Where can I find detailed security instructions?
Refer to the MySQL Security Configuration Guide for detailed instructions on creating a restricted MySQL user, setting permissions, and monitoring database access.
What is UBOS and how does it relate to MySQL MCP Server?
UBOS is a full-stack AI Agent Development Platform that helps orchestrate AI Agents, connect them with enterprise data, and build custom AI Agents, and Multi-Agent Systems. MySQL MCP Server can be integrated into UBOS to provide secure database access for AI Agents.
MySQL Database Server
Project Details
- yangruoyuluke/mysql_mcp_server
- MIT License
- Last Updated: 5/11/2025
Recomended MCP Servers
MCP tools for Roaming RAG
DButils is an all-in-one MCP service that enables your AI to do data analysis by harnessing versatile types...
a mcp server for vikingdb store and search
Algorand Model Context Protocol (Server & Client)
SSAFY 프로젝트 포트폴리오 정보 수집 가이드라인 mcp
🚀 High-performance MCP Server for Crawl4AI - Enable AI assistants to access web scraping, crawling, and deep research...
This read-only MCP Server allows you to connect to Salesforce Marketing data from Claude Desktop through CData JDBC...





