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
Slide Captcha for React by Typescript
A blog starter project for a NextJS blog using Obsidian as the CMS
Call another MCP client from your MCP client. Offload context windows, delegate tasks, split between models
council of models for decision
Node.js Model Context Protocol (MCP) server providing secure, relative filesystem access for AI agents like Cline/Claude.
Helps AI assistants access text content from bot-protected websites. MCP server that fetches HTML/markdown from sites with anti-automation...
MCP Markdownify Server with UTF-8 Support - Enhanced version with better multilingual handling
Ask users questions from your LLM! interactive-mcp: Local, cross-platform MCP server for interactive prompts, chat & notifications.
A Model Context Protocol (MCP) server implementation for remote memory bank management, inspired by Cline Memory Bank.
本项目是一个钉钉MCP(Message Connector Protocol)服务,提供了与钉钉企业应用交互的API接口。项目基于Go语言开发,支持员工信息查询和消息发送等功能。





