Set up and connect remote MCP servers on Cloudflare Workers with OAuth support and Claude integration
The Remote MCP Server is an advanced infrastructure designed to facilitate seamless integration between various AI applications and tools through the Model Context Protocol (MCP). By deploying this server, users can enable specific AI applications like Claude Desktop, Continue, Cursor, and more to connect to a wide range of data sources and external tools. This integration leverages a standardized protocol that ensures compatibility and interoperability, making it easier for developers and end-users alike to leverage powerful AI capabilities.
The Remote MCP Server offers comprehensive features essential for modern AI application development:
The Remote MCP Server is built around a robust architecture that conforms to the Model Context Protocol (MCP), ensuring consistent performance across different applications. The architecture includes multiple layers:
To begin working with the Remote MCP Server, follow these steps:
git clone [email protected]:cloudflare/ai.git
cd ai
npm install
npx nx dev remote-mcp-server
After deployment, you can access the server at http://localhost:8787/
.
This MCP Server can be applied to various AI workflows:
For example, let’s consider a scenario where an AI application needs to integrate with various financial APIs to provide real-time market insights. By deploying the Remote MCP Server and configuring appropriate connections, developers can seamlessly connect their applications to these APIs without any custom coding.
The Remote MCP Server is compatible with multiple MCP clients, including:
{
"mcpServers": {
"math": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:8787/sse"
]
}
}
}
The following table outlines the compatibility matrix for different MCP clients:
MCP Client | Resources | Tools | Prompts |
---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ |
Continue | ✅ | ✅ | ✅ |
Cursor | ❌ (tools only) | ✅ | ❌ |
To ensure optimal performance and security, consider the following advanced configuration options:
Q: Can I deploy this server on a different cloud provider besides Cloudflare?
Q: How do I secure user data during the OAuth authentication process?
Q: Is there a limit to the number of MCP clients that can connect simultaneously?
Q: Can I customize the protocols used for data exchange?
Q: How do I troubleshoot connection issues?
Contributions are welcome! To get started:
To stay updated, visit the official Model Context Protocol website:
graph TD
A[AI Application] -->|MCP Client| B[MCP Protocol]
B --> C[MCP Server]
C --> D[Data Source/Tool]
style A fill:#e1f5fe
style C fill:#f3e5f5
style D fill:#e8f5e8
MCP Client | Resources | Tools | Prompts | Status |
---|---|---|---|---|
Claude Desktop | ✅ | ✅ | ✅ | Full Support |
Continue | ✅ | ✅ | ✅ | Full Support |
Cursor | ❌ (tools only) | ✅ | ❌ | Limited |
{
"mcpServers": {
"[server-name]": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-[name]"],
"env": {
"API_KEY": "your-api-key"
}
}
}
}
This comprehensive documentation outlines the setup, configuration, and integration of the Remote MCP Server. With its robust features and compatibility with multiple AI applications, it is a valuable tool for developers looking to enhance their AI workflows through standardized protocol integration.
Explore community contributions to MCP including clients, servers, and projects for seamless integration
Learn to connect to MCP servers over HTTP with Python SDK using SSE for efficient protocol communication
Python MCP client for testing servers avoid message limits and customize with API key
Next-generation MCP server enhances documentation analysis with AI-powered neural processing and multi-language support
Powerful GitLab MCP Server enables AI integration for project management, issues, files, and collaboration automation
SingleStore MCP Server for database querying schema description ER diagram generation SSL support and TypeScript safety