1. Conduid
  2. Cloud
  3. Cloudflare Remote MCP Auth
MCP server · Cloud

Cloudflare Remote MCP Auth

Unclaimed cloud
30Low

Scored 6 months ago · breakdown

About Cloudflare Remote MCP Auth

Cloudflare Remote MCP Auth is an MCP server in the Cloud category.

Install

From source
git clone https://github.com/weyseing/cloudflare_remote_mcp_auth

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Cloudflare Remote MCP Auth

Powered by Claude · Grounded in docs

I know everything about Cloudflare Remote MCP Auth. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

References

Guide

Setup

  • Initialize package.json

    npm init -y

  • Start up container

    docker compose up -d

Create MCP Server

  • Create using Cloudflare template

    npm create cloudflare@latest -- mcp-server-auth --template=cloudflare/ai/demos/remote-mcp-github-oauth

Setup Bindings

  • Durable Object in wrangler.jsonc

    • A tiny “session keeper” for your MCP server’s OAuth process. Each object stores the ongoing login steps (like codes or counters) at the edge so no data gets lost while users authorize.
    "durable_objects": {
        "bindings": [
            {
                "class_name": "MyMCP", // TS class from index.ts
                "name": "MCP_OBJECT"   // env binding
            }
        ]
    },
    
  • Worker AI in wrangler.jsonc

    • An on‑edge “AI helper” named env.AI. During OAuth you can ask it to analyze requests, craft messages, or summarize user consent—using GPU‑powered AI right next to your auth code.
    "ai": {
        "binding": "AI"
    },
    
  • KV Namspace in wrangler.jsonc

    • A “shared token jar” called OAUTH_KV that every edge server can use. You put OAuth tokens or consent flags in it, and any server can later grab them.
    • TO DO: Must create KV Namespace & update ID below.
    "kv_namespaces": [
        {
            "binding": "OAUTH_KV",
            "id": "<YOUR_KV_NAMESPACE_ID>"
        }
    ],
    

MCP Inspector

  • Run inspector

    npx @modelcontextprotocol/inspector

Deploy CF Worker (Part 1)

  • Set CF account ID to wrangler.jsonc

    "account_id": "95437c835139b228336df1913750ad6e"

  • Set CF API key in env
    • API's permission template: Edit Cloudflare Workers
    • ENV: CLOUDFLARE_API_TOKEN=<API-KEY-HERE>
  • Deploy worker to CF
    • npm run deploy OR npx wrangler deploy

Create Github OAuth App

  • Go to Github -> Settings -> Developers Settings -> OAuth Apps
  • Create for local
    • Application name: mcp-server-auth-dev
    • Homepage URL: http://localhost:8787
    • Authorization callback URL: http://localhost:8787/callback
  • Create for production
    • TO DO: Update CLOUDFLARE_WORKER_URL below
      • Application name: mcp-server-auth-prod
      • Homepage URL: <CLOUDFLARE_WORKER_URL>
      • Authorization callback URL: <CLOUDFLARE_WORKER_URL>/callback

Run Local Dev Server

  • Set secret variable
    • Create .dev.vars file
    • TO DO: Update GITLAB_OAUTH_CLIENT_ID & GITLAB_OAUTH_CLIENT_SECRET below
    GITHUB_CLIENT_ID="<GITLAB_OAUTH_CLIENT_ID>"
    GITHUB_CLIENT_SECRET="<GITLAB_OAUTH_CLIENT_SECRET>"
    COOKIE_ENCRYPTION_KEY="<RANDOM_STRING>"
    
  • Update to use wrangler dev --ip 0.0.0.0 --port 8787 IP in package.json
  • Port mapping 8787:8787 in docker-compose.yml
  • npm start OR wrangler dev --ip 0.0.0.0 --port 8787
  • Ready to test via MCP Inspector

Deploy CF Worker (Part 2)

  • Set secret variable
    • TO DO: Update GITLAB_OAUTH_CLIENT_ID & GITLAB_OAUTH_CLIENT_SECRET below
    npx wrangler secret put GITHUB_CLIENT_ID
    npx wrangler secret put GITHUB_CLIENT_SECRET
    npx wrangler secret put COOKIE_ENCRYPTION_KEY
    
  • Ready to test via MCP Inspector

Troubleshooting

Authorization error: Error: Token exchange failed: HTTP 401

  • Problem: When mcp-remote https://<CLOUDFLARE_WORKER_URL>/sse, get token exchange error after authorize.
  • Solution: Remove cached OAuth state

    Remove-Item -Recurse -Force $HOME\.mcp-auth\

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Cloudflare Remote MCP Auth

How do I install Cloudflare Remote MCP Auth?

No package has been published for this server, so install it from source: clone the repository and follow its README.

Is Cloudflare Remote MCP Auth safe to use with an AI agent?

Its trust score is 30 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Cloudflare Remote MCP Auth still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.