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