Remote MCP Server On Cloudflare Bny
This project demonstrates how to build a remote MCP server on Cloudflare Workers and implement the OAuth login function. It supports local development and debugging, connection testing through the MCP inspector, integration with the Claude desktop, and finally deployment to Cloudflare for remote invocation.
rating : 2 points
downloads : 17
What is Model Context Protocol (MCP)?
MCP is a protocol for communication and collaboration between models, allowing developers to call various AI tools and services through a unified interface.How to use the MCP server?
You can use the MCP server through local development, deployment to Cloudflare Workers, and integration with other AI tools.Applicable scenarios
The MCP server is suitable for scenarios that require cross - platform tool integration, real - time collaboration, and secure authentication.Main Features
OAuth AuthenticationSupports OAuth login to ensure the security of user authentication.
SSE Transport ProtocolAchieves efficient real - time communication through Server - Sent Events.
Key - Value StorageUtilizes Cloudflare KV to store sensitive data and configuration information.
Advantages and Limitations
Advantages
Simple deployment without complex infrastructure.
Supports multi - platform tool integration.
Strong security and performance guarantee.
Limitations
Initial configuration may require a certain technical background.
Some advanced features may depend on specific environment configurations.
How to Use
Clone the repository and install dependencies
Run the following commands to clone the project and install the necessary dependencies:
```bash
# Clone the repository
git clone git@github.com:cloudflare/ai.git
# Install dependencies
cd ai
npm install
```
Start the server locally
Run the local development server to test MCP functions:
```bash
npx nx dev remote - mcp - server
```
Connect the MCP client
Use the MCP Inspector or Claude Desktop to connect to your MCP server.
Usage Examples
Mathematical calculation exampleUse the MCP server for simple mathematical operations.
Random number generation exampleGenerate a random number and display the result.
Frequently Asked Questions
How to solve the problem of login failure?
Why can't I connect to the remote MCP server?
Related Resources
MCP Official Documentation
Complete documentation for the MCP protocol.
GitHub Repository
The open - source code repository for the MCP server.
Claude Desktop
A desktop application integrated with the MCP server.
Featured MCP Services

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
141
4.5 points

Duckduckgo MCP Server
Certified
The DuckDuckGo Search MCP Server provides web search and content scraping services for LLMs such as Claude.
Python
830
4.3 points

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
1.7K
5 points

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
87
4.3 points

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#
567
5 points

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
6.7K
4.5 points

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
754
4.8 points

Context7
Context7 MCP is a service that provides real-time, version-specific documentation and code examples for AI programming assistants. It is directly integrated into prompts through the Model Context Protocol to solve the problem of LLMs using outdated information.
TypeScript
5.2K
4.7 points