Hasty Briefsbeta

Bilingual

Show HN: Cloudflare Workers Compatible MCP Boilerplate with OAuth & PostgreSQL

a year ago
  • #Cloudflare
  • #OAuth
  • #MCP
  • Boilerplate for building remote Model Context Protocol (MCP) servers on Cloudflare Workers.
  • Includes custom OAuth authentication and PostgreSQL database integration.
  • Features complete OAuth 2.1 Provider with user registration/login.
  • PostgreSQL Integration with full database schema for user management.
  • Modular MCP Tools Framework with user context.
  • Custom Routes Framework for adding REST API endpoints.
  • Responsive UI with customizable consent screen.
  • Security features include JWT tokens, bcrypt hashing, and PKCE support.
  • Developer-friendly with TypeScript, hot reload, and comprehensive error handling.
  • Includes basic MCP tools like math operations, user info, and AI image generation.
  • Easy deployment on Cloudflare Workers with global edge distribution.
  • Supports multiple PostgreSQL hosting options including Neon, Supabase, and Railway.
  • Optional Cloudflare Hyperdrive for improved database performance.
  • Platform-agnostic with support for Vercel, AWS Lambda, Google Cloud Run, and self-hosting.
  • Comprehensive setup instructions including environment configuration and deployment steps.
  • Modular architecture with clear directory structure for easy customization.
  • MIT License with open-source contributions encouraged.