Skip to content

http

Note for Akari: README for this template does not yet exist. Once packages/create-mcp-server/templates/http/README.md lands, 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.ts with 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 premium auth template, which builds on this HTTP foundation).
  • Run it in 3 steps: npm installnpm run buildnpm start. The server listens on PORT (default 3000).
  • Next: point your MCP client at http://localhost:3000/mcp · scaffold via npx @nexus-lab/create-mcp-server my-server --template http · or step up to auth (premium) for JWT / API key / rate limiting.

Quick Start

bash
npm install
npm run build
npm start

The server starts on http://localhost:3000 by default. The MCP endpoint is /mcp.

Configure the port via environment:

bash
PORT=8080 npm start

Transport 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 / full templates instead)

When to graduate

  • Need stdio only? → minimal or full
  • 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:

  1. Put it behind HTTPS (Cloudflare, nginx, or equivalent)
  2. Add authentication (the auth premium template is the shortcut)
  3. Restrict CORS origins to known clients
  4. Add rate limiting (the auth template includes a sliding-window limiter)

MIT. Made by Nexus Lab.

Status

README pending. See the template source on GitHub for now.

Install

bash
npx @nexus-lab/create-mcp-server my-server --template http

Why 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.

Built by Nexus Lab (nokaze). MIT Licensed.