
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요. 원문 보기
Cloudflare API용 MCP 서버
개요
전체 Cloudflare API를 위한 토큰 효율적인 MCP 서버입니다. 1k 토큰에 2500개의 엔드포인트를 제공하며, 코드 모드로 구동됩니다. MCP 서버 URL에 연결하기만 하면 Cloudflare로 리디렉션되어 권한 부여와 선택이 가능합니다. CI/CD, 자동화, 또는 직접 토큰 관리를 선호한다면 그렇습니다. 필요한 권한이 포함된 Cloudflare API 토큰을 만드세요. 두 가지 모두 지원됩니다. 계정 토큰의 경우, 서버가 자동으로 계정 ID를 감지할 수 있도록 권한을 포함하세요. 활성화된 API 토큰은 현재 지원되지 않습니다. 만약 MCP 클라이언트가 이미 코드 모드를 사용하거나, 이 서버를 코드 모드를 사용하는 다른 서버와 함께 구성하고 있다면, ?codemode=false query 매개변수로 비활성화할 수 있습니다. 이렇게 하면 코드 모드 API 도구 대신 ~2,500개의 Cloudflare API 엔드포인트 각각에 대해 개별 도구가 등록됩니다. 문서 도구는 두 모드 모두에서 계속 사용할 수 있습니다. 코드 모드가 비활성화될 때: - 각 API 엔드포인트는 자체 도구로 등록됩니다(예:
개요(AI 번역)
전체 Cloudflare API를 위한 토큰 효율적인 MCP 서버입니다. 1k 토큰에 2,500개의 엔드포인트가 있으며, 코드 모드로 구동됩니다.
토큰 비교
| 접근 방법 | 도구 | 토큰 비용 | 사용된 맥락 (200K) |
|---|---|---|---|
| 프롬프트에 있는 Raw OpenAPI 사양 | — | ~2,000,000 | 977% |
| 네이티브 MCP (전체 스키마) | 2,594 | 1,170,523 | 585% |
| 네이티브 MCP (최소 — 필요한 파라미터만 있음) | 2,594 | 244,047 | 122% |
| 코드 모드 | 3 | ~1,100 | 0.5% |
시작해
MCP URL: https://mcp.cloudflare.com/mcp
옵션 1: OAuth (추천)
MCP 서버 URL에 연결하기만 하면 Cloudflare로 리디렉션되어 권한 부여와 선택이 가능합니다.
예시 JSON 구성
옵션 2: API 토큰
CI/CD, 자동화, 또는 직접 토큰 관리를 선호한다면 그렇습니다.
필요한 권한이 포함된 Cloudflare API 토큰을 생성하세요. 사용자 토큰과 계정 토큰 모두 지원됩니다. 계정 토큰의 경우, 서버가 자동으로 계정 ID를 감지할 수 있도록 Account Resources : Read 권한을 포함하세요.
참고: 클라이언트 IP 주소 필터링**이 활성화된 API 토큰은 현재 지원되지 않습니다.
에이전트에게 추가
이 페이지는 AI로 자동 번역되었습니다. 기술적인 세부 사항은 원문을 확인하세요.
README
원문 README의 일부입니다. 원문 보기.
Cloudflare MCP Server
A token-efficient MCP server for the entire Cloudflare API. 2500 endpoints in 1k tokens, powered by Code Mode.
Token Comparison
| Approach | Tools | Token cost | Context used (200K) |
|---|---|---|---|
| Raw OpenAPI spec in prompt | — | ~2,000,000 | 977% |
| Native MCP (full schemas) | 2,594 | 1,170,523 | 585% |
| Native MCP (minimal — required params only) | 2,594 | 244,047 | 122% |
| Code mode | 3 | ~1,100 | 0.5% |
Get Started
MCP URL: https://mcp.cloudflare.com/mcp
Option 1: OAuth (Recommended)
Just connect to the MCP server URL - you’ll be redirected to Cloudflare to authorize and select permissions.
Example JSON Configuration
{
"mcpServers": {
"cloudflare-api": {
"type": "http",
"url": "https://mcp.cloudflare.com/mcp"
}
}
}
Option 2: API Token
For CI/CD, automation, or if you prefer managing tokens yourself.
Create a Cloudflare API token with the permissions you need. Both user tokens and account tokens are supported. For account tokens, include the Account Resources : Read permission so the server can auto-detect your account ID.
Note: API tokens with Client IP Address Filtering enabled are not currently supported.
Add to Agent
| Setting | Value |
|---|---|
| MCP URL | https://mcp.cloudflare.com/mcp |
| Bearer Token | Your Cloudflare API Token |
Disable Code Mode
If your MCP client already uses code mode, or you’re composing this server with another server that uses code mode, you can disable it with the ?codemode=false query parameter. This registers an individual tool for each of the ~2,500 Cloudflare API endpoints instead of the code mode API tools. The docs and whoami tools remain available in both modes.
https://mcp.cloudflare.com/mcp?codemode=false
Example JSON Configuration
{
"mcpServers": {
"cloudflare-api": {
"type": "http",
"url": "https://mcp.cloudflare.com/mcp?codemode=false"
}
}
}
When code mode is disabled:
- Each API endpoint is registered as its own tool (e.g.,
get_workers_scripts,post_d1_database) - Tool input schemas are derived from the endpoint’s path parameters, query parameters, and request body
- Tools make direct API calls — no code execution involved
설치
This server does not publish a one-line install command.
Open the repository installation guide MCP 초보자라면? mcpskill.org 가이드부터 시작하세요 →설정
{
"mcpServers": {
"cloudflare-api": {
"type": "http",
"url": "https://mcp.cloudflare.com/mcp"
}
}
}