Token导航 LogoToken导航TokenDH.com
Cloudflare MCP CLI logo
开发工具未说明官方级别未说明来源级核验

Cloudflare MCP CLI

MCP Server

Cloudflare MCP CLI工具是一个命令行接口包装器,用于搜索和执行Cloudflare API操作,适合开发者在本地环境中快速与Cloudflare服务交互。

工具数

2

提示词数

0

GitHub Stars

4

资源数

0
命令行工具开发工具JavaScript

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

作者 / 组织

delexw

提供方

delexw

最后核验

2026/5/17 20:21

快速接入

先看主来源和安装命令,再打开仓库或文档;下面只保留这个条目的关键接入事实。

详细介绍

cloudflare mcp-cli

CLI包装器 Cloudflare MCP服务器。显示服务器的两个工具-- searchexecute --作为shell命令。

安装

npm install -g cloudflare-mcp-cli

认证

令牌通过以下方式存储在您的操作系统密钥链(macOS密钥链/Windows凭据管理器/Linux密钥服务)中 @napi-rs/keyring.

# Store token (one-time)
cloudflare-mcp config set-token 

# Remove stored token
cloudflare-mcp config delete-token

您还可以为每个命令传递一个令牌 --tokenCLOUDFLARE_API_TOKEN 有人是。

解决顺序: --token 旗帜> CLOUDFLARE_API_TOKEN env var>OS密钥链。

用法

搜索

搜索Cloudflare OpenAPI规范(全部 $refs内联预解析)。

cloudflare-mcp-cli search '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;
}'

代码可用: spec.paths --具有完全解析模式的OpenAPI路径记录。

执行

针对Cloudflare API执行JavaScript代码。

# List zones
cloudflare-mcp-cli execute 'async () => cloudflare.request({ method: "GET", path: "/zones" })'

# With account ID (required for multi-account tokens)
cloudflare-mcp-cli execute -a  'async () => cloudflare.request({
  method: "GET",
  path: `/accounts/${accountId}/workers/scripts`
})'

代码可用:

  • cloudflare.request(options) -进行API调用
  • accountId --已解析的帐户ID

选项

-V, --version             output the version number
-t, --token        Cloudflare API token
-h, --help                display help for command

执行选项

-a, --account-id      Cloudflare account ID

许可证

阿帕奇-2.0

目录标签

目录标签

命令行工具开发工具JavaScript本地部署API操作Cloudflare

接入字段

传输方式(transport,传输协议)

未说明

鉴权方式(authType,认证方式)

token

工具数量(toolCount,工具数)

2

资源数量(resourceCount,资源数)

0

提示词数量(promptCount,提示词数)

0

权限和风险

未说明token部署方式未说明

接入前请确认传输方式、认证方式和部署位置,并根据实际工具能力限制访问范围。

安装前确认

不要直接授予不必要的文件、网络或账号权限;先核对安装命令和配置内容。

仍需确认:installCommand

来源信息

继续浏览同类 MCP