list_accounts
List Cloudflare accounts accessible with the API token.
per_page
io.github.CloudCorpRecords由 GitHub 账号 CloudCorpRecords 发布v0.1.0更新于 Nov 1, 2026
Zones, DNS, cache purge, Workers, KV, and R2 through the Cloudflare API.
本地 MCP 服务器,让助手访问 Cloudflare 账户:区域、DNS 记录、缓存清除、Workers、KV 与 R2。
Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。
参照 仓库 中的启动说明。
edgeport is a small doorway into a Cloudflare account. From one bin an agent can see which accounts and zones a token can reach, read and change DNS records, purge cached content, and inventory the account's Worker scripts, KV namespaces, and R2 buckets. It runs from the command line or as an MCP server for agents.
A Cloudflare API token is required. Put it in the
CLOUDFLARE_API_TOKEN environment variable; it is sent to the API as
a Bearer token and never appears in output. Account-scoped tools
(Worker scripts, KV, R2) take an account_id argument, and when that
is omitted they fall back to CLOUDFLARE_ACCOUNT_ID. When a required
variable is missing, the call fails with an error that names it.
This is a core subset of the Cloudflare API, not the whole surface: Workers bindings deep configuration, observability and Logpush, rulesets and firewall rules, Pages and deployments, Stream and Images, AI and Vectorize, and the hosted documentation search tool are out of scope.
Or run the container image:
The container defaults to the MCP server (see below). Pass CLI arguments to use it as a CLI instead.
Exit codes: 0 on success, 1 when an API call fails (including a
missing CLOUDFLARE_API_TOKEN or a success: false envelope), 2
for usage errors.
One bin serves both faces. The mcp subcommand starts a stdio MCP
server:
MCP client configuration:
Every JSON response is unwrapped from Cloudflare's
{success, errors, result} envelope. A success: false envelope is
reported as a tool error carrying the API's own error entries.
MIT — see LICENSE.
来源:README.md,提交 a3c8b4b
List Cloudflare accounts accessible with the API token.
per_pageList zones, optionally filtered by account or name.
nameper_pageaccount_idGet one zone by its id.
zone_id必填List DNS records in a zone, optionally filtered by type or name.
nametypezone_id必填per_pageCreate a DNS record in a zone.
ttlname必填type必填commentcontent必填proxiedzone_id必填Update a DNS record in a zone.
ttlnametypecommentcontentproxiedzone_id必填record_id必填Delete a DNS record from a zone.
zone_id必填record_id必填Purge cached content for a zone, by file, tag, host, or everything.
tagsfileshostszone_id必填purge_everythingList Worker scripts in an account.
account_idGet a Worker script's metadata and shape only, without its body.
account_idscript_name必填List Workers KV namespaces in an account.
account_idList R2 buckets in an account.
account_id已满足适用检查项的 90%
该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。
请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。
npx @reneturcios/edgeport list-zonesdocker run -i -e CLOUDFLARE_API_TOKEN ghcr.io/cloudcorprecords/edgeportexport CLOUDFLARE_API_TOKEN="your api token"export CLOUDFLARE_ACCOUNT_ID="your account id" # optional fallback
edgeport list-accountsedgeport list-zones --name example.comedgeport get-zone --zone-id <zone id>edgeport list-dns --zone-id <zone id> --type Aedgeport purge-cache --zone-id <zone id> --everythingedgeport list-workersedgeport list-kvedgeport list-r2
edgeport --versionnpx -y @reneturcios/edgeport mcp{ "mcpServers": { "edgeport": { "command": "npx", "args": ["-y", "@reneturcios/edgeport", "mcp"], "env": { "CLOUDFLARE_API_TOKEN": "your api token" } } }}npm installnpm run build # tsc -> dist/npm test # node test runner over test/*.test.ts, no network (fake fetch fixtures)npm run dev # run the CLI from source via tsx