Basic information
About MySQL MCP Server

MySQL MCP Server is a MCP server in the AI & Agents category listed in the AddMCP.net directory, published by affannahmed. Supported transport: stdio. Runtime: python. License: MIT license. Source code is hosted on github.com. Related topics: ai-integration, mcp-server, mysql.
Setup
{
"mcpServers": {
"MCP-Server-with-Claude-Ai": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"mysql-mcp-server",
"--client",
"claude"
]
}
}
}
{
"mcpServers": {
"MCP-Server-with-Claude-Ai": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"mysql-mcp-server",
"--client",
"claude"
]
}
}
}
{
"servers": {
"MCP-Server-with-Claude-Ai": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"mysql-mcp-server",
"--client",
"claude"
]
}
}
}
MySQL MCP Server — by affannahmed config
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"MCP-Server-with-Claude-Ai": {
"command": "npx",
"args": [
"-y",
"@smithery/cli",
"install",
"mysql-mcp-server",
"--client",
"claude"
]
}
}
}
MySQL MCP Server — by affannahmed tools
Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
Overview
What is MySQL MCP Server?
A Model Context Protocol (MCP) implementation that enables secure interaction between AI applications and MySQL databases through a controlled interface, making database exploration and analysis safer and more structured.
How to use MySQL MCP Server?
Install via pip install mysql-mcp-server or automatically through Smithery. Configure by setting environment variables for MySQL host, port, user, password, and database. Integrate with Claude Desktop by adding the server configuration to claude_desktop_config.json.
Key features of MySQL MCP Server
- List available MySQL tables as resources
- Read table contents
- Execute SQL queries with proper error handling
- Secure database access through environment variables
- Comprehensive logging
Use cases of MySQL MCP Server
- Exploring database schemas by listing tables
- Analyzing data by reading table contents
- Running controlled SQL queries through AI applications
Frequently asked questions
1 Can MySQL MCP Server be run as a standalone server?
No, it is designed as a communication protocol implementation between AI applications and MySQL databases, not as a standalone server.
2 What are the dependencies and runtime requirements?
The server requires Python and can be installed via pip. It expects a running MySQL database accessible via environment variable configuration.
3 How is database access secured?
Access is configured through environment variables for host, port, user, password, and database. The README recommends creating a dedicated MySQL user with minimal permissions and never using root credentials.
4 What installation methods are available?
Manual installation via pip install mysql-mcp-server or automatic installation for Claude Desktop via Smithery using npx -y @smithery/cli install mysql-mcp-server --client claude.
Comments
No comments yet
Be the first to share feedback about this listing. Sign in to leave a comment.
Sign In