Discover and explore top open-source AI tools and projects—updated daily.
iannuttallCloudflare worker boilerplate for AI tool monetization
Top 38.0% on SourcePulse
This project provides a boilerplate for creating a remote AI model context protocol (MCP) server on Cloudflare Workers. It enables user authentication via Google or GitHub and integrates Stripe for managing free and paid tools, targeting developers who want to monetize their AI-powered tools.
How It Works
The boilerplate leverages Cloudflare Workers for serverless deployment and utilizes wrangler for managing the worker environment. User authentication is handled by OAuth 2.0 flows with Google and GitHub. Stripe integration allows for subscription-based, metered-usage, or one-time payment models for accessing specific tools. Tools are defined as TypeScript functions within the src/tools directory and registered with the MCP agent.
Quick Start & Requirements
npm install -g wranglergit clone https://github.com/iannuttall/mcp-boilerplate.git && cd mcp-boilerplate && npm installnpx wrangler kv namespace create "OAUTH_KV" and update wrangler.jsonc.npx wrangler devnpx wrangler deployHighlighted Details
Maintenance & Community
Licensing & Compatibility
Limitations & Caveats
npx @modelcontextprotocol/inspector@latest.5 months ago
1 day
cloudflare