Skip to main content
Glama
Varritech

MCP Stateless Server Template

by Varritech

MCP Stateless Server Template

Production-ready stateless MCP server implementing the 2026-07-28 specification.

Built by Varritech | christian@varritech.com

Why This Exists

MCP just grew up. The 2026-07-28 specification retired sessions and handshakes, transforming MCP from a bidirectional stateful protocol into a request/response stateless protocol.

This template gives you a working stateless server in TypeScript that you can:

  • Deploy behind a round-robin load balancer immediately

  • Scale horizontally without shared storage

  • Use as a reference for migrating your existing MCP servers

Related MCP server: Kroki MCP

Quick Start

npm install
npm run dev

Your server will be available at http://localhost:3000/mcp

What Changed in 2026-07-28

Before (2025-11-25)

After (2026-07-28)

initialize/initialized handshake

No handshake required

Mcp-Session-Id header

Removed entirely

Bidirectional streams

Request/response only

Server-initiated sampling/elicitation

Multi Round-Trip Requests (MRTR)

Dynamic Client Registration (DCR)

Client ID Metadata Documents (CIMD)

Key Features

Stateless by default - Every request is self-describing
Load balancer ready - Any request lands on any instance
Cacheable responses - ttlMs and cacheScope hints included
MRTR support - Handle user input requirements mid-call
Authorization hardened - RFC 9207 issuer validation

Architecture

┌─────────────┐     ┌─────────────┐     ┌─────────────┐
│   Client    │────▶│  Load       │────▶│   Server    │
│             │     │  Balancer   │     │  Instance   │
└─────────────┘     └─────────────┘     └─────────────┘
                                            │
                                      ┌─────────────┐
                                      │   Server    │
                                      │  Instance   │
                                      └─────────────┘

No session affinity required. No shared storage needed.

Migration Guide

If you have an existing MCP server:

  1. Remove initialize/initialized handlers

  2. Drop Mcp-Session-Id tracking

  3. Add _meta.clientInfo parsing to each request

  4. Implement server/discover RPC (optional but recommended)

  5. Update response format to include ttlMs and cacheScope

See GUIDE.md for the full migration walkthrough.

License

MIT - Varritech 2026

A
license - permissive license
-
quality - not tested
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Servers

  • F
    license
    -
    quality
    D
    maintenance
    A minimal FastMCP server template for Render deployment with streamable HTTP transport. Provides a starting point for building custom MCP servers with easy one-click deployment capabilities.
    Last updated
  • A
    license
    -
    quality
    F
    maintenance
    A production-ready MCP server scaffold that features built-in authentication, Docker support, and a comprehensive CI/CD release pipeline. It provides a standardized template for deploying servers with multi-transport support and configurable read-only modes.
    Last updated
    MIT
  • A
    license
    -
    quality
    D
    maintenance
    Production-ready MCP server starter with authentication, observability, and a plugin system for building and deploying MCP servers quickly.
    Last updated
    MIT

View all related MCP servers

Related MCP Connectors

  • Cloud-hosted MCP server for durable AI memory

  • MCP server for interacting with the Supabase platform

  • MCP (Model Context Protocol) server for Appwrite

View all MCP Connectors

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/Varritech/mcp-stateless-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server