Skip to content
Back to skills

Cloudflare Mcp Server

ASecurity

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

  • 222 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added February 7, 2026
developmenttypescripttestingapidocumentation

Works with

  • api
  • mcp

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned February 12, 2026

npx -y skills add secondsky/claude-skills --skill cloudflare-mcp-server --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cloudflare Mcp Server?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cloudflare Mcp Server
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/secondsky-cloudflare-mcp-server/badge)](https://www.skillsdirectory.com/skills/secondsky-cloudflare-mcp-server)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cloudflare-mcp-server
description: Build MCP (Model Context Protocol) servers on Cloudflare Workers with tools, resources, and prompts.
license: MIT
---

# Cloudflare MCP Server

**Last Updated**: 2025-11-21

## Quick Start

```typescript
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

```typescript
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/

Files in this skill

  • 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 KB
  • references/transport-comparison.md9.4 KB
  • references/transport.md2.6 KB
  • references/worker-basics.md7 KB
  • templates/basic-mcp-server.ts6.4 KB
  • templates/basic-mcp.ts257 B
  • templates/claude_desktop_config.json751 B
  • templates/mcp-bearer-auth.ts16 KB
  • templates/mcp-http-fundamentals.ts8.4 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…