MCP Server Boilerplate: OAuth & PostgreSQL on Cloudflare Workers
2025-06-04
This project offers a complete boilerplate for building remote Model Context Protocol (MCP) servers on Cloudflare Workers, featuring custom OAuth authentication and PostgreSQL database integration. It includes a full OAuth 2.1 provider, PostgreSQL integration, serverless deployment via Cloudflare Workers, an MCP tools framework, a custom routes framework, a beautiful UI, robust security features, and mobile readiness. Developers can leverage TypeScript, hot reload, and comprehensive error handling. The boilerplate also includes an easy-to-use system for adding REST API endpoints and a fully customizable OAuth consent screen.
Development