Remote MCP Server
by MFLS2023
This project provides a remote MCP (Model Context Protocol) server that can be deployed on Cloudflare Workers. It includes OAuth login and allows integration with tools like the MCP Inspector and Claude Desktop.
Last updated: N/A
What is Remote MCP Server?
This is a remote MCP server implementation designed to run on Cloudflare Workers, enabling you to expose AI tools and functionalities through the Model Context Protocol. It supports OAuth authentication to secure access to the server.
How to use Remote MCP Server?
To use this server, you can develop it locally using npm install
and npx nx dev remote-mcp-server
. Then, deploy it to Cloudflare following the provided steps involving wrangler kv namespace create
and npm run deploy
. Finally, configure your MCP client (like the MCP Inspector or Claude Desktop) to connect to the deployed server's URL.
Key features of Remote MCP Server
Remote MCP server
Cloudflare Workers deployment
OAuth authentication
Integration with MCP Inspector
Integration with Claude Desktop
SSE Transport
Use cases of Remote MCP Server
Exposing AI tools to Claude
Providing remote access to MCP services
Building serverless AI applications
Integrating AI models with external applications
Creating a secure MCP endpoint
FAQ from Remote MCP Server
How do I connect the MCP Inspector?
How do I connect the MCP Inspector?
Start the inspector and configure the Transport Type to SSE, then enter the server's URL (e.g., http://localhost:8787/sse
) and click Connect.
How do I connect Claude Desktop?
How do I connect Claude Desktop?
Update the Claude configuration file to point to your server's URL and restart Claude.
What if something goes wrong?
What if something goes wrong?
Try restarting Claude or connecting directly to the server using npx mcp-remote http://localhost:8787/sse
. You can also clear the files in ~/.mcp-auth
.
How do I deploy to Cloudflare?
How do I deploy to Cloudflare?
First, create a KV namespace using npx wrangler kv namespace create OAUTH_KV
, then add the namespace ID to wrangler.jsonc
and run npm run deploy
.
How do I call the deployed server from a remote MCP client?
How do I call the deployed server from a remote MCP client?
Use the MCP Inspector and enter the workers.dev URL of your Worker in the inspector as the URL of the MCP server to connect to, and click Connect.