如何启动与停止服务?
使用 `./start.sh` 启动服务,使用 `./stop.sh` 停止服务;或通过 `npm run dev`(开发模式)和 `npm start`(生产模式)启动。
@lichuanrong7
Basic information
在 cursor 工具中通过 mysql mcp 服务读取本地 mysql 库,方便通过 AI 来编程开发
Add this server to your MCP-compatible client using the configuration below.
{
"mcpServers": {
"mysql-mcp-server-lichuanrong7": {
"command": "docker",
"args": [
"build",
"-t",
"mysql-mcp-server",
"."
]
}
}
}Tool list not available yet
This listing does not currently have a tool list to display. This does not mean the server has no tools; check its documentation for supported capabilities.
We auto-extract tools from the README. The maintainer can list them under a ## Tools heading to populate this section.
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` 启动。

Model Context Protocol Servers

Safety-first stdio MCP server with 38 tools for operating Docker-based local-ydb environments locally or over SSH.
The Xata MCP server lets AI assistants and agents interact with your Xata organizations, projects, and Postgres database branches.
An official Qdrant Model Context Protocol (MCP) server implementation
Comments