# Cloudflare Agents SDK: 7.1 out of 10

A strong pick. 2nd of 9 in [MCP server frameworks](https://elestia.ai/opensource/mcp/index.md).

Cloudflare's Agents SDK (`agents`) is a broad agent framework for Cloudflare Workers. Its MCP part, `createMcpHandler` plus OAuth helpers, is a fast way to put a remote MCP server on Workers. It only makes sense on Cloudflare, and its MCP API has already changed once: the stateful McpAgent class is now deprecated in favour of a stateless handler.

**Best for:** Teams that already deploy on Cloudflare Workers and want a remote, OAuth-protected MCP server with little setup.

## Scores

- **Overall: 7.1** (likely 6.1 to 8.1)
  - Claude Opus 5.5 (6.5): If you are on Cloudflare Workers, it is a strong, well-funded way to ship a remote MCP server with auth. For everyone else, the Workers lock-in rules it out. The recent McpAgent deprecation and 0.x churn also make it a less settled choice than the official MCP SDK or FastMCP. It ranks below those general-purpose options and is about level with mcp-handler as a platform-specific pick.
  - GPT-6.2 Sol (7.7): For a new stateless endpoint on Workers, the SDK is a strong pick because it handles the Workers request lifecycle and integrates with Cloudflare's OAuth tooling. The official MCP TypeScript SDK v2 is the better general default for portability and local stdio. The ongoing migration away from McpAgent and limited production evidence for the newest handler keep the recommendation specific to Workers.
- **Needed by many: 3.5** (likely 2.5 to 4.8)
  - Claude Opus 5.5 (3.5): Building MCP servers is a growing but still specialised job, and this tool narrows it further to Cloudflare Workers. Only developers who host on Cloudflare need this take on it. The range is wide because Workers' share of new AI backends is hard to measure.
  - GPT-6.2 Sol (3.5): Exposing tools and data to AI agents is an established job, but this adapter serves the subset of JavaScript and TypeScript developers building remote endpoints on Workers. Enterprise surveys show production MCP use, while the share of developers who need to build and host their own server on Workers is harder to estimate.
- **Helps a lot: 7.2** (likely 6.2 to 8.2)
  - Claude Opus 5.5 (6.5): On Workers it gives remote Streamable HTTP, OAuth, scoped authorization, and state through Durable Objects. It also tracked the new stateless spec quickly. But users had to move from McpAgent to `createMcpHandler`, and stateful features such as pushed requests and streams need a redesign. The SDK also needs exact version pinning. A peer such as the official SDK or FastMCP is more portable and has fewer moving parts.
  - GPT-6.2 Sol (7.8): Version 0.34.0 pairs a typed MCP SDK v2 server with Workers request handling and verified OAuth context. An independent test of 0.32.0 got a tool-level error for invalid input, and a developer reported that the wrapper resolved streaming hangs on Workers. Current examples make setup easier, but session replay still needs a legacy route or an application redesign. The available tests cover a small server, so production performance and coding-agent reliability remain less certain.
- **Holds up over time: 7.4** (likely 6.3 to 8.4)
  - Claude Opus 5.5 (7.0): Cloudflare funds it as a core product, and activity is very high: 1,284 commits, 341 releases and 78 contributors. Durability is held down by 0.x churn. The main MCP class was deprecated about 18 months after launch, and the rest of the API could change again. The project is tied to one vendor's strategy.
  - GPT-6.2 Sol (7.8): Cloudflare published 102 versions of the package in a year, uses the handler in its own MCP servers, and closed a user-reported OAuth documentation gap with a runnable example. Cloudflare backs the SDK as part of Workers, and the current handler follows the official protocol SDK. The McpAgent deprecation and a release that required existing servers to declare new peer dependencies show that upgrades can still take work.
- **Used widely: 5.6** (likely 3.9 to 6.9)
  - Claude Opus 5.5 (6.0): Downloads rose from 0.44M to 13.3M per 4 weeks, about 30 times, far above the 4.1 median. Part of that comes from Cloudflare templates, CI installs and non-MCP agent use. The ecosyste.ms dependents count of 6 looks broken, probably because the old 2012 package name confuses it, so it tells us little. It is well behind the official SDK and close to tmcp and mcp-handler in downloads.
  - GPT-6.2 Sol (5.1): Downloads grew 30.3 times year over year, well above the 4.1 times catalog baseline and faster than the official SDK v1 package or FastMCP for TypeScript. Automated installs and the SDK's other uses make it hard to assign this growth to MCP. The repository drew more Bluesky attention than FastMCP but less than the official SDK and mcp-use, while ecosyste.ms found only six repos and two packages in its partial index.
- **Vouched for: 6.1** (likely 4.8 to 7.5)
  - Claude Opus 5.5 (5.5): Cloudflare runs its own remote MCP servers on it and says partners tested the migration with production traffic. Auth vendors such as PropelAuth and Scalekit have written guides for it. Independent comparisons and survey data barely mention it, so most validation comes from the vendor.
  - GPT-6.2 Sol (6.7): Sentry documents using the Agents SDK handler for its hosted MCP service, and Cloudflare uses the current handler in its own MCP servers. An independent hands-on comparison picked it for remote Workers deployments, and a separate developer verified an authenticated deployment end to end. Sentry documents an earlier handler API, and independent production evidence for the current version is still thin.
- **Safe: 7.3** (likely 6.0 to 8.3)
  - Claude Opus 5.5 (7.0): It has an MIT licence and 11 dependencies, and Cloudflare publishes it. There were three moderate advisories in early 2026: two XSS bugs in the AI Playground and an email-routing IDOR. All were disclosed and fixed. There is no OpenSSF Scorecard, and the release rate is very high, which makes each release harder to review.
  - GPT-6.2 Sol (7.6): The MIT-licensed package has 11 direct dependencies, and its tagged release workflow uses npm trusted publishing. The fixes for the reported moderate Playground and email-routing issues shipped by public disclosure. The current stateless handler validates browser origins. The missing OpenSSF Scorecard and unverified number of people with release access widen the range.

## Good

- Supported the new MCP specification (2026-07-28) and MCP SDK v2 from the day they shipped, with a Worker-friendly `createMcpHandler`.
- Fits with Cloudflare's OAuth Provider, Durable Objects, and storage such as D1 and KV, so auth and state need little glue code.
- Cloudflare staff build it full time, with about 1,300 commits and more than 300 releases in the last year.
- Downloads grew about 30 times year over year, far above the category median.

## Bad

- It only runs on Cloudflare Workers, so you cannot move the server to another host.
- The McpAgent class, the recommended path in 2025, is now deprecated and feature-frozen, and stateful servers need a staged migration.
- It is still 0.x and ships very often, and it must be pinned to exact versions of the MCP SDK packages.
- MCP is a small part of a large agent framework, so you take on more API surface than an MCP-only library has.

## The numbers

- Downloads, 4 weeks: 13M
- In a year: ×30
- GitHub stars: 6k
- Commits, 12 months: 1.3k
- Last npm release: Nov 2026
- Advisories, 24 months: 3
- Licence: MIT
- GitHub: https://github.com/cloudflare/agents
- npm: https://www.npmjs.com/package/agents

An agent framework for Cloudflare Workers. It also serves MCP.

Scores run from 0 to 10 and are the mean of the scores of AI reviewers (Claude Opus 5.5, GPT-6.2 Sol), made on 22 November 2026 from GitHub, npm, OSV, OpenSSF Scorecard, ecosyste.ms, Hacker News and Bluesky data and a web search. The ecosyste.ms count of repositories that use a project is far too low for projects that grew in the last few years, and some reviews quote it. Overall is the reviewers' own judgement for a new project today, not an average of the parts. An AI wrote them and can be wrong.
