Mysql MCP server
MCP server for MySQL/MariaDB — pooled async queries with destructive-query safety
1 stars
Reviews
Write oneNobody has reviewed Mysql yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Mysql tools
No tool declarations could be read from the package source. They show once the server is installed.
Public scan report
scanner v0.1.9 · 2026-09-25 · same rubric, same numbers if you re-run it
- –Code scanremote-only server, no package to scann/a
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualityno auth information5/15
- Maintenancelast push 30 days ago12/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How Mysql compares
Against every graded Databases MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 63/100
- higher than 13% of 802 Databases servers
- GitHub stars
- 1
- more than 45% of 602 Databases servers
Install Mysql in Claude Code, Cursor or VS Code
The registry entry has no remote endpoint or installable package.
What the publisher says
From the Mysql repository's README, as published. We do not edit it. Read it on GitHub
MySQL MCP Server
A high-quality Model Context Protocol (MCP) server implementation for MySQL databases. This server enables AI assistants like Claude to interact with MySQL databases through a standardized protocol.
Version: 0.2.0 | Protocol: MCP 2025-03-26 | Rust: 1.70+ | Status: Production Ready
Table of Contents
- Features
- Installation
- Quick Start (5 Minutes)
- Usage
- Available Tools
- Database Context Feature
- Security Considerations
- Architecture
- Troubleshooting
- Development
- Deployment Guide
- Contributing
Features
- Schema Inspection: Retrieve table schemas and structure information
- Query Execution: Execute SQL queries (read-only by default for safety)
- Data Manipulation: Insert, update, and delete operations
- Database Context: Specify which database to use per query
- Safety Controls: Configurable query restrictions to prevent dangerous operations
- Connection Management: Robust connection handling with retry logic and pooling
- Error Handling: Comprehensive error reporting with detailed messages
- JSON-RPC 2.0 Protocol: Standardized communication via stdio
Installation
Prerequisites
- Rust 1.70+
- MySQL 5.7+ or MariaDB 10.2+
- Access to a MySQL database
Building from Source
git clone <repository-url>
cd mcp-server-mysql
cargo build --releaseThe compiled binary will be available at target/release/mcp-server-mysql.
From Release Package
# Extract the package
tar -xzf mcp-server-mysql-v0.2.0-linux-x86_64.tar.gz
# Move binary to system path (optional)
sudo cp mcp-server-mysql /usr/local/bin/
# Verify installation
mcp-server-mysql --versionQuick Start (5 Minutes)
Step 1: Build the Server
cargo build --releaseThe binary will be at target/release/mcp-server-mysql
Step 2: Test the Connection
./target/release/mcp-server-mysql \
--host localhost \
--username root \
--password yourpassword \
--database testdbYou should see: "MCP MySQL Server started and ready to accept connections"
Step 3: Configure Claude Desktop
Edit your Claude Desktop configuration file:
- macOS: ~/Library/Application Support/Claude/claudedesktopconfig.json
- Windows: %APPDATA%\Claude\claudedesktopconfig.json
Add this configuration:
{
"mcpServers": {
"mysql": {
"command": "/absolute/path/to/mcp-server-mysql",
"args": [
"--host", "localhost",
"--port", "3306",
"--username", "your_username",
"--password", "your_password",
"--database", "your_database"
]
}
}
}Security Note: For production use, consider using environment variables or a secure secrets management solution instead of hardcoding passwords in the configuration file.
Step 4: Restart Claude Desktop
Close and reopen Claude Desktop completely. You should see a small hammer icon indicating the MCP server is connected.
Step 5: Try it Out!
Ask Claude:
- "Can you show me the schema for the users table in my MySQL database?"
- "Query the database and show me the first 10 rows from the products table"
- "What tables are in my database?"
Usage
Command Line Arguments
mcp-server-mysql \
--host localhost \
--port 3306 \
--username your_username \
--password your_password \
--database your_database \
--allow-dangerous-queries falseArguments Reference
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Mysql: common questions
- Is Mysql MCP server safe?
- With care: it is graded C, so read the findings first (63/100). Read the Mysql safety report
- Does Mysql need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Mysql maintained?
- The last commit was 70 days ago (2026-08-26). The latest release is v0.2.0.
- What can I use instead of Mysql?
- Servers from other publishers that do the same job: DBHub MCP server, Quarry MCP server and CogniCore MCP server.
- How does Mysql compare with other Databases MCP servers?
- safety score 63/100 (higher than 13% of 802 Databases servers); github stars 1 (more than 45% of 602 Databases servers). Full comparison.
Alternatives to Mysql
Same job from other publishers: the closest match first, then the best rated.
- DBHubToken-efficient database MCP server for PostgreSQL, MySQL, MariaDB, SQL Server, Oracle, SQLitenot reviewedWidely usedA
- QuarrySafety-railed database access: Postgres, MySQL, SQLite, Redis. Read-only by default.not reviewedGrowingA
- CogniCoreMemory, reflection and safety for AI agents. Hosted or local, no vector database.5.0(1)GrowingA
- AppwriteBuild and deploy backends: auth, Postgres/MySQL/vector databases, storage, functions, hosting, CDNnot reviewedEstablishedA
- FaucetSQL database to MCP tools and REST API: PostgreSQL, MySQL, SQL Server, Oracle, SQLite, Snowflake.not reviewedEstablishedA