- Home
- MCP servers
- Cloudflare
Cloudflare
- typescript
0
GitHub Stars
typescript
Language
7 months ago
First Indexed
3 months ago
Catalog Refreshed
Documentation & install
Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.
You can run a remote MCP server that exposes its tools over Cloudflare Workers and connect to it from MCP clients or the Claude Desktop client. This setup lets you deploy, customize, and use MCP tooling remotely, without needing to host your own server infrastructure.
How to use
Connect from an MCP client to the remote Cloudflare-based server to access its tools. You will typically reference the server via its public URL and then use your MCP client’s interface to run tools, manage configurations, and fetch results. If you later run your own local or remote MCP client, you can point it at the server’s SSE endpoint to fetch real-time tool responses.
How to install
Prerequisites you need before you begin are Node.js and npm. Ensure you have access to a Cloudflare account if you plan to deploy to Cloudflare Workers.
Step-by-step deployment flow you can follow after you have your Cloudflare credentials and a target project:
# Create a new MCP server project using the Cloudflare template
npm create cloudflare@latest -- my-mcp-server --template=cloudflare/ai/demos/remote-mcp-authless
Additional content
Customization: To add your own tools to the MCP server, define each tool inside the init() method of src/index.ts using this.server.tool(...). This pattern lets you declare tool entry points and how they should be invoked by clients.
Connecting from a local MCP client: You can direct a local client to use the remote MCP server by configuring the client to point at the server’s SSE URL. The example shows how a tool called calculator can be wired to a remote endpoint so you can access it from your local environment.
Example client configuration (for Claude Desktop) to route a calculator tool to the remote server: you would set mcpServers.calculator to run the remote endpoint.
{
"mcpServers": {
"calculator": {
"command": "npx",
"args": [
"mcp-remote",
"http://localhost:8787/sse" // or remote-mcp-server-authless.your-account.workers.dev/sse
]
}
}
}