weyseing
MCP Serverweyseingpublic

cloudflare_remote_mcp

一个基于 Cloudflare 的远程 MCP 服务器实现。

Repository Info

0
Stars
0
Forks
0
Watchers
0
Issues
TypeScript
Language
-
License

About This Server

一个基于 Cloudflare 的远程 MCP 服务器实现。

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

References

  • Cloudflare Docs: https://developers.cloudflare.com/agents/guides/remote-mcp-server/
  • AI Playground (MCP): https://playground.ai.cloudflare.com/

Guide

Setup: -

  • Initialize package.json

    npm init -y

  • Start up container

    docker compose up -d

MCP Server Creation

  • Create from CF template
    • npm create cloudflare@latest -- mcp-server --template=cloudflare/ai/demos/remote-mcp-authless

    • If clone template failed, git clone cloudflare/ai repo below, then recreate

      git clone https://github.com/cloudflare/ai.git

  • Start dev server
    • cd mcp-server
    • Update to use wrangler dev --ip 0.0.0.0 IP in package.json
    • Port mapping 8787:8787 in docker-compose.yml
    • npm start OR wrangler dev --ip 0.0.0.0
    • Access via localhost:8787/sse

MCP Inspector

  • Start inspector

    npx @modelcontextprotocol/inspector@latest

Deploy CF Worker

  • 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

Connect via MCP Host/Client

  • Ensure mcp-remote is installed

    npm install mcp-remote

  • MCP server config
    {
      "mcpServers": {
        "CF Remote MCP": {
          "command": "mcp-remote",
          "args": [
            "https://<MCP_SERVER_URL>/sse"
          ]
        }
      }
    }
    

Quick Start

1

Clone the repository

git clone https://github.com/weyseing/cloudflare_remote_mcp
2

Install dependencies

cd cloudflare_remote_mcp
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownerweyseing
Repocloudflare_remote_mcp
LanguageTypeScript
License-
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation