mcp-服务器-mysql
MySQL 数据库的模型上下文协议服务器。该服务器使 LLM 能够检查数据库模式并执行只读查询。
特征
- 对 MySQL 数据库的只读访问
- 模式检查功能
- 只读事务内的安全查询执行
- Docker 支持
- NPM 包可用
安装
使用 Docker
通过 Smithery 安装
要通过Smithery自动为 Claude Desktop 安装 MySQL 数据库服务器:
用法
使用 Claude Desktop
将以下配置添加到您的claude_desktop_config.json
:
注意:在 macOS 上使用 Docker 时,如果 MySQL 服务器在主机网络上运行,请使用host.docker.internal
。
连接 URL 格式
将/database
替换为您的数据库名称。
发展
执照
该项目根据MIT 许可证发布。
安全
此服务器强制执行只读访问以保护您的数据库。所有查询均在只读事务中执行。
为了增强安全性,我们建议创建只读用户。
贡献
欢迎贡献代码!欢迎提交 Pull 请求。
This server cannot be installed
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
通过检查模式并在事务中执行安全的只读查询,使 LLM 能够与 MySQL 数据库交互。
Related Resources
Related MCP Servers
- -securityAlicense-qualityA Model Context Protocol server that provides read-only access to MySQL databases, enabling LLMs to inspect database schemas and execute read-only queries.Last updated -5,426418TypeScriptMIT License
- -securityAlicense-qualityA Model Context Protocol server providing read-only access to MySQL databases, enabling LLMs to inspect database schemas and execute read-only queries.Last updated -5,426TypeScriptMIT License
- -securityAlicense-qualityA Model Context Protocol server that provides read-only access to MySQL databases, enabling LLMs to inspect database schemas and execute read-only queries.Last updated -5,426MIT License
- -securityFlicense-qualityProvides read-only access to PostgreSQL databases, enabling LLMs to inspect database schemas and execute read-only SQL queries within a secure transaction context.Last updated -16,948JavaScript