Cover image
Try Now
57 分钟前

3 years

Works with Finder

21

Github Watches

92

Github Forks

1.3k

Github Stars

Cloudflare MCP Server

Model Context Protocol (MCP) is a new, standardized protocol for managing context between large language models (LLMs) and external systems. In this repository, we provide an installer as well as an MCP Server for Cloudflare's API.

This lets you use Claude Desktop, or any MCP Client, to use natural language to accomplish things on your Cloudflare account, e.g.:

  • List all the Cloudflare workers on my <some-email>@gmail.com account.
  • Can you tell me about any potential issues on this particular worker '...'?

Access the remote MCP server from Claude Desktop

Open Claude Desktop and navigate to Settings -> Developer -> Edit Config. This opens the configuration file that controls which MCP servers Claude can access.

Replace the content with the following configuration. Once you restart Claude Desktop, a browser window will open showing your OAuth login page. Complete the authentication flow to grant Claude access to your MCP server. After you grant access, the tools will become available for you to use.

{
  "mcpServers": {
    "cloudflare": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://mcp.cloudflare.com/workers/observability/sse"
      ]
    }
  }
}

Need access to more Cloudflare tools?

We're gradually moving over functionality to this remote MCP server repo. In the meantime please take a look at the local only mcp-server-cloudflare package which currently has more tools available.

Visit https://www.npmjs.com/package/@cloudflare/mcp-server-cloudflare

Paid Features

Some features in this MCP server require a paid Cloudflare Workers plan:

  • Observability: The prefixed worker_logs_ tools require a paid Workers plan to access these metrics

Ensure your Cloudflare account has the necessary subscription level for the features you intend to use.

Features

Workers Management

  • worker_list: List all Workers in your account
  • worker_get_worker: Get a Worker's script content

Workers Logs

  • worker_logs_by_worker_name: Analyze recent logs for a Cloudflare Worker by worker name
  • worker_logs_by_ray_id: Analyze recent logs across all workers for a specific request by Cloudflare Ray ID
  • worker_logs_keys: Get available telemetry keys for a Cloudflare Worker

Developing

Apps

Packages

  • eslint-config: Eslint config used by all apps and packages.
  • typescript-config: tsconfig used by all apps and packages.
  • mcp-common: Shared common tools and scripts to help manage this repo.

For more details on development in this monorepo, take a look at apps/workers-observability

Testing

The project uses Vitest as the testing framework with MSW (Mock Service Worker) for API mocking.

Running Tests

To run all tests:

pnpm test

To run a specific test file:

pnpm test -- tests/tools/queues.test.ts

To run tests in watch mode (useful during development):

pnpm test:watch

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

相关推荐

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • https://zenepic.net
  • Embark on a thrilling diplomatic quest across a galaxy on the brink of war. Navigate complex politics and alien cultures to forge peace and avert catastrophe in this immersive interstellar adventure.

  • Beria Joey
  • 你的职业规划师,不走弯路就问我。Sponsor:小红书“ ItsJoe就出行 ”

  • Benedikt Ess
  • FindetundanalysiertOnlineProdukteeinschlielichAmazonnachVolumenBewertungenundPreis

  • pontusab
  • 光标与风浪冲浪社区,查找规则和MCP

  • av
  • 毫不费力地使用一个命令运行LLM后端,API,前端和服务。

  • GeyserMC
  • 与Minecraft客户端/服务器通信的库。

  • 1Panel-dev
  • 🔥1Panel提供了直观的Web接口和MCP服务器,用于在Linux服务器上管理网站,文件,容器,数据库和LLMS。

  • awslabs
  • AWS MCP服务器 - 将AWS最佳实践直接带入您的开发工作流程的专门MCP服务器

  • WangRongsheng
  • 🧑‍🚀 llm 资料总结(数据处理、模型训练、模型部署、 o1 模型、mcp 、小语言模型、视觉语言模型)|摘要世界上最好的LLM资源。

  • appcypher
  • 很棒的MCP服务器 - 模型上下文协议服务器的策划列表

  • GLips
  • MCP服务器向像光标这样的AI编码代理提供FIGMA布局信息

  • idosal
  • 结束幻觉! GITMCP是任何GitHub项目的免费,开源的远程MCP服务器

  • Byaidu
  • PDF科学纸翻译带有保留格式的pdf -基于ai完整保留排版的pdf文档全文双语翻译

    Reviews

    2 (1)
    Avatar
    user_WokSiwuI
    2025-04-17

    As a dedicated user of the mcp-server-cloudflare, I can confidently say that it has significantly improved our server management and security. The seamless integration with Cloudflare's robust infrastructure ensures excellent performance and reliability. It is highly customizable and the community support is tremendous. Highly recommended for anyone looking to enhance their cloud server experience!