Claude Marketplaces
SkillsMCP serversMarketplacesDigestTools
Submit

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP servers by category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control
Claude Marketplaces

An independent directory of skills, plugins and MCP servers for Claude Code. Not affiliated with Anthropic.

Browse

  • Skills
  • MCP servers
  • Marketplaces
  • Weekly digest
  • Skill index
  • MCP index
  • Marketplace index

Site

  • About
  • Tools
  • Submit
  • Feedback
  • Privacy
  • llms.txt
  • Plugins reference

Maker

  • Snug
  • Agent Caffeine
  • knobs
  • Wax
  • Vectoys
  • mertduzgun.com
Crafted at
MCP servers/Databases
f avatar

MCP Startup Framework

f/mcp-startup-framework

A production-ready framework for building remote MCP servers that handle authentication, payments, and database operations. You get OAuth 2.1 user registration, PostgreSQL integration with connection pooling, and Stripe-powered premium tools out of the box. Deploys to Cloudflare Workers by default but works on Vercel, Railway, or AWS Lambda. Includes modular tool registration, REST API routes, and custom UI views for terms/privacy pages. Connects to Claude Desktop via mcp-remote or directly to claude.ai Pro through SSE endpoints. Reach for this when you need to build commercial MCP services with user accounts and paid features rather than simple local tools.

GitHub stars
127
last updated
Jan 25, 2026
View on GitHubSave

Sponsors

SnugThe clipboard manager you and your agent can use, safelyAgent CaffeineClose your lid, come back to finished workWaxBlock anything with supervision, without erasing your iPhoneOpen StepsSponsoredFree and open-source skills that make AI coding agents easier to understand, verify, and control.

Readme

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-remote for 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

# Clone the repository
git clone https://github.com/f/mcp-startup-framework
cd mcp-startup-framework

# Install dependencies
npm install

# Copy environment template
cp .dev.vars.example .dev.vars

Configuration

Edit .dev.vars with your settings:

DATABASE_URL="postgresql://username:password@host:port/database"
JWT_SECRET="your-super-secret-jwt-key"
COOKIE_ENCRYPTION_KEY="32-character-encryption-key"
STRIPE_SECRET_KEY="sk_test_your_stripe_key"
STRIPE_PRICE_ID_FOR_PREMIUM_MATH="price_your_stripe_price_id"
BASE_URL="https://your-domain.workers.dev"

Development

# Start development server
npm run dev

# Initialize database (in another terminal)
curl -X POST http://localhost:8787/init-db

# Visit http://localhost:8787 to register/login

🛠️ Adding Tools & Routes

Everything starts from src/index.ts:

// Register MCP tools
backend
  .registerTool(registerAddTool)
  .registerTool(registerGreetingTool)
  .registerTool(registerPremiumMathTool);

// Add REST API routes
backend
  .route('GET', '/api/status', (c) => c.json({ status: 'ok' }))
  .authRoute('GET', '/api/profile', (c, userContext) => 
    c.json({ user: userContext })
  );

See Tools Guide and Routes Guide for details.

Custom Views

Extend beyond MCP with custom pages:

// Add privacy policy, terms of service, documentation
backend
  .route('GET', '/privacy', (c) => c.html(generatePrivacyPage()))
  .route('GET', '/terms', (c) => c.html(generateTermsPage()))
  .route('GET', '/docs', (c) => c.html(generateDocsPage()));

See Views Guide for creating custom pages.

🚀 Deployment

# Set production secrets
wrangler secret put JWT_SECRET
wrangler secret put COOKIE_ENCRYPTION_KEY
wrangler secret put STRIPE_SECRET_KEY

# Set custom price IDs per paid tool
wrangler secret put STRIPE_PRICE_ID_FOR_PREMIUM_MATH

# Deploy to Cloudflare
npm run deploy

See Deployment Guide for full instructions.

🔗 Integration Options

Using claude.ai (Pro Plan)

For claude.ai Pro users, you can integrate directly:

  1. Navigate to claude.ai settings
  2. Click "Add Integration"
  3. Enter your server URL: https://your-domain.workers.dev/sse
  4. Complete the OAuth flow

Using Claude Desktop

For local Claude Desktop app:

1. Install MCP Remote Client
npm install -g mcp-remote
2. Configure Claude Desktop

Open Claude Desktop settings: Settings > Developer > Edit Config

Add to your claude_desktop_config.json:

{
  "mcpServers": {
    "my-startup": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://your-domain.workers.dev/mcp"
      ]
    }
  }
}
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) - /mcp endpoint
  • Server-Sent Events (SSE) - /sse endpoint

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/node runtime
  • Railway: 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.

Details

Repository
github.com/f/mcp-startup-framework
Categories
Databases, Data & Analytics, Finance & Commerce

More from f

  • prompts.chat MCP Server28

Related Databases MCP servers

View all
1danielmeppiel avatarOracle DB Contextdanielmeppiel/oracle-mcp-serverProvides contextual Oracle database schema information to AI assistants with targeted lookups, search, and relationship mapping.125stars
2v-3 avatarNotionv-3/notion-serverProvides a Notion-integrated MCP server that enables page and database operations via MCP clients.119stars
3tuannvm avatarMcp Trinotuannvm/mcp-trinoMCP server for Trino distributed SQL query engine access109stars
4sap-samples avatarSAP HANA CLIsap-samples/hana-developer-cli-tool-example150+ SAP HANA database tools as MCP tools for AI assistants0stars
5keboola avatarMcpkeboola/mcp-serverConnect your AI assistants to Keboola and expose your data, transformations, SQL queries, ...0stars
6ralfbecher avatarOrionbelt Semantic Layerralfbecher/orionbelt-semantic-layerAPI-first semantic layer MCP server compiling YAML models into dialect-specific SQL51stars