Mysql MCP server
An MCP server for MySQL databases.
2 stars53 downloads/wk
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 (5, 1 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
mysql-awrGenerate a MySQL performance report similar to Oracle AWR. Includes database statistics, InnoDB metrics, top queries (requires performance_schema), table/index statistics, connection info, and optimization recommendations.
mysql-connectProvides an interface to connect to a specified MySQL database. If a database connection is already active, the tool will close the existing connection before establishing a new one. This tool accepts three required parameters: \tconnectionString: The MySQL connection string without embedded credentials (e.g., mysql://host:port/dbname or host:port/dbname) \tuser: The MySQL username \tpassword: The
mysql-explainGenerate and display the execution plan for a given SQL query using MySQL's EXPLAIN command. This tool helps you understand how MySQL will execute your query, including information about table scans, joins, indexes used, and estimated costs. Args: \tsql: The SQL query to explain. The `model` argument should specify only the name and version of the LLM (Large Language Model) you are using, with no
mysql-querywrite actionThis tool executes SQL queries in a READ ONLY session connected to a MySQL database. If no active connection exists, it uses MCP server registration argument and environment variables MYSQL_USER and MYSQL_PASSWORD. You should: \tExecute the provided SQL query. \tReturn the results in Toon format. Args: \tsql: The SQL query to execute. The `model` argument should specify only the name and version o
mysql-statsGet comprehensive statistics for a specific MySQL table. This tool retrieves detailed information including row counts, table size, index information, column statistics, and other metadata that can help optimize queries and understand data distribution. Args: \tname: The name of the table to get statistics for. The `model` argument should specify only the name and version of the LLM (Large Languag
Public scan report
scanner v0.1.10 · 2026-09-28 · same rubric, same numbers if you re-run it
- Code scan12 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitystatic API keys via environment variables6/15
- Maintenancelast push 38 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
- 78/100
- higher than 47% of 802 Databases servers
- Tools
- 5
- the typical Databases server has 8
- Tools that change things
- 20%
- typical: 10%. Fewer write tools means less an agent can break
- GitHub stars
- 2
- more than 60% of 601 Databases servers
- Downloads a week
- 53
- more than 41% of 324 Databases servers with a package
What its tools let an agent do: 4 read · 1 change
Install Mysql in Claude Code, Cursor or VS Code
Runs npx -y @marcelo-ochoa/server-mysql on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add mysql -- npx -y @marcelo-ochoa/server-mysql
What the publisher says
From the Mysql repository's README, as published. We do not edit it. Read it on GitHub
Model Context Protocol servers
This repository is a collection of reference implementations for the Model Context Protocol (MCP), as well as references to community-built servers and additional resources.
[!IMPORTANT]
If you are looking for a list of MCP servers, you can browse published servers on the MCP Registry. The repository served by this README is dedicated to housing just the small number of reference servers maintained by the MCP steering group.
[!WARNING]
The servers in this repository are intended as reference implementations to demonstrate MCP features and SDK usage. They are meant to serve as educational examples for developers building their own MCP servers, not as production-ready solutions. Developers should evaluate their own security requirements and implement appropriate safeguards based on their specific threat model and use case.
The servers in this repository showcase the versatility and extensibility of MCP, demonstrating how it can be used to give Large Language Models (LLMs) secure, controlled access to tools and data sources. Typically, each MCP server is implemented with an MCP SDK:
- C# MCP SDK
- Go MCP SDK
- Java MCP SDK
- Kotlin MCP SDK
- PHP MCP SDK
- Python MCP SDK
- Ruby MCP SDK
- Rust MCP SDK
- Swift MCP SDK
- TypeScript MCP SDK
🌟 Reference Servers
These servers aim to demonstrate MCP features and the official SDKs.
- Everything - Reference / test server with prompts, resources, and tools.
- Fetch - Web content fetching and conversion for efficient LLM usage.
- Filesystem - Secure file operations with configurable access controls.
- Git - Tools to read, search, and manipulate Git repositories.
- Memory - Knowledge graph-based persistent memory system.
- Sequential Thinking - Dynamic and reflective problem-solving through thought sequences.
- Time - Time and timezone conversion capabilities.
Archived
The following reference servers are now archived and can be found at servers-archived.
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?
- Mostly: it is graded B (78/100). Read the Mysql safety report
- How do I install Mysql?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Mysql need an API key?
- Yes. The registry entry asks for
MYSQL_PASSWORD. - Is Mysql maintained?
- The last commit was 73 days ago (2026-08-21). The latest release is v1.0.7.
- What can I use instead of Mysql?
- Servers from other publishers that do the same job: DBHub MCP server, Appwrite MCP server and Faucet MCP server.
- How does Mysql compare with other Databases MCP servers?
- safety score 78/100 (higher than 47% of 802 Databases servers); tools 5 (the typical Databases server has 8); tools that change things 20% (typical: 10%. Fewer write tools means less an agent can break). 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
- 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
- QuarrySafety-railed database access: Postgres, MySQL, SQLite, Redis. Read-only by default.not reviewedGrowingA
- Read Only Local MysqlMCP server for read-only MySQL database queries in Claude Desktopnot reviewedGrowingA