Demonstrates a Model Context Protocol (MCP) client/server architecture over WebSockets using Cloudflare Workers and Durable Objects for state management.
Sponsored
This project provides a complete reference implementation of the Model Context Protocol (MCP) over WebSockets. It showcases a full client-server architecture, persistent stateful sessions using Durable Objects, bidirectional real-time communication, and deployment via Cloudflare Workers. It serves as a valuable example for implementing MCP with WebSocket transport, highlighting the advantages of reduced latency, bidirectional communication, and stateful sessions.
Key Features
01Persistent stateful sessions via Durable Objects
021 GitHub stars
03Complete MCP client-server architecture
04Cloudflare Workers deployment
05Bidirectional real-time communication over WebSockets
06Tool discovery and invocation
Use Cases
01Creating stateful MCP services on Cloudflare Workers
02Building real-time collaborative applications
03Implementing interactive agents with quick responses