MySQL MCP 服务器
与 MySQL 数据库集成的 MCP 服务器实现,为 LLM 提供安全的数据库访问功能。
特征
读取操作
执行只读 SELECT 查询
列出所有数据库表
显示表结构
查看架构信息
写入操作
使用事务支持执行 INSERT/UPDATE/DELETE
数据安全的参数化查询
返回受影响的行和插入 ID
安全
SELECT 查询的只读事务模式
查询长度和结果大小限制
性能监控和日志记录
自动交易处理
安装
与Dive Desktop一起使用
在 Dive Desktop 中点击“+ 添加 MCP 服务器”
复制并粘贴此配置:
点击“保存”安装 MCP 服务器
工具文档
mysql_query
执行只读 SELECT 查询
输入:
sql
(字符串):要执行的 SQL SELECT 查询
限制:
最大查询长度:4096 个字符
最大结果行数:1000
查询超时:30秒
mysql_execute
执行数据修改操作
输入:
sql
(字符串):SQL 语句(INSERT/UPDATE/DELETE)params
(数组,可选):SQL 语句的参数
特征:
返回受影响的行数
返回最后一个插入 ID
自动交易处理
列表表
列出当前数据库中的所有表
无需输入
描述表
显示表结构
输入:
table
(字符串):要描述的表名称
使用示例
要求你的法学硕士:
手动启动
如果需要,请手动启动服务器:
要求
Node.js 18+
MySQL服务器
MCP 兼容的 LLM 服务
执照
麻省理工学院
作者
颜德伟
关键词
甲基氯丙烯
mysql
数据库
潜水
法学硕士
人工智能
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
与 MySQL 数据库集成的 MCP 服务器,通过 LLM 驱动的接口实现安全的读写操作,并支持事务处理和性能监控。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityAn MCP server that provides read-only access to MySQL databases.Last updated -428843MIT License
- AsecurityAlicenseAqualityAn MCP server that enables MySQL database integration with Claude. You can execute SQL queries and manage database connections.Last updated -27MIT License
- -securityFlicense-qualityAn MCP server that allows working with MySQL databases by providing tools for executing read-only SQL queries, getting table schemas, and listing database tables.Last updated -3114
- -securityFlicense-qualityA FastMCP-based server that enables interaction with MySQL databases, supporting client-server communication for querying and analyzing MySQL data.Last updated -