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

https://news.ycombinator.com/rss Hits: 3
Summary

MCP Server Boilerplate with OAuth & PostgreSQL A complete boilerplate for building remote Model Context Protocol (MCP) servers on Cloudflare Workers with custom OAuth authentication and PostgreSQL database integration. ๐Ÿš€ What You Get This boilerplate provides everything you need to build production-ready MCP servers: ๐Ÿ” Complete OAuth 2.1 Provider - Custom OAuth implementation with user registration/login - Custom OAuth implementation with user registration/login ๐Ÿ—„๏ธ PostgreSQL Integration - Full database schema with user management and OAuth tokens - Full database schema with user management and OAuth tokens โšก Cloudflare Workers - Serverless deployment with global edge distribution - Serverless deployment with global edge distribution ๐Ÿ› ๏ธ MCP Tools Framework - Modular tool system with user context - Modular tool system with user context ๐Ÿ”Œ Custom Routes Framework - Easy-to-use system for adding REST API endpoints - Easy-to-use system for adding REST API endpoints ๐ŸŽจ Beautiful UI - Responsive login/registration pages with customizable consent screen - Responsive login/registration pages with customizable consent screen ๐Ÿ”’ Security First - JWT tokens, bcrypt hashing, PKCE support - JWT tokens, bcrypt hashing, PKCE support ๐Ÿ“ฑ Mobile Ready - Works on desktop, web, and mobile MCP clients - Works on desktop, web, and mobile MCP clients ๐Ÿ”ง Developer Friendly - TypeScript, hot reload, comprehensive error handling Available MCP Tools add - Basic math operations - Basic math operations userInfo - Get current user information - Get current user information personalGreeting - Personalized user greetings - Personalized user greetings generateImage - AI image generation - AI image generation getUserStats - User statistics and analytics โšก Quick Start from index.ts Everything starts from src/index.ts - this is your main configuration file where you can easily: ๐Ÿ› ๏ธ Register MCP Tools // Register all MCP tools with one line each backend . registerTool ( registerMeTool ) . registerTool ( regi...

First seen: 2025-06-04 19:47

Last seen: 2025-06-04 21:47