Cloudflare API MCP

by fefergrgrgrg
Integrations
  • Allows agents to interface with the Cloudflare REST API, with functionality for managing DNS records and other Cloudflare services

클라우드플레어-API-MCP

이는 create-mcp 로 부트스트랩되고 Cloudflare Workers에 배포된 가벼운 모델 제어 프로토콜(MCP) 서버입니다.

이 MCP 서버를 사용하면 에이전트(예: Cursor)가 Cloudflare REST API 와 상호 작용할 수 있습니다.

아직 개발 중이므로, 필요할 때마다 도구를 추가할 예정입니다.

사용 가능한 도구

현재 도구 목록은 src/index.ts를 참조하세요. 클래스의 모든 메서드는 MCP 도구입니다.

설치

  1. 자동 설치 스크립트를 실행하여 이 MCP 서버를 복제하고 Cloudflare 계정에 배포합니다.

지엑스피1

  1. Cursor Settings -> MCP -> Add new MCP server 복사한 명령을 클립보드에 붙여넣습니다.
  2. Cloudflare API 키를 업로드하고 작업자 비밀을 이메일로 보내세요.
bunx wrangler secret put CLOUDFLARE_API_KEY bunx wrangler secret put CLOUDFLARE_API_EMAIL

지역 개발

Cloudflare API 키와 이메일을 .dev.vars 파일에 추가합니다.

CLOUDFLARE_API_KEY=<your-cloudflare-api-key> CLOUDFLARE_API_EMAIL=<your-cloudflare-api-email>

배포 중

  1. 배포 스크립트를 실행합니다.
bun run deploy
  1. 새로운 도구를 보려면 커서 창을 다시 로드하세요.

새로운 MCP 도구를 만드는 방법

새로운 MCP 도구를 만들려면 src/index.tsMyWorker 클래스에 메서드를 추가하세요. 각 함수는 에이전트가 사용할 수 있는 MCP 도구가 됩니다.

예:

/** * Create a new DNS record in a zone. * @param zoneId {string} The ID of the zone to create the record in. * @param name {string} The name of the DNS record. * @param content {string} The content of the DNS record. * @param type {string} The type of DNS record (CNAME, A, TXT, or MX). * @param comment {string} Optional comment for the DNS record. * @param proxied {boolean} Optional whether to proxy the record through Cloudflare. * @return {object} The created DNS record. */ createDNSRecord(zoneId: string, name: string, content: string, type: string, comment?: string, proxied?: boolean) { // Implementation }

JSDoc 주석은 중요합니다.

  • 첫 번째 줄은 도구에 대한 설명이 됩니다.
  • @param 태그는 유형과 설명을 사용하여 도구의 매개변수를 정의합니다.
  • @return 태그는 반환 값과 유형을 지정합니다.

자세히 알아보기

-
security - not tested
A
license - permissive license
-
quality - not tested

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

에이전트가 Cloudflare의 REST API와 상호 작용하여 DNS 레코드 및 기타 Cloudflare 서비스를 관리할 수 있도록 하는 가벼운 MCP 서버입니다.

  1. 사용 가능한 도구
    1. 설치
      1. 지역 개발
        1. 배포 중
          1. 새로운 MCP 도구를 만드는 방법
            1. 자세히 알아보기

              Related MCP Servers

              • -
                security
                A
                license
                -
                quality
                A lightweight MCP server that interacts with the Neon REST API, deployable on Cloudflare Workers for streamlined database management and integration.
                Last updated -
                5
                TypeScript
                MIT License
              • -
                security
                A
                license
                -
                quality
                A lightweight MCP server for managing DNS records, purging cache, and interacting with the Cloudflare API through natural language commands.
                Last updated -
                13
                TypeScript
                MIT License
              • -
                security
                A
                license
                -
                quality
                An MCP server that allows using natural language to manage Cloudflare resources (Workers, KV, R2, D1) through Claude Desktop, VSCode, and other MCP clients.
                Last updated -
                8
                5
                TypeScript
                Apache 2.0

              View all related MCP servers

              ID: xyn6pc5xaj