Cloudflare MCP server enterprise setup: official servers, OAuth, tokens and portals

How an organization connects AI clients to Cloudflare's official MCP servers: OAuth sign-in versus API tokens for automation, where the Apache-2.0 code lives, and how MCP server portals in Cloudflare One add central control.

On this page

Does the Cloudflare MCP server support enterprise sign-in and central control?

Cloudflare's official MCP servers support OAuth sign-in from MCP clients, and the centralized control Cloudflare documents is the MCP server portal feature in Cloudflare One (Access). Portals are not a switch on the MCP servers themselves: using one depends on a Cloudflare One setup that your team must build and maintain. If your question is whether a staff AI client can connect to your Cloudflare account, the answer depends on who signs in, through which identity provider, and whether those sign-ins pass through a portal you control.

Before approving connections, confirm four things. First, which identity provider your Cloudflare One configuration uses for sign-in, and whether staff must authenticate through it. Second, whether each MCP server you allow is added to a portal, and which users or groups can reach it through that portal. Third, whether the portal's login settings and any manual OAuth credentials are managed by a named owner. Fourth, which account-level permissions the signed-in user holds, because OAuth access inherits what that user can already do in the account. The Cloudflare One docs cover adding servers, customizing login settings and configuring manual OAuth credentials, so use them as the working checklist.

Cloudflare's public documentation does not establish, in the pages referenced here, which Cloudflare plan or edition includes SSO for the MCP servers themselves, how OAuth consent is restricted per client, or what admin-level audit logs record for a direct connection that bypasses a portal. Do not assume these details. Ask your Cloudflare account team to confirm in writing which plan includes Cloudflare One and portal features, which identity providers are supported, whether administrators can block direct connections to the MCP endpoints, and where connection events are logged and how long they are kept.

Automation is a separate case. Cloudflare's docs describe API tokens passed as bearer tokens for CI/CD, which are not tied to an interactive user's sign-in. Your review should decide whether such tokens may be used with agents at all, who issues them, and how they are rotated and scoped, since a portal does not govern a token used outside it.

Enterprise capabilities of the Cloudflare MCP servers by access path

This table compares each way an organization can connect to Cloudflare MCP servers, from OAuth sign-in and API tokens to open-source code and Cloudflare One portals. Read the status column first, then confirm edition and plan requirements with Cloudflare before you approve a rollout. The main takeaway is that per-user OAuth, token-based automation, and portal-level central control are separate decisions with different owners and evidence.

CapabilityStatusWhat to know
OAuth sign-in to the Cloudflare API MCP serverBuilt inClients such as Claude sign in through OAuth to so access follows the signed-in user's Cloudflare permissions.
API token bearer authentication for automationBuilt inFor CI/CD or automation, a Cloudflare API token with the needed permissions is sent as a bearer token. Both user tokens and account tokens are supported.
Open-source code availabilityBuilt inThe Cloudflare API MCP server code is in github.com/cloudflare/mcp under Apache-2.0, so security teams can review the code that runs.
Managed server catalogBuilt inCloudflare runs managed remote MCP servers across development, security and performance services, each reached at its /mcp endpoint. Confirm which servers your plan exposes.
MCP server portals in Cloudflare OneCloudflare One onlyPortals are documented as a Cloudflare One (Access) feature. Confirm the Cloudflare One edition and licensing your organization needs with Cloudflare.
Portal login customization and manual OAuth credentialsCloudflare One onlyPortal documentation covers customizing login settings and configuring manual OAuth credentials for upstream servers. Confirm availability for your account.
Scope-based access control per the MCP specOutside component neededThe MCP spec uses OAuth 2.1 with token validation and scope-based access control. Confirm with Cloudflare which scopes each server enforces and how you review them.

How OAuth, bearer tokens and portals divide the control

The control over what an AI agent can do through Cloudflare's official MCP servers sits in three layers, and a reviewer should map each one before approval. The first is the managed remote server itself. The main Cloudflare API MCP server is reached at its Streamable HTTP endpoint, /mcp, on ` The second layer is the client connection. Clients sign in with OAuth, and the MCP specification uses OAuth 2.1 for authorization between clients and servers, including token validation and scope-based access control. The third layer is the MCP server portal, a Cloudflare One (Access) feature that sits between staff clients and the servers, so that administrators, rather than each user, decide which servers are offered and how sign-in is configured. Confirm with Cloudflare which of these settings apply to your plan and account type.

