mcpbeat

Cloudflare MCP Server

secondsky/cloudflare-mcp-server

Build MCP (Model Context Protocol) servers on Cloudflare Workers with tools, resources, and prompts.

This is a copy. The original lives at comeonoliver/cloudflare-mcp-server.

49k tokens
context cost
the whole folder, loaded on every use
27
files
ships runnable scripts
0
copies elsewhere
how many repositories repackaged it
202
stars on the repo
on the repository, not the skill itself

Install

one command, takes just this skill from the repository
npx skills add https://github.com/secondsky/claude-skills --skill cloudflare-mcp-server

The instruction itself

7 sections, as written by the author

Cloudflare MCP Server

Last Updated: 2025-11-21

Quick Start

import { McpServer } from '@modelcontextprotocol/sdk';

const server = new McpServer({
  name: 'my-server',
  version: '1.0.0'
});

server.tool('getTodo', async ({ id }) => ({
  id,
  title: 'Task',
  completed: false
}));

export default server;

Core Concepts

  • Tools: Functions AI can call
  • Resources: Data AI can access
  • Prompts: Reusable templates
  • Transports: SSE, HTTP, WebSocket

Example Tool

server.tool('searchDocs', {
  description: 'Search documentation',
  parameters: {
    type: 'object',
    properties: {
      query: { type: 'string' }
    }
  },
  handler: async ({ query }) => {
    return { results: [...] };
  }
});

Resources

Core Documentation

  • references/quick-start-guide.md (704 lines) - Official Cloudflare templates, complete step-by-step workflow, 5-minute setup
  • references/core-concepts.md (66 lines) - MCP fundamentals: tools, resources, prompts, transports
  • references/worker-basics.md (326 lines) - Worker & Durable Objects basics, transport selection, HTTP fundamentals
  • references/stateful-servers.md (246 lines) - Durable Objects integration, WebSocket hibernation, cost optimization, common patterns
  • references/production-deployment.md (814 lines) - Deployment & testing, configuration reference, authentication patterns, 22 known errors with solutions

Templates

  • templates/basic-mcp.ts - Minimal MCP server
  • templates/tools-example.ts - Tool definitions
  • templates/durable-object-mcp.ts - Stateful MCP with DO
  • templates/websocket-mcp.ts - WebSocket transport

Official Docs: https://modelcontextprotocol.io | Cloudflare: https://developers.cloudflare.com/workers/runtime-apis/durable-objects/

How to use it

Copy the folder

Take secondsky/cloudflare-mcp-server from the repository into ~/.claude/skills for personal use, or into .claude/skills inside a project.

Check the name does not clash

The agent identifies a skill by the name field in its header. Two skills with the same name cannot sit side by side — one of them will be ignored.