Provides PostgreSQL database integration for persistent storage, connection pooling, and managing user context for MCP tools.
Integrates with Stripe to enable the creation of paid MCP tools with built-in subscription support and payment processing.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@MCP Startup Frameworkcalculate 150 times 25 using the premium math tool"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
MCP Startup Framework
A complete framework for building remote Model Context Protocol (MCP) servers on Cloudflare Workers with OAuth authentication, PostgreSQL database, and Stripe-powered paid tools.
🚀 Features
🔐 OAuth 2.1 Provider - Complete authentication with user registration/login
🗄️ PostgreSQL Integration - Scalable production-ready database with connection pooling
💳 Paid Tools Framework - Stripe-powered premium tools with subscription support
🌐 Platform Agnostic - Optimized for Cloudflare Workers but deployable anywhere (Vercel, Railway, AWS, self-hosted)
🛠️ MCP Tools Framework - Modular tool system with user context
🔌 REST API Routes - Easy-to-use system for adding custom endpoints
🎨 Custom Views - Extensible UI system for privacy policies, ToS, documentation pages
📡 Streamable HTTP Transport - Works with
mcp-remotefor local Claude Desktop integration📱 Cross-Platform - Works on desktop, web, and mobile MCP clients
⚡ Quick Start
Prerequisites
Node.js 18+
Cloudflare account
PostgreSQL database (see database setup)
Stripe account (for paid tools)
Installation
Configuration
Edit .dev.vars with your settings:
Development
🛠️ Adding Tools & Routes
Everything starts from src/index.ts:
See Tools Guide and Routes Guide for details.
Custom Views
Extend beyond MCP with custom pages:
See Views Guide for creating custom pages.
🚀 Deployment
See Deployment Guide for full instructions.
🔗 Integration Options
Using claude.ai (Pro Plan)
For claude.ai Pro users, you can integrate directly:
Navigate to claude.ai settings
Click "Add Integration"
Enter your server URL:
https://your-domain.workers.dev/sseComplete the OAuth flow
Using Claude Desktop
For local Claude Desktop app:
1. Install MCP Remote Client
2. Configure Claude Desktop
Open Claude Desktop settings: Settings > Developer > Edit Config
Add to your claude_desktop_config.json:
3. Restart Claude Desktop
After saving, restart Claude Desktop. Your MCP tools will appear in the chat interface.
Transport Options
The framework supports multiple transport protocols:
Streamable HTTP (default) -
/mcpendpointServer-Sent Events (SSE) -
/sseendpoint
Both work seamlessly with mcp-remote for local development and production use.
🌐 Platform Flexibility
While optimized for Cloudflare Workers, this framework runs anywhere:
Vercel: Deploy with
@vercel/noderuntimeRailway: One-click deploy with built-in PostgreSQL
AWS Lambda: Use with RDS or Aurora Serverless
Google Cloud Run: Deploy with Cloud SQL
Self-hosted: Run with Docker on any VPS
Simply update your database connection and deployment configuration!
Production Database
The framework works with any PostgreSQL provider:
Neon - Serverless PostgreSQL with autoscaling
Supabase - PostgreSQL with real-time features
Railway - Managed PostgreSQL with automatic backups
Amazon RDS - Enterprise-grade PostgreSQL
Cloudflare Hyperdrive - Connection pooling for optimal performance
All providers support the scalability needed for production MCP servers.
📚 Documentation
Setup Guide - Detailed installation and configuration
Database Setup - PostgreSQL options and optimization
Development Guide - Project structure and workflows
Adding Tools - Create free and paid MCP tools
Custom Routes - Add REST API endpoints
Views Customization - Customize all UI pages (login, consent, payment, etc.)
Deployment - Production deployment instructions
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
📄 License
MIT License - see LICENSE file for details.