Claude Marketplaces
SkillsMCP serversMarketplacesDigestTools
Submit

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP servers by category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control
Claude Marketplaces

An independent directory of skills, plugins and MCP servers for Claude Code. Not affiliated with Anthropic.

Browse

  • Skills
  • MCP servers
  • Marketplaces
  • Weekly digest
  • Skill index
  • MCP index
  • Marketplace index

Site

  • About
  • Tools
  • Submit
  • Feedback
  • Privacy
  • llms.txt
  • Plugins reference

Maker

  • Snug
  • Agent Caffeine
  • knobs
  • Wax
  • Vectoys
  • mertduzgun.com
Crafted at
MCP servers/Cloud & Infrastructure
mattzcarey avatar

Cloudflare

mattzcarey/cloudflare-mcp

An unofficial MCP server that wraps the complete Cloudflare API, letting you manage Workers, KV namespaces, DNS records, R2 buckets, and other Cloudflare services directly from Claude. Uses a clever codemode approach to avoid dumping the massive 2.3M token OpenAPI spec into context. Instead of exposing hundreds of tools, it gives you two: search the API spec and execute calls. You write JavaScript snippets to find endpoints and make requests, keeping token usage minimal while accessing the full API surface. Perfect for automating Cloudflare infrastructure tasks without manual dashboard clicking.

GitHub stars
129
last updated
Jan 13, 2026
View on GitHubSave

Sponsors

SnugThe clipboard manager you and your agent can use, safelyAgent CaffeineClose your lid, come back to finished workWaxBlock anything with supervision, without erasing your iPhoneOpen StepsSponsoredFree and open-source skills that make AI coding agents easier to understand, verify, and control.

Readme

[!WARNING]
This repository is a read-only archive and no longer maintained or deployed. It is likely that none of the steps below will work. Please see cloudflare/mcp for the official Cloudflare API MCP Server.

cloudflare-mcp

A smol MCP server for the complete Cloudflare API.

Deploy to Cloudflare Workers

Uses codemode to avoid dumping too much context to your agent.

Get Started

Create API Token

Create a Cloudflare API token with the permissions you need.

Both user tokens and account tokens are supported:

Token TypeDescriptionRequirements
User TokenCreated at user level, can access multiple accountsRequires account_id parameter on each execute call
Account TokenScoped to single accountaccount_id auto-detected, no parameter needed

For account tokens, include the Account Resources : Read permission so the server can auto-detect your account ID.

The Problem

The Cloudflare OpenAPI spec is 2.3 million tokens in JSON format. Even compressed to TypeScript endpoint summaries, it's still ~50k tokens. Traditional MCP servers that expose every endpoint as a tool, or include the full spec in tool descriptions, leak this entire context to the main agent.

This server solves the problem by using code execution in a codemode pattern - the spec lives on the server, and only the results of queries are returned to the agent.

Tools

Two tools where the agent writes code to search the spec and execute API calls. Akin to ACI.dev's MCP server but with added codemode.

ToolDescription
searchWrite JavaScript to query spec.paths and find endpoints
executeWrite JavaScript to call cloudflare.request() with the discovered endpoints

Token usage: Only search results and API responses are returned. The 6MB spec stays on the server.

Agent                         MCP Server
  │                               │
  ├──search({code: "..."})───────►│ Execute code against spec.json
  │◄──[matching endpoints]────────│
  │                               │
  ├──execute({code: "..."})──────►│ Execute code against Cloudflare API
  │◄──[API response]──────────────│

Supported Products

Workers, KV, R2, D1, Pages, DNS, Firewall, Load Balancers, Stream, Images, AI Gateway, Vectorize, Access, Gateway, and more. See the full Cloudflare API schemas.

Usage

Once configured, just ask your agent to do things with Cloudflare:

  • "List all my Workers"
  • "Create a KV namespace called 'my-cache'"
  • "Add an A record for api.example.com pointing to 192.0.2.1"

The agent will search for the right endpoints and execute the API calls. Here's what happens behind the scenes:

// 1. Search for endpoints
search({
  code: `async () => {
    const results = [];
    for (const [path, methods] of Object.entries(spec.paths)) {
      for (const [method, op] of Object.entries(methods)) {
        if (op.tags?.some(t => t.toLowerCase() === 'workers')) {
          results.push({ method: method.toUpperCase(), path, summary: op.summary });
        }
      }
    }
    return results;
  }`,
});

// 2. Execute API call (user token - account_id required)
execute({
  code: `async () => {
    const response = await cloudflare.request({
      method: "GET",
      path: \`/accounts/\${accountId}/workers/scripts\`
    });
    return response.result;
  }`,
  account_id: "your-account-id",
});

// 2. Execute API call (account token - account_id auto-detected)
execute({
  code: `async () => {
    const response = await cloudflare.request({
      method: "GET",
      path: \`/accounts/\${accountId}/workers/scripts\`
    });
    return response.result;
  }`,
});

Token Comparison

ContentTokens
Full OpenAPI spec (JSON)~2,352,000
Endpoint summary (TypeScript)~43,000
Typical search result~500
API responsevaries

Architecture

src/
├── index.ts      # MCP server entry point
├── server.ts     # Search + Execute tools
├── executor.ts   # Isolated worker code execution
├── truncate.ts   # Response truncation (10k token limit)
└── data/
    ├── types.generated.ts  # Generated endpoint types
    ├── spec.json           # OpenAPI spec for search
    └── products.ts         # Product list

Code execution uses Cloudflare's Worker Loader API to run generated code in isolated workers, following the codemode pattern.

Development

npm i
npm run deploy

Details

Repository
github.com/mattzcarey/cloudflare-mcp
Category
Cloud & Infrastructure

Related Cloud & Infrastructure MCP servers

View all
1dave-london avatarPare Dockerdave-london/parePare Docker ג€” Structured Docker operations (ps, images, logs, build, compose) as typed JSON.128stars
2rishikavikondala avatarAWSrishikavikondala/mcp-server-awsA Model Context Protocol server implementation for operations on AWS resources128stars
3aarora79 avatarAWS Cost Exploreraarora79/aws-cost-explorer-mcp-serverMCP server for understanding AWS spend127stars
4digitalocean-labs avatarDigitalOceandigitalocean-labs/mcp-digitaloceanProvides an MCP interface to manage DigitalOcean resources and perform actions via the DigitalOcean API.105stars
5pulsemcp avatarVercelpulsemcp/mcp-serversMCP server for Vercel — manage deployments and view build and runtime application logs.0stars
6vercel avatarVercel Mcpvercel/vercel-mcp-overviewAn MCP server for Vercel0stars