Durable Objects

•
1
•

Enables the use of Model Context Protocol (MCP) servers with Cloudflare Durable Objects, utilizing a Server-Sent Events (SSE) transport layer.

This tool provides the necessary components to run an MCP server as a Cloudflare Durable Object. It includes an SSE transport layer adapted for Cloudflare Workers, overcoming limitations in the standard `@modelcontextprotocol/typescript-sdk`. By mirroring the existing SSE transport, it enables seamless integration of MCP servers within the Durable Objects environment, extending the reach and capabilities of MCP implementations.

Key Features

01Includes example for end-to-end testing
021 GitHub stars
03SSE transport layer compatible with Cloudflare Workers
04MCP server implementation as a Durable Object
05Mirrors the `@modelcontextprotocol/typescript-sdk` SSE transport
06Addresses compatibility issues between the SDK and Durable Objects

Use Cases

01Running MCP servers in a serverless environment
02Integrating MCP with Cloudflare Durable Objects
03Developing scalable and distributed MCP applications