mcp-stateless-starter
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Stateless MCP Server Starter (2026 Spec)
Production-ready Model Context Protocol server that scales horizontally on plain HTTP — no sticky sessions, no shared Redis, no deep packet inspection at the gateway. Aligned with the 2026-07-28 MCP Specification Release Candidate.
Why stateless
The 2025 MCP transport required sticky sessions and a shared session store to survive horizontal scale-out. The 2026 spec drops both. Any MCP request can land on any instance behind a round-robin load balancer.
This repo is the minimum example: an MCP server exposing two tools (echo, now) using the stateless HTTP transport, deployable to Vercel/Fly/Cloudflare Workers without changes.
Related MCP server: Streamable HTTP Python MCP Server Template
Stack
Node 22 + TypeScript
@modelcontextprotocol/sdk(HTTP transport)Zero state — every request is self-contained
Routes on
Mcp-Methodheader so reverse proxies can shard without parsing JSON-RPC
Quick start
npm install
npm run dev # http://localhost:3000/mcp
npm run test:client # runs against local serverDeploy
# Vercel
vercel deploy
# Fly.io
fly launch
# Cloudflare Workers
wrangler deployAll three work because the server holds zero session state between requests.
What changed vs 2025 transport
2025 (SSE + sessionId) | 2026 (stateless HTTP) |
| No session header |
Server holds session map | Server holds nothing |
Sticky LB required | Round-robin LB works |
| Cached client-side per |
SSE stream for server→client | Server-Sent Events optional, only for |
File map
src/server.ts— Express server, single/mcpPOST routesrc/tools.ts— tool definitions (echo,now)src/client.ts— example client that connects + calls a toolvercel.json— zero-config Vercel deployDockerfile— for Fly/Cloud Run
Resources
License
MIT — fork freely.
Built by Varritech. We turn AI prototypes into shipped products.
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP Server for Orderly Network - Documentation and SDK patterns
- ArcjetOAuthcom.arcjet
An MCP server for Arcjet - the runtime security platform that ships with your AI code.
MCP server for Superserve sandboxes: create, exec, and manage Firecracker microVMs
MCP server for OnceAsk, the AI-native current-address layer for people and agents.
Related MCP Servers
- AlicenseBqualityDmaintenanceA basic starter project for building Model Context Protocol (MCP) servers that enables standardized interactions between AI systems and various data sources through secure, controlled tool implementations.2MIT
- FlicenseNot gradedqualityDmaintenanceA starter template for building MCP servers in Python using the streamable HTTP transport protocol. Provides a foundation with the MCP Python SDK and example configuration to quickly develop custom MCP servers.2-
- AlicenseNot gradedqualityDmaintenanceProduction-ready MCP server starter with authentication, observability, and a plugin system for building and deploying MCP servers quickly.MIT
- AlicenseNot gradedqualityDmaintenanceEnables a stateless, horizontally scaled MCP server using the 2026-07-28 specification, with tools for load testing and instance-aware operations.MIT