Cancellation Analyzer MCP Server
A Python-based Model Context Protocol (MCP) server for analyzing customer cancellation survey data, designed for Claude web integration via HTTP/SSE transport.
Features
MCP protocol over HTTP and SSE
FastAPI server with CORS enabled
Tool for analyzing cancellation data (dummy results)
Production-ready with Gunicorn/Uvicorn
Related MCP server: Claude MCP Data Explorer
Project Structure
cancellation-analyzer-mcp/
├── src/
│ ├── main.py # FastAPI + MCP server
│ ├── mcp_server.py # MCP server logic
│ └── analyzer.py # Analysis logic
├── requirements.txt
├── .env # Environment variables
├── gunicorn.conf.py # Production server config
└── README.md
Setup
pip install -r requirements.txt
Running
Development:
python src/main.pyProduction:
gunicorn src.main:app -c gunicorn.conf.py
Endpoints
GET /- Service infoGET /health- Health checkPOST /mcp/list_tools- List available toolsPOST /mcp/call_tool- Call analysis toolGET /mcp/sse- Server-Sent Events endpoint
Integration URL
http://YOUR_EC2_PUBLIC_IP:8000/mcp
Environment Variables
See .env for configuration.