Remote MCP Server on Cloudflare
About
# Remote MCP Server on Cloudflare Let's get a remote MCP server up-and-running on Cloudflare Workers complete with OAuth login! ## Develop locally ```bash # clone the repository git clone [email protected]:cloudflare/ai.git # install dependencies cd ai npm install # run locally npx nx dev remote-mcp-server ``` You should…
Explore
- Run MCP server locally and deploy to Cloudflare Workers.
- OAuth login for authenticated access.
- Connect via MCP Inspector for testing.
- Integrate with Claude Desktop using the mcp-remote proxy.
- Uses SSE (Server-Sent Events) transport.
- Minimal configuration with a single wrangler.jsonc file.
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Remote MCP Server on CloudflareCommand (node, npx, python, etc.)Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
cd ai
npm install
1. npx wrangler@latest kv namespace create remote-mcp-server-oauth-kv
2. Follow the guidance to add the kv namespace ID to wrangler.jsonc
3. npm run deploy
Just like you did above in "Develop locally", run the MCP inspector:
npx @modelcontextprotocol/inspector@latest
Then enter the workers.dev URL (ex: worker-name.account-name.workers.dev/sse) of your Worker in the inspector as the URL of the MCP server to connect to, and click "Connect".
You've now connected to your MCP server from a remote MCP client.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"remote mcp server on cloudflare": {
"remote-mcp-server-d2w": {
"command": "npx",
"args": [
"nx",
"dev",
"remote-mcp-server"
]
}
}
}
}
McpServers
{
"remote-mcp-server-d2w": {
"command": "npx",
"args": [
"nx",
"dev",
"remote-mcp-server"
]
}
}
Let's get a remote MCP server up-and-running on Cloudflare Workers complete with OAuth login!
Develop locally
```bash
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.



