Skip to main content

MCP Server Template for Cursor IDE

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.

Server Mood Response

Quick Start

  1. Click "Deploy to Heroku" button

    Deploy to Heroku

  2. After deployment, configure Cursor:

    • Open Cursor Settings → Features
    • Add new MCP server
    • Use your Heroku URL with /sse path (e.g., https://<your-app-name>.herokuapp.com/sse)
  3. Test your agent's mood in Cursor:

    • Ask your agent "Please ask about our server mood and let me know how it is."
    • The server will respond with a cheerful message and a heart ❤️

Alternative Setup Methods

You can run the server in three ways: using Docker, traditional Python setup, or directly in Cursor IDE.

Docker Setup

The project includes Docker support for easy deployment:

  1. Initial setup:
# 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
  1. Build and run using Docker Compose:
# 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
  1. The server will be available at:

    • SSE endpoint: http://localhost:8000/sse
  2. Quick test:

# Test the server endpoint
curl -i http://localhost:8000/sse
  1. Connect to Cursor IDE:
    • Open Cursor Settings → Features
    • Add new MCP server
    • Type: Select "sse"
    • URL: Enter http://localhost:8000/sse

Traditional Setup

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:

  1. Right-click on the cursor-run-mcp-server.sh file in Cursor
  2. Select "Copy Path" to copy the absolute path
  3. Open Cursor Settings (gear icon)
  4. Navigate to Features tab
  5. Scroll down to "MCP Servers"
  6. Click "Add new MCP server"
  7. Fill in the form:
    • Name: Choose any name (e.g., "my-mcp-server-1")
    • Type: Select "stdio" (not "sse" because we run the server locally)
    • Command: Paste the absolute path to cursor-run-mcp-server.sh that you copied earlier. For example: /Users/kirillmarkin/weaviate-mcp-server/cursor-run-mcp-server.sh

Environment Variables

Available environment variables (can be set in .env):

  • MCP_SERVER_PORT (default: 8000) - Port to run the server on
  • MCP_SERVER_HOST (default: 0.0.0.0) - Host to bind the server to
  • DEBUG (default: false) - Enable debug mode
  • MCP_USER_AGENT - Custom User-Agent for website fetching

Additional options

Installing via Smithery

smithery badge

To 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

Glama server review

Server Template for Cursor IDE MCP server

Metadata

Release files for iflow-mcp_kirill-markin-mcp-simple-tool 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for iflow-mcp_kirill-markin-mcp-simple-tool 0.1.0
File Size Uploaded
iflow_mcp_kirill_markin_mcp_simple_tool-0.1.0.tar.gz 439.1 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for iflow-mcp_kirill-markin-mcp-simple-tool 0.1.0
File Interpreter ABI Platform
iflow_mcp_kirill_markin_mcp_simple_tool-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 445.6 kB

Release files / iflow_mcp_kirill_markin_mcp_simple_tool-0.1.0.tar.gz

Download URL iflow_mcp_kirill_markin_mcp_simple_tool-0.1.0.tar.gz
Size 439.1 kB
Tags Source
SHA-256 checksum
How to use checksums
da7a27bcef96a96a3c639f776d3467ff7e85d5d77282589ade64214f6b339a4b
BLAKE2b-256 checksum
How to use checksums
a1ff05f5114b261e17ab249c82e6816cffb257d515bdcc6aeb652da9286718a1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / iflow_mcp_kirill_markin_mcp_simple_tool-0.1.0-py3-none-any.whl

Download URL iflow_mcp_kirill_markin_mcp_simple_tool-0.1.0-py3-none-any.whl
Size 6.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
c417eb5358bf390f051d46968399741558bca32f5c874504f0f922df2efcd069
BLAKE2b-256 checksum
How to use checksums
cc3160000441a7f90cb7616668403be03fd464c17cc127e7872d5c4aecc5e774
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.10.0 {"installer":{"name":"uv","version":"0.10.0","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Debian GNU/Linux","version":"13","id":"trixie","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page