The blast radius of this setup is wide. The API MCP server covers over 2,500 Cloudflare API endpoints plus the Cloudflare developer documentation, so the permissions granted at sign-in, or the permissions set on a token, define what an agent can read and change. A user who approves a broad OAuth grant gives the connected agent that breadth for the life of the session. A bearer token used for automation carries the permissions it was created with, and it is not tied to a person's interactive approval. Before rollout, ask which scopes the OAuth consent screen requests, who can create account tokens, and whether any token used by CI/CD is restricted to the specific permissions the pipeline needs.

The portal is where central control should be enforced, but it does not replace permission design. Its documented features include adding an MCP server, connecting a private MCP server, customizing login settings and configuring manual OAuth credentials. For each approved server, record who may reach it, which identity provider signs them in, and whether the portal is the only path staff use. Also decide where a bearer token is acceptable. Automation tokens sit outside the interactive sign-in path, so the portal does not govern them in the same way. Ask Cloudflare to confirm how portal policies apply to each client and whether token creation is logged in your audit records.

OAuth or API token: choosing the authentication path for each use

Interactive staff use is the path for MCP clients such as Claude. The client connects to the official Cloudflare API MCP server, the user signs in with OAuth, and the session acts with that person's Cloudflare access. Because the identity is the individual, actions can be tied to a named user. The repository README for cloudflare/mcp recommends OAuth as the first option for this reason.

  • Approval: The individual user grants consent during sign-in. Confirm whether account administrators can restrict which users or clients may connect, and where that setting lives.
  • Scope: Access follows the user's existing Cloudflare role. Confirm that the consented access is no broader than what the user already holds in the account.
  • Revocation: Ending access depends on revoking the OAuth grant or removing the user's account membership. Confirm the exact steps and how quickly existing sessions stop working.
  • Audit trail: Changes should be attributable to the signed-in user. Confirm what Cloudflare's audit logs record for calls made through an MCP client.
  • Client control: Staff may use several AI clients. Decide which clients are approved and document them with the user population.

Check that each person's Cloudflare role matches the work they will do through an agent, because OAuth access inherits that role.

Decisions to make before connecting staff to Cloudflare MCP servers

Before staff connect an AI client to a Cloudflare MCP server, the team has to settle who the connection acts as, how much the token can change, which servers are exposed, whether a portal sits in front, whether to run the open-source code, and where automation secrets live. Each choice changes what an agent can read or alter, and what your logs can show afterward.

Who signs in: user or token owner

With OAuth, the agent acts as the signed-in Cloudflare user, so its actions are tied to that person's access and sign-in. With an API token, the agent acts as the token, and the audit trail points to the token rather than a person. Decide which identity model applies to interactive developers and which applies to automation, and confirm how your logs attribute each action. Check whether your Cloudflare account enforces its own two-factor and session rules for users who authorize clients.

Cloudflare MCP server docs

Token permission scope and account boundary

The Cloudflare docs say both user tokens and account tokens work as bearer tokens for the Cloudflare API MCP server, and that you create the token with the permissions you need. The permissions you choose set what the agent can read and change across the account. Ask which account or accounts a token covers, and keep write permissions off tokens that only need to read configuration. Review scope again whenever a new service is added to the account.

Which servers to expose

Cloudflare runs a catalog of managed servers across application development, security and performance, and the main API server covers over 2,500 endpoints. The Cloudflare Skills plugin bundles the Cloudflare MCP servers for agents that support the Agent Skills standard, including Claude Code, OpenCode, OpenAI Codex and Pi. Expose only the servers a team needs, because a bundle can bring in more reach than the task requires. Confirm which servers a plugin installs before approving it.

API endpoints covered
2,500+

Portal or direct connection

Cloudflare documents MCP server portals as a Cloudflare One (Access) feature. A portal gives security teams one place to add servers, customize login settings, connect a private MCP server and configure manual OAuth credentials, instead of each client connecting directly. Without a portal, control depends on each client's own settings and each developer's setup. Confirm whether your Cloudflare One licensing covers portals before you design around them.

