Durable Objects icon

Durable Objects

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

About

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

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

Use Cases

  • Running MCP servers in a serverless environment
  • Integrating MCP with Cloudflare Durable Objects
  • Developing scalable and distributed MCP applications
Craft Better Prompts with AnyPrompt