MCP Server Starter
Production-shaped remote MCP server starter — Streamable HTTP on Cloudflare Workers, stateless + stateful patterns, typed tools, discovery, rate limiting, and Vitest tests.
📋 What's Inside 11 files
- ✓ LICENSE—
- ✓ README.md—
- ✓ package.json—
- ✓ src/descriptor.ts—
- ✓ src/ratelimit.ts—
- ✓ src/server.ts—
- ✓ src/transport.ts—
- ✓ src/worker.ts—
- ✓ test/server.test.ts—
- ✓ wrangler.toml—
- ✓ manifest.json—
📁 File Structure 11 files
├── LICENSE
├── README.md
├── package.json
├── src/
│ ├── descriptor.ts
│ ├── ratelimit.ts
│ ├── server.ts
│ ├── transport.ts
│ ├── worker.ts
├── test/
│ ├── server.test.ts
├── wrangler.toml
├── manifest.json
📖 Documentation Preview README excerpt
MCP Server Starter — Remote Streamable HTTP on Cloudflare Workers
A production-shaped starter for building a **remote Model Context Protocol (MCP)
server** that any MCP client (Claude Desktop, Cursor, Cline, OpenCode, or your own
agent) can connect to over the network. It uses the Streamable HTTP transport
and runs on Cloudflare Workers (or any Web-standard runtime: Deno, Bun, Node 18+).
This is the exact shape used to ship a live, registry-listed commerce MCP server —
generalized, anonymized, and reduced to a clean starting point you can extend.
Why this exists
Most MCP tutorials show a local stdio server. Real agents increasingly connect
to remote servers over HTTP. Remote servers are harder: you have to handle the
Streamable HTTP transport correctly, decide between stateless and session modes,
run inside a serverless runtime with no Node built-ins, and expose a discovery
surface so clients can find you. This starter solves all of that.
Features
Workers/Deno/Bun with no Node-only APIs.
required; ideal for read-heavy public tools. A documented path to stateful
sessions is included.
input validation, structured content, and error contracts.
an opaque 406, plus a /.well-known/mcp.json manifest.
end (initialize, tools/list, tools/call).
Requirements
Quick start
npm install
npm test # runs the Vitest suite against the in-process server
npm run dev # wrangler dev — serves /mcp locally
Point an MCP client at http://localhost:8787/mcp (Streamable HTTP). Or smoke-test
with curl:
curl http://localhost:8787/mcp \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'
File tree
... preview truncated, see full README in product download.
📄 Code Sample .ts preview
📅 Changelog
v1.0.0 — Initial release. Last updated 2026-08-02.
Purchases include lifetime updates. Check the product page for the latest version.
📄 Product Preview
Try the interactive reader and demo tools below, or get the full product with all content unlocked.
📖 Interactive Reader (Free Preview)⚙ Try Demo Tools📦 Download Free Sample❓ Frequently Asked Questions
What license is this under?
MIT License. You can use it in commercial, client, and internal projects. See our license terms page for details.
How do I download after purchase?
Immediately after purchase, you'll be redirected to a download page. A download link is also sent to your email.
Do I get updates?
Yes. All products include lifetime updates at no extra cost. Re-download anytime for the latest version.
What if it doesn't work for me?
DM @DatanestDigital on X and we'll make it right.
Can I get a refund?
DM @DatanestDigital on X with your order number and we'll help.
Is there support?
DM @DatanestDigital on X. We respond within 1-2 business days.