To ship a production Model Context Protocol (MCP) server that Claude Code, Cursor, Codex, and autonomous cloud agents can discover and invoke without fragile local runtime dependencies, expose a stateless JSON-RPC 2.0 Streamable HTTP endpoint over TLS 1.3 (such as POST /api/mcp/v1), serve a machine-readable SEP-1649 /.well-known/mcp/server-card.json and root /server.json registry manifest, enforce least-privilege Authorization: Bearer or OIDC tokens, and register your verified manifest with the Official MCP Registry, Smithery, Glama, and PulseMCP.
You can inspect a live, production-hardened reference implementation right now on Servers Are Up—exposing 129 tools (5 zero-auth catalog/discovery tools + 124 scoped infrastructure tools)—at /mcp, /.well-known/mcp/server-card.json, and /docs/mcp.
stdio Subprocesses in ProductionFirst-generation MCP integrations launched local Node.js (npx) or Python (uvx) child processes over stdio pipes on each developer's laptop. While convenient for weekend prototypes, local stdio breaks down across four enterprise failure modes:
npx -y some-mcp-package@latest pulls mutable npm tarballs onto developer workstations with full access to ~/.ssh and environment variables, while breaking whenever local Node/Python versions mismatch.stdio binaries.mcp.json files on thirty engineer laptops violates zero-trust credential hygiene.tools/call invocation passes through centralized token-scope validation, token-bucket rate limiting, SSRF filtering, and immutable AuditLog recording.Autonomous clients, IDE extensions, and automated registry crawlers look for five standardized HTTP artifacts on your origin domain:
| Discovery Artifact | Canonical HTTP Path | Specification / Consumer | Required Engineering Guarantees |
|---|---|---|---|
| Streamable HTTP Endpoint | POST /api/mcp/v1 |
MCP 2025-06-18 / 2026 Streamable HTTP JSON-RPC 2.0 |
Handles initialize, notifications/initialized, tools/list, and tools/call with application/json or text/event-stream |
| SEP-1649 Server Card | GET /.well-known/mcp/server-card.json |
SEP-1649 Auto-Discovery Clients | Publishes server name, version, transport URL, authentication schemes, and tool summary schemas with CORS * |
| Official Registry Manifest | GET /server.json |
registry.modelcontextprotocol.io |
Conforms to official remotes Streamable HTTP schema + DNS/GitHub namespace proof |
| Agent Skills Index | GET /.well-known/agent-skills/index.json |
Claude Code, Cursor & Antigravity Skills | Links task-specific SKILL.md runbooks teaching agents multi-step tool composition |
| LLM Context Map | GET /llms.txt & /llms-full.txt |
llmstxt.org + Accept: text/markdown |
Token-compact Markdown site architecture so agents never burn context scraping raw HTML |
A rock-solid remote MCP server should support tiered authentication: allow unauthenticated initialize and tools/list calls (plus safe read-only catalog/pricing tools so registries and prospective users can test connectivity immediately with zero friction), while enforcing granular Bearer scopes or SAU Cloud Identity (/cloud) ES256 OIDC tokens on mutating tools/call requests:
// Stateless Next.js App Router Streamable HTTP MCP endpoint (/api/mcp/v1/route.ts)
import { NextRequest, NextResponse } from 'next/server';
interface JsonRpcRequest {
jsonrpc: '2.0';
id?: string | number | null;
method: string;
params?: Record<string, unknown>;
}
const PUBLIC_ZERO_AUTH_TOOLS = new Set([
'catalog_list_products',
'pricing_compare_benchmarks',
'docs_search',
'network_public_ping',
'platform_health_status',
]);
export async function POST(req: NextRequest) {
const body = (await req.json()) as JsonRpcRequest;
const authHeader = req.headers.get('authorization');
if (body.method === 'initialize') {
return NextResponse.json({
jsonrpc: '2.0',
id: body.id ?? null,
result: {
protocolVersion: '2025-06-18',
capabilities: { tools: { listChanged: false } },
serverInfo: { name: 'io.serversareup/mcp-server', version: '1.4.0' },
},
});
}
if (body.method === 'tools/call') {
const toolName = String((body.params as { name?: string })?.name ?? '');
if (!PUBLIC_ZERO_AUTH_TOOLS.has(toolName) && !authHeader?.startsWith('Bearer ')) {
return NextResponse.json(
{
jsonrpc: '2.0',
id: body.id ?? null,
error: {
code: -32001,
message: `Tool '${toolName}' requires a scoped Authorization: Bearer token.`,
},
},
{ status: 401, headers: { 'WWW-Authenticate': 'Bearer realm="mcp"' } },
);
}
// Validate token scopes, execute bounded domain logic, and return structured content
}
return NextResponse.json({ jsonrpc: '2.0', id: body.id ?? null, result: {} });
}
server-card.json & Submitting to Official RegistriesAutomated directory scanners verify your server by fetching /.well-known/mcp/server-card.json and calling initialize + tools/list over HTTPS. Serve the card with Cache-Control: public, max-age=300 and Access-Control-Allow-Origin: *:
{
"schemaVersion": "1.0",
"name": "io.serversareup/platform-mcp",
"title": "Servers Are Up Cloud & Infrastructure MCP",
"description": "129 MCP tools (5 zero-auth discovery + 124 scoped operational tools) for KVM VMs, Managed K3s, Cloud Storage, and Multi-Model Cloud DB.",
"version": "1.4.0",
"remotes": [
{
"transportType": "streamable-http",
"url": "https://serversareup.com/api/mcp/v1"
}
],
"authentication": {
"schemes": ["none", "bearer"],
"tokenManagementUrl": "https://serversareup.com/account/api-keys"
},
"documentationUrl": "https://serversareup.com/docs/mcp"
}
Before submitting to registry.modelcontextprotocol.io, Smithery, Glama, and PulseMCP, run a deterministic pre-flight handshake check with curl:
# Verify TLS 1.3, SEP-1649 server card, and JSON-RPC 2.0 initialize handshake
curl -fsSL https://serversareup.com/.well-known/mcp/server-card.json | jq .name
curl -fsSL -X POST https://serversareup.com/api/mcp/v1 \
-H "Content-Type: application/json" \
-H "Accept: application/json, text/event-stream" \
-d '{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"registry-validator","version":"1.0.0"}}}'
Designing MCP tool schemas requires stricter ergonomics than human REST endpoints:
oneOf unions confuse smaller tool-calling models. Prefer flat JSON Schema properties with enum constraints and concise descriptions under 160 characters per parameter.isError: true: Instead of cryptic HTTP 400 codes, return clear guidance (for example: "Instance inst_42 is currently STOPPED; call instance_power with action='start' before opening an exec lease.").instances:delete inside a default read/power token, and pair host command tools with short-lived 60–3600s ephemeral Ed25519 SSH leases (POST /api/v1/instances/{id}/ssh-leases).10.0.0.0/8, 172.16.0.0/12, 192.168.0.0/16), loopback (127.0.0.0/8, ::1), and cloud link-local metadata (169.254.169.254) before opening a socket—preventing prompt-injection payloads inside untrusted documents from using your MCP server as an internal network scanner.250 KB of raw JSON logs into a tools/call response burns tens of thousands of LLM context tokens in one turn. Cap default list/log responses to compact cursors (limit <= 50) with summary counts so agents stay fast, accurate, and economical./.well-known/agent-skills/index.json) & Markdown Content NegotiationModern coding agents (Claude Code, Cursor, Codex, and Antigravity) combine MCP tools (the executable verbs) with Agent Skills (SKILL.md procedural playbooks) and Markdown content negotiation (Accept: text/markdown). Publishing all three on your domain multiplies agent completion accuracy:
GET /.well-known/agent-skills/index.json: Lists task-focused SKILL.md bundles with SHA-256 integrity digests teaching agents the exact sequence of MCP calls to execute complex workflows (for example: inspect metrics -> create pre-upgrade snapshot -> apply change -> verify HTTP readiness).Accept: text/markdown HTTP Negotiation & /llms.txt: When an AI crawler or documentation lookup tool sends Accept: text/markdown to your documentation URLs, serving clean CommonMark Markdown instead of 180 KB of hydrated React DOM cuts token consumption by 80%+ and eliminates HTML parser hallucinations.{
"version": "1.0.0",
"skills": [
{
"name": "serversareup-zero-downtime-deploy",
"description": "Snapshot, deploy, and health-verify Linux VPS and container workloads via MCP v1.",
"url": "https://serversareup.com/.well-known/agent-skills/zero-downtime-deploy/SKILL.md",
"mcpEndpoint": "https://serversareup.com/api/mcp/v1"
}
]
}
If you maintain an open-source MCP server that needs a reliable 24/7 Streamable HTTP endpoint or vector/document backing store, deploy it on a $6–$18/mo Ubuntu 24.04 Linux VPS (or a Custom GitHub App container from \$8/mo backed by SAU Multi-Model Cloud Database 100,000 RU/mo free tier), apply for free maintainer infrastructure credits through our Open-Source Infrastructure Sponsorship Program, and embed a live MCP v1 Ready SVG badge in your repository README.md.
stdio subprocesses?Streamable HTTP works natively across cloud-hosted coding agents, web/mobile clients, and multi-engineer teams over TLS 1.3 without installing local Node.js or Python runtimes, risking npx supply-chain drift, or copying production credentials onto laptops.
Allowing unauthenticated initialize, tools/list, and safe read-only catalog/health tools lets official MCP registries (registry.modelcontextprotocol.io, Glama, Smithery) verify live schema health automatically and lets developers test your server in seconds before minting a scoped token. On Servers Are Up, 5 discovery tools run zero-auth while 124 operational tools enforce scoped Bearer tokens (129 tools total).
Mint narrowly scoped Personal Access Tokens (instances:read, instances:power, instances:exec) at /account/api-keys with explicit expiry dates, and rely on 60–3600 second ephemeral Ed25519 SSH leases rather than permanent root SSH keys.
/.well-known/mcp/server-card.json used for?Defined by SEP-1649, /.well-known/mcp/server-card.json is a standardized metadata document at a domain's well-known URI that tells AI clients your exact MCP transport URL, supported protocol versions, authentication methods, and documentation links without manual configuration guessing.
Design every POST /api/mcp/v1 request to authenticate and execute independently without relying on in-memory sticky Node.js sessions so you can scale across multiple worker replicas behind Caddy or Nginx effortlessly. Enforce Redis-backed token-bucket rate limits keyed by (orgId, tokenId, toolCategory), log every mutating tools/call invocation with its JSON-RPC id and caller token fingerprint into your immutable audit log, and return standard HTTP 429 Retry-After headers so well-behaved AI agents back off cleanly rather than retrying aggressively.
Explore With AI & Cite This Page
Open a grounded prompt in your AI assistant or copy a clean Markdown, HTML, or APA reference link.
Validate protocols and subnets directly in your browser or continue reading related architecture notes.
What Is My IP — IPv4, IPv6, rDNS & Headers
Free IP Subnet Calculator & CIDR Cheat Sheet
SSH Keygen Generator & Cloud-Init YAML Builder
Dedicated MCP Server Hosting Architecture: Running Model Context Protocol Servers in Production
Production reference architecture for hosting Model Context Protocol (MCP) servers over Streamable HTTP (/api/mcp/v1) and SSH Stdio with systemd sandboxing, unbuffered reverse proxies, and scoped token boundaries.
2026 AI Agent Protocols Explained: Streamable HTTP MCP (129 Tools), Google A2A (agent.json), llms.txt & SKILL.md
Architectural breakdown of the 2026 open AI agent protocol stack: how MCP Streamable HTTP (vertical tool calling across 129 sau_* tools) complements Google A2A (horizontal peer-agent delegation via /.well-known/agent.json), llms.txt, and SKILL.md.
What Is the Best VPS for Running AI Agents? Hand Your Infrastructure to Claude with the v1 API
What is the best VPS for running AI agents? Compare top AI agent VPS providers, memory and vCPU sizing for Claude Code, OpenClaw, MCP, Dify, and n8n, and manage your server with our scoped v1 REST API and 129-tool MCP server.
AI Agent Infrastructure & Streamable HTTP MCP Hosting (2026): Sandboxed KVM VMs & 129 Scoped Tools
How to architect production AI agent infrastructure and Streamable HTTP Model Context Protocol (MCP) servers in 2026: KVM kernel isolation, dynamic PAT scope filtering across 129 sau_* tools, async 202 reservations, and SSE reverse-proxy tuning.