Skip to content

AccessMcpPortal

Source: src/Cloudflare/Access/McpPortal.ts

A Cloudflare Zero Trust AI Controls MCP portal — a hosted gateway that aggregates MCP servers behind a single Access-protected hostname so administrators can govern which AI tools and prompts are exposed to users.

The product surface is in beta and requires the AI Controls entitlement; accounts without it receive the typed Forbidden error on all writes. Attaching servers to the portal is managed out of band (a future Cloudflare.Access.McpServer resource).

Minimal portal

const portal = yield* Cloudflare.AccessMcpPortal("AiPortal", {
hostname: "mcp.example.com",
});

Portal with gateway egress

const portal = yield* Cloudflare.AccessMcpPortal("AiPortal", {
hostname: "mcp.example.com",
description: "Company-approved AI tools",
secureWebGateway: true,
});