MCP Server Template for Cursor IDE

MCP Server Template for Cursor IDE

site icon
2025.03.15 2
PythonIDE工具扩展开发工具开发效率
MCP Server Template for Cursor IDE 是一个用于创建自定义工具的模板,基于Model Context Protocol (MCP)。它允许用户通过Heroku、Docker或传统Python设置快速部署和连接到Cursor IDE,提供简单的服务器状态查询功能。
View on GitHub

Overview

基本能力

产品定位

MCP Server Template for Cursor IDE 是一个用于创建自定义工具的模板,基于Model Context Protocol (MCP)。

核心功能

  1. 提供简单的服务器状态查询功能
  2. 支持通过Heroku、Docker或传统Python设置快速部署
  3. 可以连接到Cursor IDE

适用场景

  1. 为Cursor IDE创建自定义工具
  2. 快速测试MCP服务器的部署和连接

工具列表

  1. cursor-run-mcp-server.sh - 用于在Cursor IDE中运行MCP服务器的脚本

常见问题解答

  1. 如何测试服务器状态?
  2. 在Cursor IDE中询问"Please ask about our server mood and let me know how it is."
  3. 服务器将返回一个愉快的消息和心形符号

使用教程

使用依赖

  1. 安装uv包管理器
# Install uv on macOS
brew install uv
# Or install via pip (any OS)
pip install uv

安装教程

  1. 通过Docker安装
# Clone the repository
git clone https://github.com/kirill-markin/weaviate-mcp-server.git
cd weaviate-mcp-server

# Create environment file
cp .env.example .env

# Build and start the server
docker compose up --build -d
  1. 传统Python设置
# Install the package with development dependencies
uv pip install -e ".[dev]"

# Using stdio transport (default)
uv run mcp-hitchcode

# Using SSE transport on custom port
uv run mcp-hitchcode --transport sse --port 8000

调试方式

  1. 查看Docker日志
docker compose logs -f
  1. 检查服务器状态
docker compose ps
  1. 测试服务器端点
curl -i http://localhost:8000/sse

许可证

该项目遵循 MIT 开源许可条款,请参阅 MIT 了解完整条款。