Cursor IDE Template
STDIOHTTP-SSEA simple template for creating custom tools for Cursor IDE using Model Context Protocol.
A simple template for creating custom tools for Cursor IDE using Model Context Protocol.
A simple template for creating custom tools for Cursor IDE using Model Context Protocol (MCP). Create your own repository from this template, modify the tools, and connect them to your Cursor IDE.
Click "Deploy to Heroku" button
After deployment, configure Cursor:
/sse
path (e.g., https://<your-app-name>.herokuapp.com/sse
)Test your agent's mood in Cursor:
You can run the server in three ways: using Docker, traditional Python setup, or directly in Cursor IDE.
The project includes Docker support for easy deployment:
# 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 # View logs docker compose logs -f # Check server status docker compose ps # Stop the server docker compose down
The server will be available at:
Quick test:
# Test the server endpoint curl -i http://localhost:8000/sse
http://localhost:8000/sse
First, install the uv package manager:
# Install uv on macOS brew install uv # Or install via pip (any OS) pip install uv
Start the server using either stdio (default) or SSE transport:
# Install the package with development dependencies uv pip install -e ".[dev]" # Using stdio transport (default) uv run mcp-simple-tool # Using SSE transport on custom port uv run mcp-simple-tool --transport sse --port 8000 # Run tests uv run pytest -v
After installation, you can connect the server directly to Cursor IDE:
cursor-run-mcp-server.sh
file in Cursorcursor-run-mcp-server.sh
that you copied earlier. For example: /Users/kirillmarkin/weaviate-mcp-server/cursor-run-mcp-server.sh
Available environment variables (can be set in .env
):
MCP_SERVER_PORT
(default: 8000) - Port to run the server onMCP_SERVER_HOST
(default: 0.0.0.0) - Host to bind the server toDEBUG
(default: false) - Enable debug modeMCP_USER_AGENT
- Custom User-Agent for website fetchingTo install MCP Server Template for Cursor IDE for Claude Desktop automatically via Smithery:
npx -y @smithery/cli install @kirill-markin/example-mcp-server --client claude