Remote MCP Server on Cloudflare
Overview
Remote MCP Server on Cloudflare is a server setup that allows users to run a Model Context Protocol (MCP) server on Cloudflare Workers, enabling remote access and interaction with various tools through OAuth login.
To use the Remote MCP Server, clone the repository, install dependencies, and run the server locally. You can then connect to the MCP Inspector or Claude Desktop to interact with the server.
- Easy setup on Cloudflare Workers - OAuth login for secure access - Integration with MCP Inspector for exploring APIs - Compatibility with Claude Desktop for enhanced functionality
- Running a remote MCP server for tool interaction.
- Connecting various clients like Claude Desktop to the MCP server.
- Debugging and testing MCP APIs using the MCP Inspector.
Add to your AI client
Use these steps to connect Remote MCP Server on Cloudflare in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.
Cursor
Add this to your .cursor/mcp.json file in your project root, then restart Cursor.
.cursor/mcp.json
{
"mcpServers": {
"remote-mcp-server-f-irvinebroque": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-remote-mcp-server-f-irvinebroque"
]
}
}
}Claude Desktop
Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.
~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
{
"mcpServers": {
"remote-mcp-server-f-irvinebroque": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-remote-mcp-server-f-irvinebroque"
]
}
}
}Claude Code
Add this to your project's .mcp.json file. Claude Code will detect it automatically.
.mcp.json (project root)
{
"mcpServers": {
"remote-mcp-server-f-irvinebroque": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-remote-mcp-server-f-irvinebroque"
]
}
}
}VS Code (Copilot)
Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.
.vscode/mcp.json
{
"servers": {
"remote-mcp-server-f-irvinebroque": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-remote-mcp-server-f-irvinebroque"
]
}
}
}Windsurf
Add this to your Windsurf MCP config file, then restart Windsurf.
~/.codeium/windsurf/mcp_config.json
{
"mcpServers": {
"remote-mcp-server-f-irvinebroque": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-remote-mcp-server-f-irvinebroque"
]
}
}
}Cline
Open Cline settings, navigate to MCP Servers, and add this server configuration.
Cline MCP Settings (via UI)
{
"mcpServers": {
"remote-mcp-server-f-irvinebroque": {
"command": "npx",
"args": [
"-y",
"@modelcontextprotocol/server-remote-mcp-server-f-irvinebroque"
]
}
}
}FAQ
Can I run the MCP server without Cloudflare?
No, this setup is specifically designed to run on Cloudflare Workers.
Is there a cost associated with using Cloudflare Workers?
Cloudflare Workers has a free tier, but usage beyond that may incur costs.
What if I encounter issues while connecting?
Restarting the server or checking the configuration files can help resolve common issues.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":3808,"uuid":"187dff05-0506-4ed2-877a-fa8d7ff6d6a7","name":"remote-mcp-server-f","title":"Remote MCP Server on Cloudflare","description":"","avatar_url":"https://avatars.githubusercontent.com/u/1221592?v=4","created_at":"2025-03-21T18:44:02.768Z","updated_at":"2025-03-21T18:58:19.841Z","status":"created","author_name":"irvinebroque","author_avatar_url":"https://avatars.githubusercontent.com/u/1221592?v=4","tags":"remote-mcp-server,cloudflare,mcp-inspector","category":"cloud-platforms","is_featured":false,"sort":1,"url":"https://github.com/irvinebroque/remote-mcp-server-f","target":"_self","content":"$29","summary":"$2a","img_url":"https://github.com/irvinebroque/remote-mcp-server-f/raw/main/img/mcp-inspector-sse-config.png","type":null,"metadata":"{\"star\":\"0\",\"license\":\"\",\"language\":\"TypeScript\",\"is_official\":false,\"latest_commit_time\":\"2025-03-21 16:58:18\"}","user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]