A
securityA
licenseA
qualityA template for creating and connecting custom tools to Cursor IDE using Model Context Protocol with support for cheerful server responses.
Last updated -
4
1
Python
MIT License
一个使用模型上下文协议 (MCP) 为 Cursor IDE 创建自定义工具的简单模板。您可以使用此模板创建自己的代码库,修改工具并将其连接到您的 Cursor IDE。
/sse
路径的 Heroku URL(例如https://<your-app-name>.herokuapp.com/sse
)您可以通过三种方式运行服务器:使用 Docker、传统 Python 设置或直接在 Cursor IDE 中运行。
该项目包括 Docker 支持,可轻松部署:
http://localhost:8000/sse
首先,安装 uv 包管理器:
使用 stdio(默认)或 SSE 传输启动服务器:
安装完成后,您可以将服务器直接连接到Cursor IDE:
cursor-run-mcp-server.sh
文件cursor-run-mcp-server.sh
的绝对路径。例如: /Users/kirillmarkin/weaviate-mcp-server/cursor-run-mcp-server.sh
可用的环境变量(可以在.env
中设置):
MCP_SERVER_PORT
(默认值:8000)- 运行服务器的端口MCP_SERVER_HOST
(默认值:0.0.0.0)- 绑定服务器的主机DEBUG
(默认值:false)-启用调试模式MCP_USER_AGENT
- 用于网站抓取的自定义用户代理要通过Smithery自动安装用于 Claude Desktop 的 Cursor IDE 的 MCP 服务器模板:
You must be authenticated.
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
一个简单的模板,用于使用模型上下文协议为 Cursor IDE 创建自定义工具,可通过 Heroku、Docker 或直接在 Cursor IDE 内部署。