June 13, 2025
SDKs
David Ackerman

Remote MCP server generatrion

You can now deploy your MCP servers as Cloudflare Workers, making them accessible to web-based AI interfaces like claude.ai.

When you enable generate_cloudflare_worker: true in your MCP server configuration, Stainless generates a complete Cloudflare Worker template alongside your MCP server. This worker implements OAuth authentication and serves your APItools remotely, eliminating the need for local installations or API key management in client configs.

The generated worker includes:

  • OAuth consent screen with customizable form fields (text, password, select dropdowns)
  • Support for both SSE and Streaming HTTP protocols
  • One-click deployment via GitHub integration

This opens up MCP servers to a broader audience beyond desktop developers, enabling seamless integration with web-based AI tools while maintaining security through proper OAuth flows.

Take a look at our documentation to learn more about deployment options and customization.