WebSockets MCP Math Demo MCP Server

Demo of MCP client/server using durable objects for trackings state

Local serverstdioTypeScript

What is the WebSockets MCP Math Demo MCP Server?

Demo of MCP client/server using durable objects for trackings state

What you get

A reference implementation demonstrating the Model Context Protocol (MCP) over WebSockets using Cloudflare Workers and Durable Objects.

This repository provides a reference implementation of MCP over WebSockets. It showcases:

Configuration and credentials

  • Node.js (v18 or later) - Wrangler (Cloudflare Workers CLI) - Cloudflare account

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Configuration

  • Node.js (v18 or later) - Wrangler (Cloudflare Workers CLI) - Cloudflare account

Example prompts to try

  • “Use WebSockets MCP Math Demo to Architecture.”
  • “Use WebSockets MCP Math Demo to Prerequisites.”
  • “Use WebSockets MCP Math Demo to Installation.”

Frequently asked questions

Standard MCP typically uses HTTP or SSE transport. This implementation adds WebSocket transport for lower