
cloudflare_remote_mcp
一个基于 Cloudflare 的远程 MCP 服务器实现。
Repository Info
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.0IP in package.json - Port mapping
8787:8787in docker-compose.yml npm startORwrangler dev --ip 0.0.0.0- Access via
localhost:8787/sse
- cd
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>
- API's permission template:
- Deploy worker to CF
npm run deployORnpx wrangler deploy
Connect via MCP Host/Client
- Ensure
mcp-remoteis installednpm install mcp-remote
- MCP server config
{ "mcpServers": { "CF Remote MCP": { "command": "mcp-remote", "args": [ "https://<MCP_SERVER_URL>/sse" ] } } }
Quick Start
Clone the repository
git clone https://github.com/weyseing/cloudflare_remote_mcpInstall dependencies
cd cloudflare_remote_mcp
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.