MCP server portals docs

Use the open-source code or the hosted server

The repository github.com/cloudflare/mcp hosts the Cloudflare API MCP server under an Apache-2.0 license, and its README recommends OAuth as the first option. Running a fork or a self-hosted copy gives your team control over the code and its update cycle, but it also makes your team responsible for patching, reviewing changes and keeping the server aligned with Cloudflare's API. Decide whether you need that control, and who owns the review of upstream changes.

Cloudflare MCP repository

Where automation secrets are stored

CI/CD and automation pipelines need a Cloudflare API token passed as a bearer token in the Authorization header, and that token is a standing credential. Store it in your organization's secrets manager, limit which pipelines can read it, and set a rotation owner. Do not place it in client configuration files that developers commit or share. Ask who can revoke the token and how quickly your team can do it if a pipeline or developer machine is compromised.

How a staff AI client reaches Cloudflare through a portal or directly

The diagram starts at the MCP client on a staff laptop and splits into two paths. The direct path goes to the official Cloudflare API MCP server, where the user signs in with OAuth. The portal path goes through a Cloudflare One MCP server portal, where the administrator sets login settings and, if needed, manual OAuth credentials before the request reaches the server. A separate CI/CD path sends a Cloudflare API token as a bearer token. Check which path each client uses, who controls the portal, and which token type each automation job holds.

Staff clients reach the Cloudflare API directly or through a portal, while CI/CD uses a bearer token.

Gaps the Cloudflare MCP setup leaves for the organization to cover

The supplied Cloudflare sources establish how the official servers are reached and authenticated, but they do not settle every control a reviewer needs. The cards below list the open questions that remain after reading the docs, along with the usual way to close each one before approval.

Edition-level SSO and SCIM

The sources explain that clients sign in to the Cloudflare API MCP server through OAuth, but they do not spell out which Cloudflare plan or edition gives you SSO enforcement, SCIM provisioning or login restrictions for MCP access. Ask Cloudflare account management for the exact identity features that apply to your plan, and whether MCP sign-in follows the same account-level identity settings as the Cloudflare dashboard. Record the answer in your approval file.

Cloudflare MCP servers docs

Per-tool allowlisting

The docs describe the servers as covering more than 2,500 API endpoints, but they do not establish that an admin can allow or block individual tools from a central console. Until you confirm otherwise, treat tool-level control as something you enforce yourself: grant only the permissions the use case needs when you create a token, and confirm with Cloudflare whether any tool filtering is available on the client or portal side.

Audit log coverage of MCP actions

Cloudflare's audit logs record account activity, but the supplied sources do not state whether calls made through the MCP servers appear there, or how a call made under OAuth differs from one made with an API token. Ask Cloudflare which events are logged, how the acting identity is recorded, and how long records are kept. Where portals are in use, plan to review portal logs in the Cloudflare One account as well.

Token rotation and lifecycle

For automation, the docs say you create an API token with the permissions you need and pass it as a bearer token, and that both user tokens and account tokens work. The sources do not set a rotation schedule, expiry defaults or revocation behavior for these tokens. Centralize token issuance under a named owner, keep tokens in your secrets manager, set a rotation policy, and revoke tokens when a pipeline or employee changes.

cloudflare/mcp repository

Portal availability by plan

The MCP server portals page sits under Cloudflare One's Access controls, but the supplied sources do not say which Cloudflare One plans or account types include portals, or whether direct connections to the servers are available on every plan. Ask Cloudflare which plan includes MCP server portals, whether manual OAuth credentials and login customization are included, and whether a portal can be required for all staff connections.

MCP server portals docs

Open source code and client choice

The API MCP server's code is in the cloudflare/mcp repository under an Apache-2.0 license, and the repository README recommends OAuth as the first option. The sources do not say whether your organization can run that code inside its own environment, or how often it is updated relative to the hosted server. Confirm with Cloudflare which version is served from the hosted endpoint, and decide whether staff may use Cloudflare Skills with clients outside your approved list.

How the setup changes by team size, identity provider and private servers

A single engineering team that connects Claude Code, Cursor or another MCP client to Cloudflare usually starts with the official remote servers and signs in with OAuth. Each developer authorizes the client against the Cloudflare account, so the permissions in effect are tied to that person's access. This keeps setup simple, but approval is informal unless someone decides which clients and servers are allowed.

  • Connection path: Developers connect to the Streamable HTTP endpoint at /mcp for each server they need, using the OAuth sign-in offered by the client.
  • Individual access: Each person's permissions determine what the agent can read and change, so confirm which accounts and roles developers hold before they connect.
  • Scope of servers: The main Cloudflare API MCP server covers over 2,500 endpoints, so confirm whether the team needs all of it or only specific services.
  • Written rule: Record which MCP clients are approved and which Cloudflare servers they may use, even for a small team.
  • Automation exception: Scripts and CI jobs should not reuse personal sign-ins. They are covered in the token discussion elsewhere on this page.

Before starting, confirm which Cloudflare accounts the team uses, who holds the roles that determine write access, and whether a single written rule is enough for your risk tolerance.

Rollout order for connecting Cloudflare MCP servers in production

This sequence moves an organization from plan checks to a monitored pilot, so each Cloudflare MCP server connection has a documented permission set, sign-in method, portal policy and evidence trail before staff rely on it.

  1. Confirm the Cloudflare plan and portal availability

    The security or platform lead confirms which Cloudflare account type and plan the organization holds, and whether MCP server portals are available under its Cloudflare One (Access) subscription. Cloudflare documents portals as a Cloudflare One feature on the MCP server portals page, so a portal-based design depends on that entitlement. Ask the account team to confirm this in writing, including any feature limits that apply to the plan. Done when the team can name the plan, the account owner and whether portals are enabled.

  2. Define the permission set and account boundary

    The platform team lists the Cloudflare services the use case actually needs, such as application development, security or performance, and maps them to the servers that cover them. Cloudflare's docs say these servers can read account configuration and make suggested changes, so each server in scope needs a written justification. Record which account or accounts the connection may reach and which optional servers are left out. Done when the scope document names every server, service and account in use, and every excluded server has a reason.

  3. Pick OAuth or token per use case

    Assign interactive developer and assistant sessions to OAuth sign-in against the official Cloudflare API MCP server at its documented endpoint. Reserve bearer tokens for CI/CD or other automation, where Cloudflare says you create an API token with the permissions you need and pass it in the Authorization header. Confirm with the identity team that user tokens and account tokens are both in scope for the chosen token type. Done when each use case has one documented authentication method and an owner for token creation and rotation.

  4. Decide portal and login settings

    If the organization uses MCP server portals, the admin sets which MCP servers are added, how login is configured and whether manual OAuth credentials are needed for any server. The portal docs cover adding a server, connecting a private MCP server and customizing login settings, so review each of those settings against the scope from the earlier step. Confirm which identity provider governs sign-in and who may change portal policy. Done when the portal configuration matches the approved server list and the admin roles that may edit it are named.

  5. Pilot with a limited group

    Connect a small, named group of developers or operators, using the approved client and authentication method, and run representative read tasks before any change tasks. Cloudflare's securing guide describes OAuth 2.1 authorization with token validation and scope-based access control, so the pilot should confirm that scopes are enforced as expected and that suggested changes are reviewed by a person. Record any server or tool the pilot cannot restrict. Done when the pilot report lists the tested tasks, the outcome of each and the decisions taken on any issues.

  6. Verify token scope and logs

    The security team checks that each token or OAuth grant carries only the permissions in the approved scope, and tests that out-of-scope actions fail. Confirm where account audit events for the connection appear and whether they identify the client or token used. Ask Cloudflare which logs are available for MCP activity on the plan in use, since this page does not confirm log coverage. Done when the team can show a test token or grant being refused for an out-of-scope action and can trace a sample action to its audit record.

  7. Review the open-source code version in use

    The engineering lead confirms which build of the open-source Cloudflare API MCP server is deployed or referenced, and compares it with the code in the cloudflare/mcp repository, which is licensed under Apache-2.0. The README recommends OAuth as the first option, so any deployment that uses another path needs its own review. Record the commit or release in the configuration inventory and set a process to review updates before they reach production. Done when the inventory names the exact code version, its license and the person accountable for upgrades.

