Optimized for serverless deployment on AWS Lambda, enabling stateless operation with perfect horizontal scaling for calculator functionality.
Designed for deployment on Cloudflare edge functions, providing stateless calculator services with maximum scalability at the network edge.
Exposes metrics in Prometheus-compatible format through a /metrics endpoint for monitoring server performance and usage.
Optimized for deployment on Vercel edge functions, enabling serverless calculator functionality with zero state persistence between requests.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@example-mcp-server-streamable-http-statelesscalculate 15 * 3 + 7"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
example-mcp-stateless
learning-first MCP boilerplate for HTTP stateless servers using TypeScript SDK v2 pre-release.
part of a series: stdio · stateless (you are here) · stateful · sse
what it does
runs a stateless MCP server where every request gets a fresh
McpServerinstance -- no sessions, no state, no coordinationregisters example tools (
calculate,describe_stateless_limits), resources (boilerplate://limitations,boilerplate://topic/{topic}), and a prompt (design-next-tool)includes a scaffold CLI to bootstrap new projects and generate tool/resource/prompt stubs
vendors SDK v2 pre-release tarballs for reproducible builds
ships with Docker support, CI workflow, and a smoke test
Related MCP server: OpenAPI MCP Server
quick start
the server starts at http://127.0.0.1:1071/mcp. verify with:
Docker alternative:
scaffold cli
build the CLI first, then scaffold a new project:
generate stubs inside an existing project:
full reference: docs/03-scaffold-cli.md
documentation
document | description |
install, run, configure, verify | |
module layout, stateless pattern, endpoint contract | |
| |
v2 packages, vendoring, migration from v1 | |
CI breakdown, smoke test, mcp-cli verification |
sdk v2 context
this repo tracks MCP TypeScript SDK v2 in pre-release form. it uses the split package model (@modelcontextprotocol/server, @modelcontextprotocol/node, @modelcontextprotocol/express) and the registerTool/registerResource/registerPrompt APIs with Zod v4 schemas. tarballs are vendored in vendor/mcp-sdk-v2/ for reproducibility.
license
MIT