Cloudflare Remote MCP Server on Workers and Durable Objects

Cloudflare Remote MCP Server on Workers and Durable Objects

cloudflare-my-remote-mcp-server•byendou-mame

An MCP server deployed on Cloudflare Workers that uses Durable Objects for stateful request processing and exposes tools, resources, and prompts over an HTTP Streamable endpoint.

License: Not specified•Runtime: Awaiting documentation review•Category: cloud devops

WHAT IT DOES

  • •Exposes sample MCP tools including echo, get_time, and random_number.
  • •Serves static MCP resources with Cloudflare Worker info and sample data.
  • •Provides built-in prompts for explaining code and debugging help.
  • •Uses HTTP Streamable transport with Server-Sent Events responses.

BEST FOR

  • •Deploying a remote MCP server on Cloudflare Workers with state via Durable Objects.
  • •Testing MCP clients against an HTTP Streamable endpoint with sample tools and resources.
  • •Learning how to implement MCP protocol on a serverless cloud environment.

ABOUT CLOUDFLARE-MY-REMOTE-MCP-SERVER

Cloudflare Remote MCP Server on Workers and Durable Objects is cataloged as an MCP server attributed to endou-mame. An MCP server deployed on Cloudflare Workers that uses Durable Objects for stateful request processing and exposes tools, resources, and prompts over an HTTP Streamable endpoint. It is categorized under cloud devops. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Not specified. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for Cloudflare Remote MCP Server on Workers and Durable Objects are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

What transport does the server use?

It uses HTTP Streamable transport with JSON-RPC requests over HTTP POST and responses sent as Server-Sent Events.

Why use Durable Objects for the MCP server?

Durable Objects handle stateful MCP request processing and request state.

Upstream README

View this exact version on GitHub

README.md · 4ad297c823f4 · Fetched 2026-11-13 11:54:11 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Cloudflare Remote MCP Server

A Model Context Protocol (MCP) server implementation running on Cloudflare Workers with Durable Objects.

Features

  • Remote MCP Server: HTTP Streamable transport-based MCP server accessible over the internet
  • Durable Objects: Stateful request processing using Cloudflare Durable Objects
  • Sample Tools: Demonstration tools for MCP protocol
  • Sample Resources: Static data resources accessible via MCP
  • Sample Prompts: Pre-built prompts for AI interactions
  • CORS Support: Web-friendly with Cross-Origin Resource Sharing

Architecture

┌─────────────────┐  HTTP POST + SSE  ┌──────────────────┐
│   MCP Client    │ ◄──────────────► │ Cloudflare       │
│   (AI/Claude)   │                  │ Worker           │
└─────────────────┘                  └─────────┬────────┘
                                               │
                                               ▼
                                     ┌──────────────────┐
                                     │ MCPServerObject  │
                                     │ (Durable Object) │
                                     │                  │
                                     │ • MCP Protocol   │
                                     │ • HTTP Processing│
                                     │ • Request State  │
                                     └──────────────────┘

Available Capabilities

Tools

  • echo: Echo back input text
  • get_time: Get current timestamp
  • random_number: Generate random number between min and max

Resources

  • cloudflare://worker-info: Information about the Cloudflare Worker
  • cloudflare://sample-data: Sample JSON data for testing

Prompts

  • explain_code: Generate prompts to explain code
  • debug_help: Generate prompts for debugging assistance

Deployment

  1. Install dependencies:

    npm install
    
  2. Deploy to Cloudflare:

    npm run deploy
    
  3. Access your MCP server at the deployed URL

Development

  1. Start local development:

    npm run dev
    
  2. Test the server:

    # Get server info
    curl http://localhost:8787/
    
    # Test MCP endpoint with a simple request
    curl -X POST http://localhost:8787/mcp \
      -H "Content-Type: application/json" \
      -d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
    

Usage

HTTP API

  • GET / - Server information and capabilities
  • POST /mcp - MCP HTTP Streamable endpoint

MCP Connection

Connect MCP clients to the HTTP endpoint:

  • Local: http://localhost:8787/mcp
  • Production: https://your-worker.your-subdomain.workers.dev/mcp

Protocol Details

The server uses HTTP Streamable transport:

  • Request: HTTP POST with JSON-RPC message in body
  • Response: Server-Sent Events (SSE) stream with text/event-stream content type
  • Format: Each response is sent as data: {JSON}\n\n

Example MCP Messages

List Tools

curl -X POST http://localhost:8787/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "tools/list"
  }'

Call Tool

curl -X POST http://localhost:8787/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 2,
    "method": "tools/call",
    "params": {
      "name": "echo",
      "arguments": {
        "text": "Hello, MCP!"
      }
    }
  }'

List Resources

curl -X POST http://localhost:8787/mcp \
  -H "Content-Type: application/json" \
  -d '{
    "jsonrpc": "2.0",
    "id": 3,
    "method": "resources/list"
  }'

Configuration

The server is configured in wrangler.jsonc:

  • Durable Objects: MCPServerObject handles stateful MCP request processing
  • Compatibility Date: Set to current date for latest Cloudflare Workers features

Development Notes

  • Uses @modelcontextprotocol/sdk for MCP protocol implementation
  • HTTP requests are processed by Durable Objects for state management
  • Responses are streamed using Server-Sent Events (SSE)
  • CORS is enabled for web client compatibility
  • Error handling includes JSON-RPC error responses
  • TypeScript with strict mode enabled

Transport Protocol

This implementation uses HTTP Streamable transport instead of WebSocket:

  • More compatible with proxies and firewalls
  • Uses standard HTTP semantics
  • Supports Server-Sent Events for real-time responses
  • Better suited for stateless cloud environments

License

This is a sample implementation for educational purposes.

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for Cloudflare Remote MCP Server on Workers and Durable Objects from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/cloudflare-my-remote-mcp-server)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related cloud devops MCP Servers

Alternative and complementary servers in the same category

View all in cloud devops →
Huawei MCP Server
mcp-server-huaweiclouddeveloper•huaweiclouddeveloper

A Model Context Protocol server built on Huawei Cloud services that enables AI assistants to operate Huawei Cloud resources within conversational workflows, supporting ECS, OBS, GaussDB, and other cloud products.

Repository stats unavailable
Cloud & DevOps
Coolify MCP Server
coolify-mcp-server•wrediam

An MCP server that exposes the Coolify v4.3.1 REST API so AI clients can manage applications, databases, services, servers, deployments, and more.

Repository stats unavailable
Cloud & DevOps

A deprecated Model Context Protocol server for interacting with Kong Konnect APIs, enabling AI assistants to query and analyze Kong Gateway configurations, traffic, and analytics.

Repository stats unavailable
Cloud & DevOps