Evidence a security reviewer should request for the Cloudflare MCP setup

This table lists the records a reviewer should request for each control in a Cloudflare MCP setup and where each record lives, from the Cloudflare account, portal settings, the open-source repository and the identity provider. Use it to turn a rollout into a set of artifacts you can check before approving the connection. The main takeaway is that OAuth grants, API tokens and portal logins each leave separate records, so a review needs all of them, not just the policy document.

Evidence itemWhat to ask forWhere it comes from
OAuth client configuration and approved clientsList of MCP clients that completed OAuth sign-in to the Cloudflare API MCP server, with the account and user who approved each oneCloudflare account access records and the identity provider that signs staff in
Token inventory with permissions and ownersEvery account or user API token used for automation, its granted permissions, named owner, creation date and last rotation or revocationCloudflare dashboard API token list for each account, plus the CI/CD system that stores each token
Portal configuration and login settingsExport or screenshots of MCP server portal settings, including which servers are added, login method and any manual OAuth credentials configuredCloudflare One portal settings in the Access controls area
Scope-based access documentationWritten mapping of each server and tool category to the scopes or permissions it receives, and the reason each scope is neededVendor documentation for the servers in use, combined with the connection grants recorded in the Cloudflare account
Open-source code version and Apache-2.0 license recordThe commit or release tag of cloudflare/mcp used for any self-run instance, a copy of the license file and the date the version was reviewedThe cloudflare/mcp repository on GitHub and the internal build or deployment record
Change logs for connected serversRecord of added, removed or reconfigured servers, clients and tokens, with the approver and date for each changeCloudflare account audit logs, portal change history and the identity provider's sign-in and consent logs

Questions buyers ask before approving Cloudflare MCP servers

Should our organization use OAuth or API tokens for Cloudflare MCP servers?

For interactive use by staff, OAuth is the recommended path: the MCP client signs in through Cloudflare, and the open source repository's README also recommends OAuth as option 1. Cloudflare's docs also describe passing a Cloudflare API token as a bearer token in the Authorization header, which fits CI/CD or other automation where no person is signing in. Choose the token only when you can name the owner, scope it to the permissions the job needs, and rotate it under your own key management process. Confirm with Cloudflare which token type (user or account) suits your audit model, since both are supported as bearer tokens for the Cloudflare API MCP server.

Are MCP server portals included in every Cloudflare plan?

Cloudflare documents MCP server portals as a Cloudflare One (Access) feature, so the first thing to confirm is whether your current Cloudflare One contract includes it. Plan entitlements can differ by contract and change over time, so ask your Cloudflare account team for written confirmation of the feature set on your plan before you design around portals. Also ask whether the features you need, such as connecting a private MCP server or configuring manual OAuth credentials, are included in the same entitlement.

What drives the setup effort for connecting Cloudflare MCP servers?

The main drivers are the number of AI clients and staff groups, whether you connect the managed Cloudflare API MCP server only or several Cloudflare servers, and whether you need central control through portals. Effort also rises when you add private MCP servers, define which accounts and zones each person may reach, or build an approval process for token-based automation. Work goes down when identity provider sign-in, client allowlisting and permission choices are settled before rollout. Ask for a quote that lists each client type, each server, and each control you expect to enforce.

Can our internal team set up Cloudflare MCP servers without outside help?

Often yes for a small, single-team pilot, since the managed servers are reached at their Streamable HTTP endpoint and sign-in uses OAuth. The harder part is governance: deciding which permissions to grant at connection time, controlling which clients may connect, handling tokens for automation, and documenting evidence for your security or compliance reviewers. Teams with a clear owner, a written permission model and an audit process can often handle this in house. Teams without those, or with regulated data in scope, benefit from an outside review before wide rollout.

What should we bring to a scoping call about Cloudflare MCP servers?

Bring a list of the AI clients and coding agents staff use, the Cloudflare accounts and services in scope (application development, security, performance), and the decision you need to make, such as approving OAuth sign-in, allowing token-based automation, or adopting portals. Add your identity provider, your current Cloudflare One entitlement if you have it, any private MCP servers you plan to connect, and the compliance frameworks your reviewers apply. Note which actions must never run without approval, so the scope can cover testing of those limits. DeployOpen scopes work in writing before any engagement starts.

