- MCP server portals·续5
- Enable or disable a server inline
- Reauthenticate a server
- Authorize new servers
- View portal logs
- Known limitations
- Policy limitations
- Troubleshooting
- Portal creation fails because of a zone hold
- After authenticating to the portal, my user receives the error No allowed servers available, check your Zero Trust Policies.
- The portal URL does not prompt for authentication when it is added to an MCP client.
- The portal returns a 522 error.
- An MCP server is stuck in Waiting status.
- An MCP server shows Stale status.
- Tool calls fail with an unauthorized error.
- OAuth authentication fails with a redirect URI error when connecting to an upstream MCP server.
- Tool calls fail when Gateway routing is turned on.
- Users cannot connect from an MCP client
- The portal homepage shows the wrong name or domain.
- On this page
MCP server portals·续5
Enable or disable a server inline
You can also enable or disable a specific server directly from your MCP client without visiting the server selection page. For example:
Enable the wiki server.
Disable my Jira server.
The portal toggles the server and refreshes the active tool list immediately. The resulting list only includes tools and prompts allowed by the portal policy. A server can be enabled while exposing no tools or prompts if its allowlist is empty.
Reauthenticate a server
When an upstream MCP server token expires, the portal prompts you to reauthenticate from within your MCP client. Open the provided URL in your browser and complete the login to restore the session.
If your MCP client does not display the reauthentication prompt, use its authentication controls to remove the saved portal credentials. Then reconnect to the portal.
Authorize new servers
When an admin adds a new upstream MCP server to a portal, the portal automatically prompts connected users to authorize the new server. The portal batches admin changes and redirects you to the authorization flow once, rather than interrupting for each individual server update.
View portal logs
Portal logs allow you to monitor user activity through an MCP server portal. You can view logs on a per-portal or per-server basis.
- In the Cloudflare dashboard ↗︎, go to Zero Trust > Access controls > MCP Portals.
- Find the portal or server that you want to view logs for, then select the three dots > Edit.
- Select Logs.
Log fields
| Field | Description |
|---|---|
| Time | Date and time of the request |
| Status | Whether the server successfully returned a response |
| Server | Name of the MCP server that handled the request |
| Capability | The tool used to process the request |
| Duration | Processing time for the request in milliseconds |
Export logs with Logpush
Availability
Only available on Enterprise plans.
You can automatically export MCP portal logs to third-party storage destinations or security information and event management (SIEM) tools using Logpush. This allows you to integrate with your existing security workflows and retain logs for as long as your business requires.
To set up a Logpush job for MCP portal logs, refer to Logpush integration. For a list of available log fields, refer to MCP portal logs.
Known limitations
MCP server portals have the following known limitations:
- Only remote HTTP MCP servers are supported. MCP servers that use stdio transport only ↗︎ (for example,
github/github-mcp-server) do not expose a remote HTTP endpoint and cannot be added to an MCP server portal. To use a stdio-only server, you must self-host it behind an HTTP endpoint and authenticate with a bearer token or custom headers. - Some MCP servers block proxy-based clients. Certain MCP servers reject requests from proxy-based clients like MCP server portals, returning a
403error on the registration endpoint. These servers are not compatible with MCP server portals until those providers add Cloudflare as a supported MCP client. - Manual OAuth capabilities are captured during the first user authorization. Servers configured with manual OAuth credentials remain in Waiting status until a user completes upstream OAuth. Cloudflare stores the tools and prompts returned during that connection. Background and manual capability synchronization do not refresh them.
- Admin OAuth tokens can expire silently. The admin credential used to authenticate an MCP server is subject to the upstream provider's token expiration policy. When the token expires, the server status changes to Error or Sync Required and the server will not appear in the portal for end users. Admins are not notified when this happens. Periodically check the server status and reauthenticate servers that show an error.
- Each portal supports up to 80 MCP servers.
Policy limitations
MCP servers use a dedicated Access application type (mcp) that does not support the following Access policy features when the server is authorized through a portal.
- Independent MFA — Users will not be prompted to perform MFA through Cloudflare Access when authorizing a server, regardless of whether MFA global enforcement is enabled or whether an MFA policy is assigned to the server.
- Purpose justification — Users will not be prompted to provide a purpose justification when authorizing a server.
- Temporary authentication — Users will not be prompted to request access and approvers will not receive approval requests when a user authorizes a server.
These limitations only apply to servers that are being authorized through a portal. Access policy selectors such as Emails, Groups, Country, and Device Posture Checks will be enforced.
Independent MFA, purpose justification, and temporary authentication will be enforced for servers that are not authorized through a portal.
Troubleshooting
Portal creation fails because of a zone hold
Cloudflare creates a custom hostname for each portal custom domain. Portal creation fails when a zone hold that includes subdomains applies to this hostname.
Release the zone hold for the selected zone and each parent zone. Then create the portal again. A parent zone can belong to a different Cloudflare account.
After authenticating to the portal, my user receives the error No allowed servers available, check your Zero Trust Policies.
- An MCP portal and server must both have an attached Access policy. Ensure that all MCP servers assigned to the portal have their own associated policy.
- The server's admin authentication may be expired. Check that the server's status is Ready. If the status shows Error or Sync Required, reauthenticate the server.
The portal URL does not prompt for authentication when it is added to an MCP client.
- Verify that the portal has an assigned Access policy.
- Verify that the portal URL does not have any applied Workers, Page Rules, custom hostname definitions, or any other configuration that may interfere with its ability to connect to the MCP client.
The portal returns a 522 error.
A 522 error indicates that Cloudflare cannot reach the portal's origin. This typically means the DNS record for the portal hostname is missing or misconfigured.
- Verify that a CNAME record exists for your portal subdomain pointing to
gateway.agents.cloudflare.com. - Ensure the CNAME record has Proxy status turned on in Cloudflare DNS.
- If you created the portal using the API or the Terraform provider, you must create the DNS record separately. Unlike the dashboard, the API and Terraform provider do not auto-create DNS records.
An MCP server is stuck in Waiting status.
The Waiting status means Cloudflare is attempting to connect to the upstream MCP server and fetch its tools and prompts. If the server stays in this status:
- Verify that the upstream MCP server URL is correct and the server is reachable.
- Check that the upstream server supports Streamable HTTP ↗︎ or SSE transport. The portal will attempt multiple connection strategies automatically.
- If the server requires authentication, verify that the admin credentials are valid by reauthenticating the server.
- Select the three dots > Sync capabilities to manually retry the connection.
An MCP server shows Stale status.
A Stale status means the admin credential for the server could not be refreshed during the last synchronization attempt. The server's tools may still work for users who have their own OAuth tokens (servers with Require user auth turned on), but the admin credential needs to be refreshed.
To resolve this, reauthenticate the server with valid admin credentials.
Tool calls fail with an unauthorized error.
- If the server uses per-user OAuth (Require user auth is turned on), the user's OAuth token may have expired. Ask the user to reauthenticate the server from their MCP client.
- If the server uses admin credentials, check the server status. A status of Error or Sync Required indicates the admin credential needs to be refreshed.
- If the user recently changed permissions on the upstream service (for example, revoked OAuth scopes), they will need to reauthenticate.
OAuth authentication fails with a redirect URI error when connecting to an upstream MCP server.
Errors such as invalid_redirect_uri, invalid_client_metadata, or Redirect URI not allowed indicate that the upstream OAuth provider rejected a redirect URI that Cloudflare used to perform callback. Verify that you added the correct callback URL to the upstream OAuth provider's redirect URI allowlist. For more information, refer to Upstream OAuth callback URLs.
Contact the upstream MCP server vendor if you do not control the allowlist.
Tool calls fail when Gateway routing is turned on.
- Verify that the upstream MCP server supports Streamable HTTP transport. SSE transport is not supported through Gateway.
- If the upstream server URL ends in
/sse, the portal automatically attempts to connect using Streamable HTTP on a/mcppath instead. If the server does not support this, the connection will fail. - Check Gateway HTTP logs for DLP block events. If a DLP policy is blocking the traffic, the portal returns an error to the MCP client with the DLP rule ID.
Users cannot connect from an MCP client
- Verify that the client supports Streamable HTTP and OAuth discovery.
- Configure the portal URL as a remote HTTP server.
- If authentication fails repeatedly, use the client authentication controls to remove the saved portal credentials and reconnect.
The portal homepage shows the wrong name or domain.
The portal homepage displays your Access organization name and branding. If the displayed name is incorrect:
- In the Cloudflare dashboard ↗︎, go to Zero Trust > Settings > General > Team name.
- Update your team name. The change will take effect the next time a user visits the portal homepage.
Was this helpful?
YesNo
On this page
{"@context":"https://schema.org","@type":"TechArticle","@id":"https://developers.cloudflare.com/cloudflare-one/access-controls/ai-controls/mcp-portals/#page","headline":"MCP server portals","description":"MCP server portals in Access.","url":"https://developers.cloudflare.com/cloudflare-one/access-controls/ai-controls/mcp-portals/","inLanguage":"en","image":"https://developers.cloudflare.com/cloudflare-one/access-controls/ai-controls/mcp-portals/og.png?v=0b257854e7de7b3f","dateModified":"2026-10-26","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"},"keywords":["MCP"]}
description: Connect to Cloudflare's managed remote MCP servers to read configurations, manage services, and automate actions across your account. title: Cloudflare's own MCP servers image: https://developers.cloudflare.com/agents/model-context-protocol/cloudflare/servers-for-cloudflare/og.png?v=2698c333db6912a5
Documentation Index
Fetch the complete documentation index at: https://developers.cloudflare.com/agents/llms.txt
Use this file to discover all available pages before exploring further.
Docs