# Cloudflare Api Key — MCP server on mcp.ai > Connect your Cloudflare Api Key account and use 25 tools for security and identity straight from your AI agent. Connect with your own API key. Cloudflare provides a suite of services to enhance the security, performance, and reliability of websites and applications. By: mcp.ai · official Page: https://mcp.ai/cloudflare_api_key ## Connect (MCP protocol) Remote MCP endpoint (HTTP, streamable): https://api.mcp.ai/p_cloudflare_api_key?ms=1787291220000 Add it as a custom/remote MCP connector, then authenticate when prompted. ## REST API (no MCP client required) Every tool is also a REST endpoint, authed with a workspace API key. Discover: GET https://api.mcp.ai/api/cloudflare_api_key/_endpoints # public; lists every endpoint Call: POST https://api.mcp.ai/api/cloudflare_api_key/ Authorization: Bearer sk_live_… # create one at https://mcp.ai/settings/api-keys Content-Type: application/json Body: { …args } → { "ok": true, "tool": "", "result": { … } } ## Developer docs How to use (MCP or REST), markdown: https://mcp.ai/cloudflare_api_key/skill.md Postman collection (v2.1): https://mcp.ai/cloudflare_api_key/postman.json ## Tools - cloudflare_api_key_create_dns_record(ttl?: integer, name: string, tags?: string[], type: string, comment?: string, content?: string, proxied?: boolean, zone_id: string, settings?: object) — Tool to create a new DNS record in a Cloudflare zone. Use when you need to add a record (A, CNAME, TXT, MX, etc.) to a specified zone. - cloudflare_api_key_create_lockdown_rule(urls: string[], paused?: boolean, zone_id: string, priority?: integer, description?: string, configurations: object[]) — Tool to create a Zone Lockdown rule. Use when you need to restrict access to specific URL patterns to defined IPs/CIDR ranges. Use after confirming zone_id. - cloudflare_api_key_create_rule_in_ruleset(rule: object, zone_id?: string, account_id?: string, ruleset_id: string, accounts_or_zones: string) — Tool to add a rule to an existing ruleset. Use when you need to append or insert a new rule in a Cloudflare ruleset. - cloudflare_api_key_create_ruleset(kind: string, name: string, phase: string, rules?: object[], description?: string, accounts_or_zones: string, account_or_zone_id: string) — Creates a new Cloudflare ruleset at account or zone scope. Rulesets contain rules that control traffic behavior (firewall, rate limiting, redirects, etc.). First use List Zones to get a zone_id, then - cloudflare_api_key_delete_dns_record(zone_id: string, dns_record_id: string) — Tool to delete a DNS record. Use when you need to remove a specific DNS record from a zone after confirming both zone and record IDs. - cloudflare_api_key_delete_dnssec(zone_id: string) — Tool to delete DNSSEC records for a zone. Use after disabling DNSSEC at the registrar to remove DNSSEC configuration. - cloudflare_api_key_delete_rule_from_ruleset(rule_id: string, ruleset_id: string, accounts_or_zones: string, account_or_zone_id: string) — Tool to delete a specific rule from a ruleset. Use when you need to remove an outdated or incorrect rule from an account or zone ruleset after confirming IDs. - cloudflare_api_key_delete_ruleset(ruleset_id: string, accounts_or_zones: string, account_or_zone_id: string) — Tool to delete all versions of a ruleset. Use when you need to remove a ruleset from an account or zone after confirming no references exist. - cloudflare_api_key_delete_zone(zone_id: string) — Tool to delete an existing zone. Use after confirming the zone_id to permanently remove the zone. - cloudflare_api_key_get_cloudflare_ip_addresses(networks?: string) — Tool to retrieve IP addresses used on the Cloudflare or JD Cloud network. Use when you need to obtain the list of IPv4 and IPv6 CIDR blocks used by Cloudflare's infrastructure or JD Cloud data centers - cloudflare_api_key_get_entrypoint_ruleset_version(ruleset_phase: string, ruleset_version: string, accounts_or_zones: string, account_or_zone_id: string) — Retrieves a specific historical version of an entry point ruleset from Cloudflare. Entry point rulesets are phase-specific and define the rules that execute during a particular phase of request/respon - cloudflare_api_key_get_lockdown_rule(zone_id: string, lockdown_id: string) — Tool to get a Zone Lockdown rule. Use when you need to fetch details of a specific lockdown rule by its ID within a Cloudflare zone. - cloudflare_api_key_get_regional_tiered_cache(zone_id: string) — Tool to get the regional tiered cache setting for a zone. Use when you need to verify if regional tiered cache is enabled for performance optimization after zone activation. - cloudflare_api_key_get_ruleset(zone_id?: string, account_id?: string, ruleset_id: string, accounts_or_zones: string) — Tool to fetch the latest version of a ruleset by ID. Use after you have the ruleset scope and ID. - cloudflare_api_key_get_zone_details(zone_id: string) — Tool to get details for a specific zone. Use when you need detailed zone metadata by ID. - cloudflare_api_key_list_dns_records(name?: string, page?: integer, type?: string, match?: string, order?: string, search?: string, content?: string, proxied?: boolean, zone_id: string, per_page?: integer, direction?: string) — List, search, sort, and filter DNS records for a Cloudflare zone. Use this tool to retrieve DNS records (A, AAAA, CNAME, TXT, MX, etc.) for a zone. Supports filtering by record type, name, content, an - cloudflare_api_key_list_zones(name?: string, page?: integer, match?: string, order?: string, status?: string, per_page?: integer, direction?: string, account.id?: string, account.name?: string) — Tool to list, search, sort, and filter Cloudflare zones. Use when you need to retrieve a paginated list of zones available to the authenticated user. - cloudflare_api_key_overwrite_dns_record(ttl?: integer, name: string, tags?: string[], type: string, comment?: string, content?: string, proxied?: boolean, zone_id: string, settings?: object, dns_record_id: string) — Tool to completely overwrite a DNS record. Use when you need to replace all record details after confirming record type and name. - cloudflare_api_key_rerun_zone_activation_check(zone_id: string) — Triggers a new activation check for a zone with 'pending' status. Use this after creating a zone or updating nameservers to verify that DNS propagation is complete and the zone can be activated. Rate - cloudflare_api_key_update_dnssec_status(status?: string, zone_id: string, dnssec_presigned?: boolean, dnssec_use_nsec3?: boolean, dnssec_multi_signer?: boolean) — Tool to update DNSSEC configuration for a zone. Use when you need to enable or disable DNSSEC or adjust DNSSEC options after confirming the zone ID. - cloudflare_api_key_update_lockdown_rule(urls: string[], paused?: boolean, zone_id: string, description?: string, lock_downs_id: string, configurations: object[]) — Tool to update a zone lockdown rule. Use when you need to modify the IP or URL settings of an existing Zone Lockdown rule after confirming the rule exists. - cloudflare_api_key_update_rule_in_ruleset(rule?: object, rule_id: string, position?: object, ruleset_id: string, accounts_or_zones: string, account_or_zone_id: string) — Tool to update a specific rule in a ruleset. Use when you need to modify a rule's configuration or reorder it after reviewing its current settings. - cloudflare_api_key_update_ruleset(kind?: string, name?: string, phase?: string, rules?: object[], ruleset_id: string, description?: string, accounts_or_zones: string, account_or_zone_id: string) — Update a Cloudflare ruleset, creating a new version. Use this to modify ruleset description, name, or rules. IMPORTANT: When updating rules, you must include ALL rules you want to keep - any rules not - cloudflare_api_key_update_zone(type?: string, paused?: boolean, zone_id: string, vanity_name_servers?: string[]) — Tool to edit a Cloudflare zone. Use when you need to update a single zone property at a time. Ensure only one of paused, type, or vanity_name_servers is provided per call. - cloudflare_api_key_upload_file_to_s3(content: string, mimetype?: string, file_name: string) — Tool to upload arbitrary file content to temporary storage. Use when you need to stage files for actions requiring FileUploadable. ## Example prompts - "What can I do in Cloudflare Api Key?" - "Show me a summary of my Cloudflare Api Key account" ## Links Docs: https://mcp.ai/docs/mcps/cloudflare_api_key Website: https://mcp.ai/mcps/cloudflare_api_key