@archawat/mcp-cloudflare
@archawat/mcp-cloudflare
단일 API 토큰으로 여러 영역(도메인)의 Cloudflare DNS를 관리하기 위한 MCP(Model Context Protocol) 서버입니다. 대량 워크플로우를 위해 구축되었으며, 여러 레코드에 걸쳐 프록시를 켜거나 끄고, 영역 전반의 DNS를 감사하며, 레코드를 일괄 업데이트할 수 있습니다.
기능
단일 토큰으로 다중 영역 관리 —
"example.com"과 같은 도메인 이름을 전달하면 서버가 자동으로 영역을 확인합니다. 영역 ID도 사용할 수 있습니다.대량 작업 —
bulk_toggle_proxy,bulk_update_dns_record,bulk_list_dns_records는 동시 실행되며 호출당 영역 ID 캐시를 공유하므로 반복되는 영역에 대해 추가 조회 비용이 발생하지 않습니다.안전한 기본값 — 새로운 A/CNAME 레코드는
proxied: false(DNS 전용, 회색 구름)로 생성됩니다. 프록시는 선택 사항입니다.자동 페이지네이션 —
list_dns_records는 특정 페이지를 요청하지 않는 한 모든 페이지를 병렬로 가져옵니다.
Related MCP server: Cloudflare API MCP
설치
로컬 설치가 필요하지 않습니다. npx 또는 bunx를 사용하여 필요할 때 실행하세요.
Claude Code / Claude Desktop (.mcp.json)
npx (Node) 사용:
{
"mcpServers": {
"cloudflare": {
"command": "npx",
"args": ["-y", "@archawat/mcp-cloudflare"],
"env": { "CLOUDFLARE_API_TOKEN": "cf-token-here" }
}
}
}bunx (Bun) 사용:
{
"mcpServers": {
"cloudflare": {
"command": "bunx",
"args": ["-y", "@archawat/mcp-cloudflare"],
"env": { "CLOUDFLARE_API_TOKEN": "cf-token-here" }
}
}
}Claude Code CLI
claude mcp add cloudflare -s user \
-e CLOUDFLARE_API_TOKEN="cf-token-here" \
-- npx -y @archawat/mcp-cloudflare전역 설치 (가장 빠른 콜드 스타트)
npm install -g @archawat/mcp-cloudflare
# or: bun add -g @archawat/mcp-cloudflare전역 바이너리 이름은 mcp-cloudflare(스코프 없음)이므로 다음과 같이 사용합니다:
{
"mcpServers": {
"cloudflare": {
"command": "mcp-cloudflare",
"env": { "CLOUDFLARE_API_TOKEN": "cf-token-here" }
}
}
}API 토큰
https://dash.cloudflare.com/profile/api-tokens에서 다음 권한을 가진 Cloudflare 토큰을 생성하세요:
Zone:ReadZone:DNS:Edit
토큰의 범위를 관리하려는 영역으로 제한하거나 "모든 영역(All zones)" 권한을 부여하세요.
도구
도구 | 목적 |
| 토큰이 관리할 수 있는 도메인을 확인합니다. |
| 영역 내 레코드를 나열합니다. |
| 한 번의 호출로 여러 영역의 레코드를 나열합니다. 영역별로 동시 실행됩니다. |
| A 레코드를 생성합니다. |
| CNAME 레코드를 생성합니다. |
| 레코드 ID 또는 이름(+ 선택적 유형)으로 프록시를 켜거나 끕니다. |
| 한 번의 호출로 여러 레코드의 프록시를 전환합니다(공유 |
| 레코드의 |
| 항목별 필드를 사용하여 한 번의 호출로 여러 레코드를 패치합니다. |
| ID로 레코드를 삭제합니다. 파괴적인 작업입니다. |
모든 도구는 zone 인수로 도메인 이름("example.com") 또는 32자 영역 ID를 허용합니다.
대량 작업 결과 형태
대량 작업 도구는 항목별 결과를 반환합니다. 단일 실패가 전체 배치를 중단시키지 않습니다:
{
"succeeded": 10,
"failed": 1,
"results": [
{ "zone": "example.com", "ok": true, "record": { "id": "…", "proxied": true } },
{ "zone": "other.com", "ok": false, "error": "No proxyable record found for 'www.other.com'." }
]
}항목이 실패하면 도구 응답에 isError: true가 설정되지만, 모든 결과는 여전히 반환됩니다.
개발
Bun(권장) 또는 Node 18+가 필요합니다.
bun install
bun run dev # run src/index.ts with --watch
bun run start # run src/index.ts once
bun run typecheck # tsc --noEmit
bun run build # emit dist/ for publishing게시된 패키지 대신 개발 중인 복사본을 MCP 서버로 실행하려면 .mcp.json이 로컬 빌드를 가리키도록 설정하세요:
{
"mcpServers": {
"cloudflare": {
"command": "bun",
"args": ["/abs/path/to/mcp-cloudflare/src/index.ts"],
"env": { "CLOUDFLARE_API_TOKEN": "cf-token-here" }
}
}
}서버는 stdio를 사용합니다. MCP 클라이언트가 프로세스를 생성하고 stdin/stdout을 통해 통신합니다.
라이선스
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityNot gradedmaintenanceA lightweight MCP server for managing DNS records, purging cache, and interacting with the Cloudflare API through natural language commands.24
- AlicenseNot gradedqualityDmaintenanceA lightweight MCP server that enables agents to interface with Cloudflare's REST API, allowing management of DNS records and other Cloudflare services.515GPL 2.0
- AlicenseNot gradedqualityNot gradedmaintenanceA token-efficient MCP server for managing Cloudflare DNS zones and records with full CRUD support and bulk operations. It can be deployed locally via stdio or as a Cloudflare Worker for remote HTTP access.
- FlicenseAqualityDmaintenanceMCP server for managing and analyzing Cloudflare DNS — zones, records, analytics, and DNSSEC.141
Related MCP Connectors
MCP server for AI agents to plan, verify, and deploy Cloudflare-native apps.
MCP server for Blockscout
MCP server for interacting with the Supabase platform
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/archawat/mcp-cloudflare'
If you have feedback or need assistance with the MCP directory API, please join our Discord server