Command Palette

Search for a command to run...

Назад к скиллам
скилл № 07756

cloudflare-mcp-portal

Maintain a personal Cloudflare Zero Trust MCP server portal (one OAuth-protected endpoint that aggregates remote MCP servers). Use when adding, removing, or…

БесплатноБез исполняемых скриптов
atusyот atusy★ 26 звёзд на GitHub

Установить cloudflare-mcp-portal в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Cloudflare MCP server portal

An MCP server portal (Cloudflare Zero Trust → Access controls → MCP Portals) exposes many remote MCP servers behind one URL, https://<subdomain>.<domain>/mcp, guarded by Cloudflare Access.

It works on the Zero Trust Free plan (up to 50 seats, logs kept up to 24h). Only Logpush export of portal logs is Enterprise-only.

MCP client ──OAuth (managed by Access)──▶ portal <subdomain>.<domain>/mcp
                                           │ Access policy (e.g. email == me)
                                           ├─▶ upstream server A (none / bearer / OAuth)
                                           └─▶ upstream server B

Discover the current setup first

Never hard-code account-specific values. Look them up at runtime instead:

Value Where to find it
Portal URL and the client-side server name claude mcp list / claude mcp get <name>; look for the entry whose URL ends in /mcp on the user's own domain. If no such entry exists (e.g. a fresh machine; user-scope MCP config is not in the dotfiles), log in to the dashboard and read the URL column of the MCP Portals list.
Account ID After login, https://dash.cloudflare.com/ redirects to /<account-id>/...
Team domain (<team>.cloudflareaccess.com) Zero Trust → Settings → Team domain
Upstream servers Call the portal tool portal_list_servers, or open dashboard → MCP Portals → MCP servers tab.
Access policy Portal edit page → Access policies

The dashboard can be in the user's locale (e.g. Japanese). Match controls by role and position as well as by text.

Dashboard paths

The prefix is https://dash.cloudflare.com/<account-id>/one:

  • /access-controls/ai-controls/mcp-server: list of upstream servers. Add a server at /mcp-server/add.
  • /access-controls/ai-controls/mcp-server-portal: list of portals. Edit one at /mcp-server-portal/edit/<portal-id>.
  • /integrations/identity-providers: identity providers (IdPs). Each IdP has a Test link at https://<team>.cloudflareaccess.com/cdn-cgi/access/test-idp/<id>.
  • /settings: team name and plan.

Procedures

Add an upstream MCP server

  1. On the MCP servers tab, select Add MCP server. Enter:
    • Name
    • Server ID: short and lowercase. It becomes the tool prefix, e.g. <id>_<tool>.
    • HTTP URL: prefer the URL ending in /mcp, which forces Streamable HTTP.
  2. Pick the authentication type:
    • None: public servers.
    • Custom headers: a static Authorization: Bearer …. Ask the user to type the secret into the form themselves (see Secrets below).
    • OAuth / Automatic (DCR): use this when the provider supports dynamic client registration. If the provider restricts redirect URIs, allowlist the dashboard callback https://dash.cloudflare.com/<account-id>/one/access-controls/ai-controls/mcp-server/oauth-callback/<server-id>.
    • OAuth / Manual credentials: use this for providers without DCR, such as GitHub. Register https://oauth-callbacks.cloudflareaccess.com/cdn-cgi/access/outbound-oauth-callback at the provider.
  3. Attach an Access policy. You can reuse the portal's policy via the Add existing policy combobox.
  4. Select Save and connect server. The status should become Ready, and the tool and prompt counts should be non-zero.
  5. Open the portal edit page. In the Servers section, select Select existing server, tick the server, confirm, then select Save portal.

A policy on an upstream server only hides it from the portal. A blocked user can still reach a public upstream server directly through its own URL.

Connect a client

  • Claude Code: run claude mcp add --transport http --scope user <name> https://<subdomain>.<domain>/mcp. Then open /mcp, choose Authenticate, and log in through Access in the browser. Tools appear as mcp__<name>__<server-id>_<tool>, and only in sessions started after authentication. localhost and loopback redirects are allowed by default.
  • claude.ai / Claude Desktop: on the portal edit page, open the Advanced settings tab. Under Managed OAuth → Allowed redirect URIs, add https://claude.ai/api/mcp/auth_callback and save. Then add a custom connector with the portal URL. The overview tab shows these settings read-only, so edit them in the Advanced settings tab.

Token lifetimes (Advanced settings → Managed OAuth)

For CLI and agent use, Cloudflare recommends:

  • Access token lifetime: 5–15 min
  • Grant session duration: 1–2 weeks

Access re-checks policies each time it refreshes the access token, so a short token lifetime still costs few re-logins.

Change who can access the portal

Edit the policy at Access controls → Policies, or on the portal edit page. Policies deny by default. An "Emails" include rule with the user's IdP email is enough for personal use. Find the email that Access sees by running the IdP Test link.

Verify

curl -sS -i -X POST https
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл cloudflare-mcp-portal?

Maintain a personal Cloudflare Zero Trust MCP server portal (one OAuth-protected endpoint that aggregates remote MCP servers). Use when adding, removing, or re-authorizing an upstream MCP server, changing who can access the portal, connecting a new MCP client (Claude Code, claude.ai, Desktop), tuning token lifetimes, or debugging portal connection/auth errors. Drives the Cloudflare dashboard through the browse MCP.

Как установить скилл cloudflare-mcp-portal?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл cloudflare-mcp-portal запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить cloudflare-mcp-portal с