
This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A zero-dependency, single-binary MySQL MCP server built in Go that exposes tools for database schema management and CRUD data operations.
Go-based MySQL MCP server is cataloged as an MCP server attributed to pengcunfu. A zero-dependency, single-binary MySQL MCP server built in Go that exposes tools for database schema management and CRUD data operations. It is categorized under databases storage. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: Apache License 2.0. Check the source repository's current license and terms before using, modifying or distributing this software.
Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
No reviewed records to display. This does not establish that upstream lacks this capability.
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Go-based MySQL MCP server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
It offers an optional EXPLAIN check that inspects the query plan before executing CRUD queries to help optimize performance.
It supports configuration through command-line parameters such as host, user, pass, port, and db, or through a custom DSN connection string, with DSN taking priority.
README.md · 4aa4d92e51fd · Fetched 2026-11-13 13:09:40 UTC
Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.
Showing the last retrieved documentation snapshot; check the source for current changes.
注意:本项目正在积极开发中,建议在生产环境使用前进行充分测试。
从 Releases 页面 下载适合您操作系统的最新版本,并将其放入 $PATH 或您可以轻松访问的位置。
如果您已安装 Go 1.21 或更高版本:
go install -v github.com/pengcunfu/mysql-mcp-server@latest
{
"mcpServers": {
"mysql": {
"command": "mysql-mcp-server",
"args": [
"--host", "localhost",
"--user", "root",
"--pass", "password",
"--port", "3306",
"--db", "mydb"
]
}
}
}
{
"mcpServers": {
"mysql": {
"command": "mysql-mcp-server",
"args": [
"--dsn", "username:password@tcp(localhost:3306)/mydb?parseTime=true&loc=Local"
]
}
}
}
提示:更多 MySQL DSN 配置选项请参考 MySQL DSN 文档。
如果二进制文件不在 $PATH 中,需要使用完整路径。例如,Windows 用户可以这样配置:
{
"mcpServers": {
"mysql": {
"command": "C:\\Users\\<username>\\Downloads\\mysql-mcp-server.exe",
"args": ["--host", "localhost", "--user", "root", "--pass", "password"]
}
}
}
| 标志 | 说明 | 默认值 |
|---|---|---|
--host | MySQL 主机名 | localhost |
--user | MySQL 用户名 | root |
--pass | MySQL 密码 | - |
--port | MySQL 端口 | 3306 |
--db | 数据库名 | - |
--dsn | 自定义 DSN(优先使用) | - |
--read-only | 启用只读模式 | false |
--with-explain-check | 执行前使用 EXPLAIN 检查查询计划 | false |
| 标志 | 说明 |
|---|---|
--read-only | 启用只读模式,仅允许 list、read_ 和 desc_ 开头的工具,防止数据修改 |
--with-explain-check | 在执行 CRUD 查询前使用 EXPLAIN 检查查询计划,帮助优化性能 |
注意:修改标志后需要重启 MCP 服务器才能生效
list_table列出数据库服务器中的所有表。
create_table在数据库服务器中创建新表。
query:CREATE TABLE SQL 语句alter_table修改现有表结构,不支持删除表或列。
query:ALTER TABLE SQL 语句desc_table查看表结构详情。
name:表名drop_table删除数据库服务器中的表。
name:表名read_query执行只读 SQL 查询(SELECT)。
query:SELECT SQL 语句write_query执行写入 SQL 查询(INSERT)。
query:INSERT SQL 语句update_query执行更新 SQL 查询(UPDATE)。
query:UPDATE SQL 语句delete_query执行删除 SQL 查询(DELETE)。
query:DELETE SQL 语句欢迎贡献!如果您有任何想法、建议或发现了 bug,请:
git checkout -b feature/AmazingFeature)git commit -m 'Add some AmazingFeature')git push origin feature/AmazingFeature)本项目采用 Apache License 2.0 许可证。
pengcunfu
如果这个项目对您有帮助,请给它一个 star!
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Go-based MySQL MCP server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/go-mcp-mysql-pengcunfu)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.
No reviewed package or image identity; download statistics are not listed yet.
Alternative and complementary servers in the same category

This is a Model Context Protocol (MCP) server for interacting with AIStor object stores.

A Model Context Protocol server that lets AI assistants run SQL queries against AWS Athena databases and retrieve results.

A Model Context Protocol (MCP) server that exposes access to an InfluxDB v2 instance using the InfluxDB OSS API v2.