A
securityA
licenseA
qualityAn MCP server that enables MySQL database integration with Claude. You can execute SQL queries and manage database connections.
Last updated -
2
7
Python
MIT License
这是一个 MCP(模型上下文协议)服务器,允许 Claude AI 直接与 MySQL 数据库交互。
要通过Smithery自动安装 Claude Desktop 的数据库工具:
要安装和使用此工具,请按照以下步骤操作:
为了让 Claude 使用此工具,您需要将配置添加到您的claude_desktop_config.json
文件中,该文件通常位于:
具有以下结构:
配置完成后,您可以使用以下命令从 Claude 与 MySQL 数据库进行交互:
name_table
。”name_table
的大小。”此工具使用mysql.js
文件中配置的权限运行。请确保提供的凭据仅具有您要允许的操作所需的必要权限。
如果您遇到连接问题,请检查:
mysql.js
中的凭据正确要查询数据库,只需向 Claude 询问类似“显示我的 MySQL 中的所有数据库”或“用户表的大小是多少?”
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
MCP 服务器允许 Claude AI 直接与 MySQL 数据库交互,从而实现通过自然语言执行查询和检索表信息。
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/elber-code/database-tools'
If you have feedback or need assistance with the MCP directory API, please join our Discord server