How does the open source Cloudflare MCP code relate to the managed server?

The repository github.com/cloudflare/mcp hosts the Cloudflare API MCP server under an Apache-2.0 license, and the Cloudflare docs link it as that server's source. Confirm with Cloudflare which version the managed endpoint runs and whether the open source build matches it, because a self-run copy is a separate deployment that you would need to secure, update and monitor yourself. Reviewing the code can help your engineers understand which tools exist, but it does not by itself show how the hosted service is operated, logged or secured.

What should we do about token-based automation for Cloudflare MCP?

Treat automation tokens as privileged credentials. Create a dedicated token for each pipeline with only the permissions that job needs, store it in your secrets manager, restrict its use to the intended pipeline, and set an owner and a rotation schedule. Where the same task can run through OAuth with a named user, prefer that for traceability. Ask Cloudflare to confirm how activity from a bearer token is attributed in account logs, since that determines how your reviewers can tell which automation made a change.

Where each claim on this page can be checked

Start with the Cloudflare docs page on Cloudflare's own MCP servers, which lists the managed remote servers, their Streamable HTTP endpoints at /mcp, and the OAuth sign-in flow that clients such as Claude use. Read it against the main Cloudflare API MCP server entry at ` and confirm the current endpoint list in the Cloudflare docs before you write it into a rollout standard. The same page describes the bearer token path for CI/CD and automation, which accepts both user tokens and account tokens. Treat that path as a separate approval decision, because it does not carry a person's OAuth session. For the open source side, the cloudflare/mcp repository on GitHub hosts the Cloudflare API MCP server under an Apache-2.0 license. Check the license file, the README's recommendation of OAuth as option 1, and the commit history on the revision you plan to run, since the hosted and self-run paths are not identical.

The Cloudflare docs page on securing MCP servers explains that the MCP specification uses OAuth 2.1 for authorization between clients and servers, and covers token validation and scope-based access control. Use it to frame your review questions: which scopes a client receives, how tokens are validated, and whether your security team accepts the spec's model for the clients you plan to allow. Then read the MCP server portals page in the Cloudflare One documentation, which covers adding an MCP server, connecting a private MCP server, customizing login settings and configuring manual OAuth credentials. Portal behavior depends on your Cloudflare One plan, identity provider and Access policies, so confirm each setting, including which users can reach which servers and how logins are configured, inside your own Cloudflare account before relying on it. Record the account, date and plan you tested, because vendor documentation changes.

How DeployOpen helps teams roll out Cloudflare MCP servers safely

DeployOpen plans and tests the way your organization connects staff and AI agents to Cloudflare's official MCP servers, from choosing OAuth or API tokens to setting up MCP server portals in Cloudflare One. Engagements are fixed-scope, with the scope, deliverables and timeline agreed in writing before work starts.

How we scope

  • We confirm which Cloudflare MCP servers staff need, including whether the main API server or other managed servers are in scope.
  • We document which accounts and zones the connection may reach, and which permissions each client or token would hold.
  • We agree in writing whether OAuth sign-in, API tokens for automation, or both apply, with the owner of each credential named.

How we build

  • We configure OAuth client access and, where automation needs it, scoped Cloudflare API tokens passed as bearer tokens, with least-privilege permissions.
  • We review the open source code at github.com/cloudflare/mcp against your version and approval process before it is deployed in your environment.
  • Where you use MCP server portals in Cloudflare One, we set up access policies, login settings and any private MCP server connections you require.

How we hand over

  • We test the setup for prompt injection, over-broad tool permissions, token exposure and unapproved clients, then deliver findings with fixes and a retest.
  • We deliver written documentation of the approved servers, sign-in paths, token ownership, portal policies and rotation steps for your security team.
  • We walk your engineering, IT and security reviewers through the evidence so they can check the configuration without relying on our word.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers when Cloudflare changes its servers or your scope grows.
  • We can re-review portal policies and token scopes on a schedule your team agrees in the retainer.
  • Confirm with Cloudflare and your own environment which server features and plan options apply to your account before scope is signed.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.