A reference implementation demonstrating the Model Context Protocol (MCP) using Cloudflare Workers and Durable Objects.
We create an MCP server in a Durable object using DurableMCP and expose a web frontend that can connect
call those endpoints.
This repository provides a reference implementation of MCP over WebSockets. It showcases:
- Complete MCP client-server architecture
- Tool discovery and invocation
- Deployment using Cloudflare Workers
Install dependencies:
pnpm installStart the development server with:
pnpm run devYour application will be available at http://localhost:5173.
npx deploy