Remote MCP Server
by irvinebroque
This project sets up a remote MCP (Model Context Protocol) server on Cloudflare Workers with OAuth login. It allows you to connect to the server locally or remotely using the MCP Inspector or Claude Desktop.
Last updated: N/A
What is Remote MCP Server?
This is a remote MCP server implementation designed to run on Cloudflare Workers. It enables communication between applications (like Claude) and tools using the Model Context Protocol.
How to use Remote MCP Server?
To use this server, you first need to deploy it to Cloudflare Workers. Then, you can connect to it using the MCP Inspector or configure Claude Desktop to use it by updating the configuration file with the server's URL. The README provides detailed instructions for local development, deployment, and connection.
Key features of Remote MCP Server
Remote MCP server hosted on Cloudflare Workers
OAuth login for secure access
Integration with MCP Inspector for testing and exploration
Compatibility with Claude Desktop for AI tool interaction
Use cases of Remote MCP Server
Enabling Claude to use external tools
Providing a remote MCP server for AI applications
Testing and developing MCP-compatible tools
Integrating AI models with external services
FAQ from Remote MCP Server
How do I connect the MCP inspector to my server?
How do I connect the MCP inspector to my server?
Start the inspector with npx @modelcontextprotocol/inspector
. Switch the Transport Type to SSE
and enter your server's URL (e.g., http://localhost:8787/sse
or worker-name.account-name.workers.dev/sse
) as the URL of the MCP server to connect to, and click 'Connect'.
How do I connect Claude Desktop to my server?
How do I connect Claude Desktop to my server?
Follow Anthropic's Quickstart and update the Claude configuration file to point to your server's URL. Restart Claude after updating the configuration.
How do I deploy the server to Cloudflare?
How do I deploy the server to Cloudflare?
Create a Cloudflare KV namespace, add the namespace ID to wrangler.jsonc
, and run npm run deploy
.
What do I do if something goes wrong?
What do I do if something goes wrong?
Try restarting Claude, or connect directly to your MCP server on the command line with npx mcp-remote http://localhost:8787/sse
. In some cases, clearing the files added to ~/.mcp-auth
may help.
What is MCP?
What is MCP?
MCP stands for Model Context Protocol. It is a protocol for communication between applications and tools, often used in the context of AI and large language models.