Remote MCP Server On Cloudflare A2w
R

Remote MCP Server On Cloudflare A2w

This project demonstrates how to set up a remote MCP server on Cloudflare Workers, including OAuth login functionality, supporting local development and debugging, and enabling connection and use via MCP Inspector or Claude desktop client.
2 points
6.7K

What is Remote MCP Server?

The Remote MCP Server is a cloud implementation of the Model Context Protocol that allows AI applications to discover and use specialized tools. It runs on Cloudflare's edge network for low-latency access worldwide.

How does it work?

The server exposes tools via SSE (Server-Sent Events) endpoints that AI assistants like Claude can connect to. It handles authentication via OAuth and manages tool discovery/execution.

Use Cases

Ideal for: 1) Extending AI capabilities with custom tools 2) Building tool ecosystems for AI assistants 3) Secure cloud deployment of AI tools

Key Features

Cloudflare Edge Deployment
Runs globally on Cloudflare's network for fast access from anywhere
OAuth Authentication
Secure login system to protect your tools
Tool Discovery
AI applications can automatically find available tools
SSE Protocol Support
Uses Server-Sent Events for real-time communication
Advantages
Global low-latency access via Cloudflare
Secure authentication with OAuth
Easy integration with Claude and other AI assistants
Scalable serverless architecture
Limitations
Requires Cloudflare account for deployment
SSE protocol may need proxy for some clients
Limited to JavaScript tool implementations

Getting Started

Local Development
Set up the server locally for testing
Connect MCP Inspector
Test your server using the MCP Inspector tool
Connect Claude Desktop
Configure Claude to use your MCP server
Cloud Deployment
Deploy to Cloudflare Workers for production use

Example Use Cases

Math Calculations
Claude uses the MCP server's math tools to perform calculations
Custom Tool Integration
Developers can add their own tools to extend Claude's capabilities

Frequently Asked Questions

Why do I need OAuth authentication?
Can I use this with other AI assistants besides Claude?
How do I debug connection issues?

Additional Resources

MCP Protocol Documentation
Official Model Context Protocol specifications
Cloudflare Workers Docs
Cloudflare Workers platform documentation
GitHub Repository
Source code for this implementation

Installation

Copy the following command to your Client for configuration
{
  "mcpServers": {
    "math": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "http://localhost:8787/sse"
      ]
    }
  }
}

{
  "mcpServers": {
    "math": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "https://worker-name.account-name.workers.dev/sse"
      ]
    }
  }
}
Note: Your key is sensitive information, do not share it with anyone.

Alternatives

A
Acemcp
Acemcp is an MCP server for codebase indexing and semantic search, supporting automatic incremental indexing, multi-encoding file processing, .gitignore integration, and a Web management interface, helping developers quickly search for and understand code context.
Python
8.7K
5 points
B
Blueprint MCP
Blueprint MCP is a chart generation tool based on the Arcade ecosystem. It uses technologies such as Nano Banana Pro to automatically generate visual charts such as architecture diagrams and flowcharts by analyzing codebases and system architectures, helping developers understand complex systems.
Python
7.7K
4 points
M
MCP Agent Mail
MCP Agent Mail is a mail - based coordination layer designed for AI programming agents, providing identity management, message sending and receiving, file reservation, and search functions, supporting asynchronous collaboration and conflict avoidance among multiple agents.
Python
8.4K
5 points
K
Klavis
Klavis AI is an open-source project that provides a simple and easy-to-use MCP (Model Context Protocol) service on Slack, Discord, and Web platforms. It includes various functions such as report generation, YouTube tools, and document conversion, supporting non-technical users and developers to use AI workflows.
TypeScript
12.7K
5 points
M
MCP
The Microsoft official MCP server provides search and access functions for the latest Microsoft technical documentation for AI assistants
12.8K
5 points
A
Aderyn
Aderyn is an open - source Solidity smart contract static analysis tool written in Rust, which helps developers and security researchers discover vulnerabilities in Solidity code. It supports Foundry and Hardhat projects, can generate reports in multiple formats, and provides a VSCode extension.
Rust
10.6K
5 points
D
Devtools Debugger MCP
The Node.js Debugger MCP server provides complete debugging capabilities based on the Chrome DevTools protocol, including breakpoint setting, stepping execution, variable inspection, and expression evaluation.
TypeScript
9.9K
4 points
S
Scrapling
Scrapling is an adaptive web scraping library that can automatically learn website changes and re - locate elements. It supports multiple scraping methods and AI integration, providing high - performance parsing and a developer - friendly experience.
Python
11.6K
5 points
N
Notion Api MCP
Certified
A Python-based MCP Server that provides advanced to-do list management and content organization functions through the Notion API, enabling seamless integration between AI models and Notion.
Python
17.5K
4.5 points
D
Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
54.2K
4.3 points
M
Markdownify MCP
Markdownify is a multi-functional file conversion service that supports converting multiple formats such as PDFs, images, audio, and web page content into Markdown format.
TypeScript
27.2K
5 points
G
Gitlab MCP Server
Certified
The GitLab MCP server is a project based on the Model Context Protocol that provides a comprehensive toolset for interacting with GitLab accounts, including code review, merge request management, CI/CD configuration, and other functions.
TypeScript
19.3K
4.3 points
U
Unity
Certified
UnityMCP is a Unity editor plugin that implements the Model Context Protocol (MCP), providing seamless integration between Unity and AI assistants, including real - time state monitoring, remote command execution, and log functions.
C#
24.0K
5 points
F
Figma Context MCP
Framelink Figma MCP Server is a server that provides access to Figma design data for AI programming tools (such as Cursor). By simplifying the Figma API response, it helps AI more accurately achieve one - click conversion from design to code.
TypeScript
51.8K
4.5 points
G
Gmail MCP Server
A Gmail automatic authentication MCP server designed for Claude Desktop, supporting Gmail management through natural language interaction, including complete functions such as sending emails, label management, and batch operations.
TypeScript
18.1K
4.5 points
M
Minimax MCP Server
The MiniMax Model Context Protocol (MCP) is an official server that supports interaction with powerful text-to-speech, video/image generation APIs, and is suitable for various client tools such as Claude Desktop and Cursor.
Python
35.2K
4.8 points
AIBase
Zhiqi Future, Your AI Solution Think Tank
© 2025AIBase