Build and deploy Remote Model Context Protocol (MCP) servers to Cloudflare
Mar 25, 2025Brendan Irvine-Broque, Dina Kozlov, Glen Maddern

Summary
Introduced the ability to build and deploy remote Model Context Protocol (MCP) servers to Cloudflare. This includes the `workers-oauth-provider` library for OAuth integration, the `McpAgent` class in the Cloudflare Agents SDK for remote transport, the `mcp-remote` adapter for local client compatibility, and an AI playground as a remote MCP client. The post details the MCP OAuth flow, the role of the MCP server as an OAuth Provider, and the benefits of issuing custom tokens for granular access control.
More from the Artificial Intelligence Integration & Impact trail
- Introducing Clef-omni with full multimodality, plus a faster Clef and a cheaper Clef-flash
- Introducing Web Search API via AI Gateway
- Introducing Clef: our open-source decision models, and new RL fine-tuning platform
- One year later: Sovereign AI and the fight for choice
- AI Search is now generally available