cursor-mcp-hackathon-denver

colesmcintosh/cursor-mcp-hackathon-denver

3.2

If you are the rightful owner of cursor-mcp-hackathon-denver and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

A production-ready FastMCP reference server with hackathon resources and reusable starter prompts.

MCP Demo

Python 3.12+ FastMCP Docker License: MIT

A production-ready FastMCP reference server with hackathon resources and reusable starter prompts


Overview

A FastMCP server with comprehensive hackathon overview resources and reusable starter prompts. Clone, install dependencies or build the Docker image, and you have an MCP server that Cursor can load immediately.

Requirements

ComponentVersionRequired
Python3.12+Yes
uvLatestYes
Docker24+Optional
Node.js18+Optional

Quick Start

Local Python Setup

# Install dependencies and run
uv sync
uv run server.py

Docker Setup

# Build the image
docker build -t mcp-demo:latest .

# Run the container
docker run --rm -i mcp-demo:latest

# Development mode with live reload
docker run --rm -it -v "$(pwd)":/app mcp-demo:latest

Remote MCP (no local setup)

npx -y mcp-remote https://cursor-denver-mcp-hackathon.fastmcp.app/mcp

Deployment Options

ModeUse CaseSetupBest For
Local STDIOCursor integrationSimpleDevelopment
Remote HTTP/SSEPublic accessAdvancedProduction
Docker LocalIsolated environmentMediumTesting
Docker RemoteCloud deploymentAdvancedProduction

Container Registry Push

# GitHub Container Registry
docker tag mcp-demo:latest ghcr.io/<your-user>/mcp-demo:latest
docker push ghcr.io/<your-user>/mcp-demo:latest

# Docker Hub
docker tag mcp-demo:latest <your-user>/mcp-demo:latest
docker push <your-user>/mcp-demo:latest

Cursor Configuration

Add to ~/.cursor/mcp.json:

Local (uv)Docker Container
{
  "mcpServers": {
    "fastmcp-demo": {
      "command": "uv",
      "args": ["run", "server.py"],
      "cwd": "/absolute/path/to/mcp-demo"
    }
  }
}
{
  "mcpServers": {
    "fastmcp-demo": {
      "command": "docker",
      "args": [
        "run", "--rm", "-i",
        "--volume",
        "/absolute/path/to/mcp-demo:/app",
        "mcp-demo"
      ]
    }
  }
}

Remote MCP Server

{
  "mcpServers": {
    "denver-hackathon": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://cursor-denver-mcp-hackathon.fastmcp.app/mcp"
      ]
    }
  }
}

Restart Cursor after updating configuration.


Testing

# Run all tests
pytest

# Run with coverage
pytest --cov=. --cov-report=html

# Run specific test
pytest tests/test_server.py -v

Project Structure

mcp-demo/
ā”œā”€ā”€ server.py                 # FastMCP server
ā”œā”€ā”€ main.py                   # Alternative entry point
ā”œā”€ā”€ Dockerfile                # Container build
ā”œā”€ā”€ requirements.txt          # Dependencies
ā”œā”€ā”€ pyproject.toml            # Project config
ā”œā”€ā”€ resources/
│   └── hackathon_overview.md
ā”œā”€ā”€ prompts/
│   └── fastmcp_python_starter.md
└── tests/
    ā”œā”€ā”€ conftest.py
    └── test_server.py

License

MIT License


Built for the Cursor Denver Hackathon