How It Works
PraisonAI discovers Cloudflare’s OAuth 2.1 endpoints automatically, stores your token locally at0600 in ~/.praisonai/mcp-auth.json, and exposes Cloudflare’s remote tools across Python, CLI, and Dashboard.
Step-by-Step Setup
1
Prerequisites
- A Cloudflare account with Workers, Pages, DNS, or storage resources you want to manage
2
Install PraisonAI with MCP support
3
Add and authenticate Cloudflare
- CLI (Interactive OAuth)
- Headless / SSH (--manual)
- PraisonAI Dashboard
4
Verify and list available tools
5
Run your agent
Scope Tools for Safety
Common Workflows
- Worker Error Investigation:
"Check recent error logs for the api-gateway Worker and summarize the top failure codes." - Resource Inventory:
"List all D1 databases and KV namespaces in my staging Cloudflare account."
Troubleshooting
Best Practices
Pin staging vs production account IDs in instructions
Pin staging vs production account IDs in instructions
Explicitly tell your agent which Cloudflare account ID is staging vs production so it never inspects or mutates the wrong environment.
Keep approval='always' on infrastructure connectors
Keep approval='always' on infrastructure connectors
Require human approval before any DNS, firewall, KV write, or Worker redeployment call executes.
Refresh tokens cleanly after role changes
Refresh tokens cleanly after role changes
Run
praisonai connectors logout cloudflare --yes then praisonai connectors auth cloudflare whenever your Cloudflare account permissions change.Related
List of Connectors
Browse all popular connectors and step-by-step guides
Vercel Connector
Inspect frontend deployments and build logs on Vercel
Remote MCP Connectors
CLI commands, —manual mode, and Dashboard reference
MCP OAuth Authentication
OAuth 2.1 PKCE flow and token storage

