Cloudflare
БесплатноНе проверенManages DNS records and Cloudflare Tunnels for a Cloudflare zone via the Cloudflare API. Supports listing, creating, updating, and deleting DNS records, as well
Описание
Manages DNS records and Cloudflare Tunnels for a Cloudflare zone via the Cloudflare API. Supports listing, creating, updating, and deleting DNS records, as well as tunnel lifecycle operations.
README
A tiny TypeScript MCP server to manage the DNS records of a Cloudflare zone through the Cloudflare API. Zone-agnostic: point it at any zone via env vars.
Requirements
- Node.js 18+
- A Cloudflare API token. Permissions by feature:
- DNS tools →
Zone:DNS:Edit(+Zone:Readto resolve the zone by name) - Tunnel tools →
Account:Cloudflare Tunnel:Edit(+Account:Account Settings:Readto auto-resolve the account id)
- DNS tools →
Configuration
| Variable | Description |
|---|---|
CLOUDFLARE_API_TOKEN |
Cloudflare API token (see permissions above) |
CLOUDFLARE_ZONE_ID |
The 32-char hex Zone ID or the zone name (e.g. example.com). A name is resolved to its id at startup (needs Zone:Read). |
CLOUDFLARE_ACCOUNT_ID |
Optional. Account id for tunnel tools. Auto-resolved from the token if omitted (needs Account:Read). |
Copy .env.example to .env and fill it in. Never commit .env.
Scripts
npm install
npm run build # emit dist/
npm run dev # tsx src/index.ts (stdio)
npm start # node dist/index.js
Tools
| Tool | Description |
|---|---|
dns_list |
List all DNS records in the zone (optional type filter: A, CNAME, MX, TXT…) |
dns_get |
Get a record by name (e.g. app.example.com) |
dns_create |
Create a record (type, name, content, proxied, ttl) |
dns_update |
Update content/proxy of an existing record by name |
dns_delete |
Delete a record by name |
tunnel_list |
List cloudflared tunnels in the account |
tunnel_create |
Create a remotely-managed tunnel (idempotent by name); returns its run token |
tunnel_token |
Get the run token for an existing tunnel |
tunnel_configure |
Set a tunnel's public-hostname ingress (hostname → local service) |
tunnel_delete |
Delete a tunnel by name |
Stand up a tunnel end-to-end
tunnel_create name=my-dev → returns id + token
tunnel_configure name=my-dev hostname=dev.example.com service=http://localhost:8770
dns_create type=CNAME name=dev.example.com content=<id>.cfargotunnel.com
# then run it locally (no cert.pem needed):
# TUNNEL_TOKEN=<token> cloudflared tunnel run
Example (via an MCP client)
dns_list → all records
dns_get name=app.example.com → inspect one record
dns_create type=CNAME name=dev.example.com content=<tunnel-id>.cfargotunnel.com
dns_update name=dev.example.com proxied=true
dns_delete name=old.example.com
Use as an MCP server
Point your MCP client at the built or dev entrypoint over stdio, passing the two env vars. Example (generic MCP config):
{
"command": "npx",
"args": ["-y", "tsx", "/absolute/path/to/cloudflare-mcp/src/index.ts"],
"env": {
"CLOUDFLARE_API_TOKEN": "<your-token>",
"CLOUDFLARE_ZONE_ID": "example.com"
}
}
License
MIT
Установка Cloudflare
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/tecnomanu/cloudflare-mcpFAQ
Cloudflare MCP бесплатный?
Да, Cloudflare MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для Cloudflare?
Нет, Cloudflare работает без API-ключей и переменных окружения.
Cloudflare — hosted или self-hosted?
Доступен hosted-вариант: Unyly запускает сервер в облаке, локальная установка не обязательна.
Как установить Cloudflare в Claude Desktop, Claude Code или Cursor?
Открой Cloudflare на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
GitHub
PRs, issues, code search, CI status
автор: GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
автор: mcpdotdirectCompare Cloudflare with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории development
