Remote MCP Server on Cloudflare
by Mechanicalgoat
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 deploy it to Cloudflare for remote access.
Last updated: N/A
What is Remote MCP Server on Cloudflare?
This is a remote MCP server implementation designed to run on Cloudflare Workers. It provides a platform for exposing tools and functionalities to AI models like Claude, using the Model Context Protocol.
How to use Remote MCP Server on Cloudflare?
To use this server, you can first develop it locally using the provided instructions, which involve cloning the repository, installing dependencies, and running the server. Then, you can connect to it using the MCP Inspector or Claude Desktop. Finally, you can deploy it to Cloudflare by creating a KV namespace and running the deploy command.
Key features of Remote MCP Server on Cloudflare
Remote MCP server
Cloudflare Workers deployment
OAuth login
Local development environment
Integration with MCP Inspector and Claude Desktop
Use cases of Remote MCP Server on Cloudflare
Exposing tools to AI models
Connecting Claude to custom functionalities
Building AI-powered applications
Creating serverless AI tools
Testing and deploying MCP servers
FAQ from Remote MCP Server on Cloudflare
How do I connect to the server locally?
How do I connect to the server locally?
Use the MCP Inspector or configure Claude Desktop to point to http://localhost:8787/sse
.
How do I deploy the server to Cloudflare?
How do I deploy the server to Cloudflare?
Create a KV namespace, add the namespace ID to wrangler.jsonc
, and run npm run deploy
.
How do I connect to the deployed server?
How do I connect to the deployed server?
Use the MCP Inspector or configure Claude Desktop to point to your workers.dev
URL (e.g., worker-name.account-name.workers.dev/sse
).
What if I encounter issues?
What if I encounter issues?
Try restarting Claude, connecting directly to the MCP server on the command line with npx mcp-remote http://localhost:8787/sse
, or clearing the files in ~/.mcp-auth
.
What is MCP?
What is MCP?
MCP stands for Model Context Protocol, a protocol that allows AI models to interact with external tools and services.