Cloudflare Integration
Manage Cloudflare zones, DNS, cache, and Workers via the Cloudflare API
The Cloudflare integration provides access to manage Cloudflare zones, DNS, cache, and Workers via the Cloudflare API through the Integrate MCP server.
Installation
The Cloudflare integration is included with the SDK:
import { cloudflareIntegration } from "integrate-sdk/server";Setup
Add Cloudflare to your server configuration. Provide credentials via environment variables or integration config:
import { createMCPServer, cloudflareIntegration } from "integrate-sdk/server";
export const { client: serverClient } = createMCPServer({
apiKey: process.env.INTEGRATE_API_KEY,
integrations: [
cloudflareIntegration({
// See configuration options below
}),
],
});Client-Side Usage
import { client } from "integrate-sdk";
const result = await client.cloudflare.verifyToken({});
console.log(result);Environment Variables
CLOUDFLARE_API_KEY(when supported by this integration)
Configuration Options
export interface CloudflareIntegrationConfig {
/**
* When set (or `CLOUDFLARE_API_TOKEN`), the integration uses static Bearer auth
* instead of OAuth — ideal for workers, CI, and server-only API tokens.
*/
apiToken?: string;
Default Scopes
These defaults are applied unless you override scopes in the integration config:
account:readuser:readzone:readworkers:readworkers:writepages:writeoffline_access
Tools
cloudflare_verify_token
Verify token
No parameters.
cloudflare_get_user
Get user
No parameters.
cloudflare_list_accounts
List accounts
export interface CloudflareListAccountsParams {
name?: string;
cloudflare_get_account
Get account
export interface CloudflareGetAccountParams { account_id: string }
cloudflare_list_zones
List zones
export interface CloudflareListZonesParams {
account_id?: string;
cloudflare_get_zone
Get zone
export interface CloudflareGetZoneParams { zone_id: string }
cloudflare_list_dns_records
List dns records
export interface CloudflareListDnsRecordsParams {
zone_id: string;
cloudflare_create_dns_record
Create dns record
export interface CloudflareCreateDnsRecordParams {
zone_id: string;
cloudflare_update_dns_record
Update dns record
export interface CloudflareUpdateDnsRecordParams {
zone_id: string;
cloudflare_delete_dns_record
Delete dns record
export interface CloudflareDeleteDnsRecordParams { zone_id: string;
cloudflare_purge_zone_cache
Purge zone cache
export interface CloudflarePurgeZoneCacheParams {
zone_id: string;
cloudflare_list_worker_scripts
List worker scripts
export interface CloudflareListWorkerScriptsParams { account_id: string }
Notes
- Category: Infrastructure
- Authentication mode: API key