Skip to content
cccskills
FreePublished on GitHub

cloudflare-mcp-server

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

The English summary is being prepared. Showing the original description.

Works withCloudflare
See how to install

Files included (27)

  • SKILL.md1.9 KB
  • references/authentication.md9.1 KB
  • references/common-issues.md6.8 KB
  • references/core-concepts.md1.6 KB
  • references/debugging-guide.md12.7 KB
  • references/error-catalog.md268 B
  • references/http-transport-fundamentals.md10.3 KB
  • references/oauth-providers.md4.6 KB
  • references/official-examples.md4.2 KB
  • references/production-deployment.md17.6 KB
  • references/quick-start-guide.md16.9 KB
  • references/stateful-servers.md5.0 KB
  • references/transport-comparison.md9.4 KB
  • references/transport.md2.6 KB
  • references/worker-basics.md7.0 KB
  • templates/basic-mcp-server.ts6.4 KB
  • templates/basic-mcp.ts257 B
  • templates/claude_desktop_config.json751 B
  • templates/mcp-bearer-auth.ts16.0 KB
  • templates/mcp-http-fundamentals.ts8.4 KB
  • templates/mcp-oauth-proxy.ts9.1 KB
  • templates/mcp-stateful-do.ts8.2 KB
  • templates/mcp-with-d1.ts19.0 KB
  • templates/mcp-with-workers-ai.ts11.0 KB
  • templates/package.json555 B
  • templates/wrangler-basic.jsonc903 B
  • templates/wrangler-oauth.jsonc2.1 KB

SKILL.md (original)

Review the instructions the agent will receive before you install.

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/

Reviews

No reviews yet. Tell others what you thought.

Comments

No login needed. Share how it worked for you, ask a question, or note where it did not run.

No comments yet. Be the first to write one.

Comments are published right away. Do not include personal information such as email addresses or phone numbers. Up to 2 URLs.

0 / 1,000 characters

This form is protected by reCAPTCHA, and the Google Privacy Policy and Terms of Service apply.

More skills from this repository

100+ animated React components (Aceternity UI) for Next.js with Tailwind. Use for hero sections, parallax, 3D effects, or encountering animation, shadcn CLI integration errors.

The English summary is being prepared. Showing the original description.

secondsky/claude-skills232Updated Oct 20, 2026

Secure API authentication with JWT, OAuth 2.0, API keys. Use for authentication systems, third-party integrations, service-to-service communication, or encountering token management, security headers, auth flow errors.

The English summary is being prepared. Showing the original description.

secondsky/claude-skills232Updated Oct 20, 2026

Creates comprehensive API changelogs documenting breaking changes, deprecations, and migration strategies for API consumers. Use when managing API versions, communicating breaking changes, or creating upgrade guides.

The English summary is being prepared. Showing the original description.

secondsky/claude-skills232Updated Oct 20, 2026

Verifies API contracts between services using consumer-driven contracts, schema validation, and tools like Pact. Use when testing microservices communication, preventing breaking changes, or validating OpenAPI specifications.

The English summary is being prepared. Showing the original description.

secondsky/claude-skills232Updated Oct 20, 2026

Master REST and GraphQL API design principles to build intuitive, scalable, and maintainable APIs that delight developers. Use when designing new APIs, reviewing API specifications, or establishing API design standards.

The English summary is being prepared. Showing the original description.

secondsky/claude-skills232Updated Oct 20, 2026

Implements standardized API error responses with proper status codes, logging, and user-friendly messages. Use when building production APIs, implementing error recovery patterns, or integrating error monitoring services.

The English summary is being prepared. Showing the original description.

secondsky/claude-skills232Updated Oct 20, 2026

See all skills by secondsky

Report a problem with this skill