如何启动与停止服务?
使用 `./start.sh` 启动服务,使用 `./stop.sh` 停止服务;或通过 `npm run dev`(开发模式)和 `npm start`(生产模式)启动。
@lichuanrong7
基本信息
在 cursor 工具中通过 mysql mcp 服务读取本地 mysql 库,方便通过 AI 来编程开发
使用下面的配置,将此服务器添加到你的 MCP 客户端。
{
"mcpServers": {
"mysql-mcp-server-lichuanrong7": {
"command": "docker",
"args": [
"build",
"-t",
"mysql-mcp-server",
"."
]
}
}
}工具列表暂未提供
当前收录暂时没有可展示的工具列表,不代表服务没有工具。请查阅项目文档了解支持的能力。
工具是从 README 中自动提取的。维护者可以在 ## Tools 标题下列出工具,即可填充这部分内容。
MySQL MCP服务器是一个基于Node.js的API服务,为Cursor AI提供直接访问MySQL数据库的能力。它遵循MCP(Model Control Platform)协议规范,使AI能够通过标准化接口执行SQL查询、获取表结构信息以及执行数据操作。
安装依赖并配置环境变量后,启动服务,然后在Cursor编辑器的MCP扩展管理界面添加服务URL http://localhost:3100/manifest.json 并激活。激活后可在Cursor中使用自然语言操作数据库。
使用 `./start.sh` 启动服务,使用 `./stop.sh` 停止服务;或通过 `npm run dev`(开发模式)和 `npm start`(生产模式)启动。
验证`.env`中的数据库连接信息是否正确,确认数据库服务是否运行,并检查网络连接和防火墙设置。
检查端口是否被占用(如 `lsof -i :3100`),确认Node.js版本是否兼容(要求14.x或更高),并查看日志文件 `./logs/mysql-mcp-*.log`。
执行 `curl http://localhost:3100/manifest.json` 检查服务是否返回JSON清单。
是。可通过 `docker build -t mysql-mcp-server .` 构建镜像,并使用 `docker-compose up -d` 启动。
MCP server for interacting with Neon Management API and databases

Oracle MCP server with no run-sql tool: It generates tools for each of the PL/SQL procedures, tables and approved SQL you choose. The server doesn't expose a SQL prompt, and can't reveal how it's connected to Oracle.
MCP server for interacting with Neon Management API and databases
A Model Context Protocol server that provides read-only access to MySQL databases. This server enables LLMs to inspect database schemas and execute read-only queries.
评论