http
Note for Akari: README for this template does not yet exist. Once
packages/create-mcp-server/templates/http/README.mdlands, replace the block below with:# MCP Server — HTTP Template
A Model Context Protocol server over Streamable HTTP transport, for remote clients and multi-user scenarios. Free.
Who this is for
- You're building: an MCP server that needs to be reachable over the network — remote Claude clients, web dashboards, or multi-user deployments where stdio isn't enough.
- What it is: an Express-based server exposing MCP over the Streamable HTTP transport (the current MCP spec recommendation for remote servers). SSE is supported for backward compatibility.
- What's in the zip:
src/index.tswith Express routes, CORS, and the Streamable HTTP handler wired to the MCP SDK.package.json,tsconfig.json,.gitignore. - Not a fit if: you want the simplest possible setup (pick
minimal), or you need auth / rate limiting out of the box (pick the premiumauthtemplate, which builds on this HTTP foundation). - Run it in 3 steps:
npm install→npm run build→npm start. The server listens onPORT(default3000). - Next: point your MCP client at
http://localhost:3000/mcp· scaffold vianpx @nexus-lab/create-mcp-server my-server --template http· or step up toauth(premium) for JWT / API key / rate limiting.
Quick Start
npm install
npm run build
npm startThe server starts on http://localhost:3000 by default. The MCP endpoint is /mcp.
Configure the port via environment:
PORT=8080 npm startTransport choice: why Streamable HTTP
The MCP TypeScript server docs now recommend Streamable HTTP for remote servers. SSE (Server-Sent Events) is still supported for backward compatibility with older clients, but new deployments should use Streamable HTTP.
- Streamable HTTP — bidirectional, single endpoint, works through most proxies and CDNs
- SSE — legacy, one-way server-to-client, kept for old clients only
- stdio — for local integration (use
minimal/fulltemplates instead)
When to graduate
- Need stdio only? →
minimalorfull - Need JWT / API key auth + rate limiting on top of HTTP? →
auth(premium, ¥800) - Need to wrap an existing REST API behind MCP with agent-safe defaults? →
api-proxy(premium, ¥1,000)
Security defaults
This template enables CORS and exposes MCP without auth — that is intentional for a starter, not a production recommendation. Before shipping:
- Put it behind HTTPS (Cloudflare, nginx, or equivalent)
- Add authentication (the
authpremium template is the shortcut) - Restrict CORS origins to known clients
- Add rate limiting (the
authtemplate includes a sliding-window limiter)
MIT. Made by Nexus Lab.
Status
README pending. See the template source on GitHub for now.
Install
npx @nexus-lab/create-mcp-server my-server --template httpWhy Streamable HTTP
MCP's official guidance treats Streamable HTTP as the recommended transport for remote MCP servers. SSE remains for backward compatibility only. See Transport Aware.