cloudflare-mcp-server

Build and deploy MCP servers on Cloudflare Workers with TypeScript.

16|7|Updated Nov 20, 2025
One-click install
npx skills add https://github.com/jackspace/ClaudeSkillz --skill cloudflare-mcp-server-jackspace
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: cloudflare-mcp-server
Source: https://github.com/jackspace/ClaudeSkillz/tree/main/skills/cloudflare-mcp-server
Command: npx skills add https://github.com/jackspace/ClaudeSkillz --skill cloudflare-mcp-server-jackspace

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires jq, wrangler, and includes scripts (resource) and references (resource) components.

What problem does it solve?

Build Model Context Protocol (MCP) servers on Cloudflare Workers, enabling remote MCP, OAuth, Durable Objects, and dual transport (SSE and Streamable HTTP) with production-tested templates.

Core Features & Use Cases

  • Create MCP servers from templates or templates shipped with the skill
  • OAuth authentication patterns (no auth, token, OAuth proxy, remote OAuth)
  • Durable Objects for per-session state and persistence
  • Dual transport support for broad client compatibility
  • Comprehensive error prevention and deployment guidance

Quick Start

  • Use npm create cloudflare@latest to scaffold an MCP server and run locally

Frequently Asked Questions about cloudflare-mcp-server

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build and deploy an MCP server on Cloudflare Workers?

Build MCP servers on Cloudflare Workers using TypeScript templates that handle OAuth, Durable Objects, and dual transport (SSE and Streamable HTTP). Use wrangler to deploy with production-tested configurations and error-prevention patterns included.

What authentication options are available for remote MCP servers?

Remote MCP servers support four OAuth patterns: no auth, token-based, OAuth proxy, and remote OAuth. Choose based on your security requirements and client capabilities.

Can I use Durable Objects to maintain session state in an MCP server?

Yes. Durable Objects store per-session state and persistence in MCP servers deployed on Cloudflare Workers, with WebSocket hibernation for cost optimization.

Why use dual transport (SSE and Streamable HTTP) for MCP servers?

Dual transport support enables broad client compatibility. SSE and Streamable HTTP allow different clients to connect using their preferred protocol without separate deployments.

Do I need prior MCP experience to deploy a server on Cloudflare Workers?

The templates include tool definitions with Zod schemas and McpAgent export patterns. Familiarity with TypeScript and wrangler deployment helps, but templates guide core MCP concepts.

What does WebSocket hibernation do in Cloudflare Workers MCP deployments?

WebSocket hibernation reduces costs by pausing inactive connections without terminating them, allowing MCP servers to scale efficiently while maintaining state in Durable Objects.