WorkersCAUTION
Talk to a Cloudflare Worker from Claude Desktop!
Overview
From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.
Talk to a Cloudflare Worker from Claude Desktop!
[!WARNING] You should start here instead — and build a remote MCP server You can connect to remote MCP servers from Claude Desktop, Cursor, and other clients using mcp-remote.
What is workers-mcp?
This package provides both the CLI tooling and the in-Worker logic to connect Claude Desktop (or any MCP Client) to a Cloudflare Worker on your account, so you can customise it to suit your needs. It works via a build step that can translate TypeScript methods of your Worker like this:
export class ExampleWorkerMCP extends WorkerEntrypoint {
/**
* Generates a random number. This is extra random because it had to travel all the way to
* your nearest Cloudflare PoP to be calculated which... something something lava lamps?
*
* @return {string} A message containing a super duper random number
* */
async getRandomNumber() {
return `Your random number is ${Math.random()}`
}
// ...etc
}...into MCP tools that a local Node.js server can expose to MCP clients. The Node.js server acts as a proxy, handling stdio transport locally, and calling the relevant method of your Worker running on Cloudflare. This allows you to expose any function or API in your app, or any service in Cloudflare's developer platform, back to a LLM in your coding agent, Claude Desktop or other MCP client.
Yes, I know that Math.random() works the same on a Worker as it does on your local machine, but don't tell Claude 🤫Usage
Step 1: Generate a new Worker
Use create-cloudflare to generate a new Worker.
npx create-cloudflar
0123ff85e001OBSERVED · 2026-09-28Connect
Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control.
claude mcp add workers-mcp -- npx -y [email protected]
{
"mcpServers": {
"workers-mcp": {
"command": "npx",
"args": [
"-y",
"[email protected]"
]
}
}
}Exposed tools (1)
1 read · 0 write · 0 destructive.
| Tool | Risk | Description |
|---|---|---|
sessionID | read | A unique identifier to be used for all tool calls during this conversation. Unless the user specifies explicitly which |
Trust audit
CAUTIONgrade B · trust 89/100 Install with care. The audit found things worth knowing before you trust its output.
| Layer | What it checks | Result |
|---|---|---|
| L0 | Provenance & inventory | PASS |
| L1 | Static analysis of the code | WARN |
| L2 | Instruction surface (what it tells the agent) | PASS |
| L3 | Class-specific surface | PASS |
| L4 | Behavioural (sandbox) | SKIPPED |
What the source does
- Filesystem
- none-observed
- Network
- declared (3 observation(s))
- Shell
- none-observed
- Dependencies
- not all pinned
- Secrets in source
- none-found
Findings (6)
console.log(`Generating shared secret...`)
console.log(`Found secret. Running ${chalk.yellow('wrangler secret put SHARED_SECRET')}`)const binaryString = atob(response.image);
@cloudflare/vitest-pool-workers, @cloudflare/workers-types, typescript, wrangler
workers-mcp, @cloudflare/vitest-pool-workers, @cloudflare/workers-types, typescript, wrangler
@clack/prompts, @modelcontextprotocol/sdk, @silvia-odwyer/photon-node, chalk, fs-extra, jsdoc-api, just-filter-object, just-map-values
Gates applied: no_behavioural_pass.
0123ff85e001full audit observations/trust-audit/mcp-server/cloudflare__workers.json · Report an issue / request a re-scanAudit history
Every audit this server has had. A grade with a past is a grade somebody is still checking.
| Date | Source | Verdict | Grade | Score | Change |
|---|---|---|---|---|---|
| 2026-09-28 | 0123ff85e001 | CAUTION | B | 89 | first audit |
Questions
What is the Workers MCP server?
Talk to a Cloudflare Worker from Claude Desktop!
What tools does Workers expose?
1 in total: 1 read-only, 0 that write, and 0 that can delete or overwrite. Every one is listed on this page with its risk.
Is Workers safe to connect to an agent?
With care. The audit graded it B (89/100) and found 6 things worth knowing before you trust this server, listed below with the exact line each was found on.
What credentials does Workers need?
No credential environment variables were found in its source, so it appears to need none.
How does Workers run?
It speaks stdio, so it runs as a local process your client starts. It is published on npm as workers-mcp at 0.0.13.
How current is this page?
The grade is for one exact copy of the source (0123ff85e001), read on 2026-09-28. The repository is watched and re-audited when it changes.