Uses FastAPI to create the HTTP server that handles the Server-Sent Events (SSE) transport for the MCP protocol.
SSE (Server-Sent Events) is a technology used in Model Context Protocol (MCP) to enable real-time, server-pushed updates to clients over a single HTTP connection. In MCP, SSE facilitates communication between AI models and tools, allowing the server to stream responses back to the client in real-time. This is particularly useful for remote MCP servers where the client and server are not on the same machine.
if name == "main": mcp.run(transport="streamable-http")
npx -p mcp-remote@latest mcp-remote-client http://localhost:8000/mcp/sse
uv init skemati.ca.mcp.sse
cd skemati.ca.mcp.sse
uv venv
source .venv/bin/activate
uv add "mcp[cli]" httpx
uv python pin 3.10
sudo apt update
sudo apt install python3.10 python3.10-dev
pip3 install fastapi uvicorn
/Library/Developer/CommandLineTools/usr/bin/python3 -m pip install --upgrade pip
uv add fastapi uvicorn
python3 -m ensurepip --upgrade python3 -m pip install fastapi uvicorn
uv add fastapi uvicorn
uv run base.py
tail -n 20 -f ~/Library/Logs/Claude/mcp*.log
This server cannot be installed
A Model Context Protocol (MCP) server implementation that uses Server-Sent Events (SSE) to enable real-time, server-pushed updates between AI models and tools over HTTP connections.
Related MCP Servers
- AsecurityFlicenseAqualityAn implementation of the Model Context Protocol (MCP) server using Server-Sent Events (SSE) for real-time communication, providing tools for calculations and dynamic resource templates.Last updated -1JavaScript
- -securityFlicense-qualityA server for Model Context Protocol (MCP) that uses Server-Sent Events (SSE) for streaming communication, enabling tools like the HackerNews API to be accessed through a secure HTTP+SSE transport.Last updated -23TypeScript
- -securityAlicense-qualityA template repository for building Model Context Protocol (MCP) servers that enables developers to create interactive AI agents with real-time bidirectional communication capabilities through WebSocket and SSE endpoints.Last updated -TypeScriptMIT License
- -securityAlicense-qualityA high-performance Model Context Protocol (MCP) server designed for large language models, enabling real-time communication between AI models and applications with support for session management and intelligent tool registration.Last updated -2PythonMIT License