Deploy an MCP Server to Cloudflare Workers

The FastMCP tutorials in this series deploy to a Mac with launchd: one machine, your machine, awake and on the network. This one takes the opposite approach and deploys an MCP server to Cloudflare Workers — TypeScript with the Agents SDK’s McpAgent, pushed to a public HTTPS URL that runs in data centers worldwide. There is no server of your own to keep running, and per-session state lives in a Durable Object (SQLite) instead of a file on disk. ...

12 min

Gate a Premium Folder on a Hugo Site with Stripe and Cloudflare Workers

Build a Hugo static site whose /premium/ section is locked behind a Stripe subscription, with the access decision made by a Cloudflare Worker at the edge. Free posts stay cached and public. A request for a premium page runs the Worker first: it checks a signed session cookie and confirms the subscription is still active in KV before it hands back the file. Payment, activation, and cancellation flow through Stripe Checkout and a webhook. ...

32 min