Skip to main content
Servers Are UpVirtual Datacenter
Virtual Datacenter
Pricing
Sign inExplore plans
Servers Are UpVirtual Datacenter
Virtual Datacenter
Pricing
Sign inExplore plans
Servers Are UpVirtual Datacenter

Private cloud servers, pooled Virtual Datacenters, and encrypted cloud storage on hardware we own—open any server in your browser or automate with API & MCP.

Customer Portal & Services

Client DashboardMy ServersBrowser ConsoleBillingAPI Keys & MCPSupport
SLA with service creditsOwned hardwareUS-based

Make room for your next idea

Explore the capacity, apps and access options that fit your workload. Check current availability and your total before you buy.

Sign up freeView Pricing

Products

  • Linux VPS
  • Windows VPS
  • Cloud & SaaS Services
  • Cloud Storage (Azure)
  • Virtual Datacenter
  • AI & Agent Hosting
  • Containers
  • Instant Apps
  • Software Platforms
  • Network builder
  • Game Servers
  • Free Game Servers
  • Pricing

Resources

  • Free Network Tools
  • 2026 Pricing Benchmark
  • Live SVG Badges
  • Latency & Speed Test
  • Guides & Tutorials
  • Documentation
  • API Reference
  • MCP Server
  • CLI & SDKs
  • OpenAPI & llms.txt
  • Use Cases
  • Free Migration
  • Uptime & Reliability
  • Datacenter
  • System Status
  • Network
  • Provider Comparisons Hub
  • Compare Providers

Company

  • About Us
  • Enterprise
  • Security Architecture
  • Trust Center
  • Blog
  • FAQ
  • Compliance
  • Startup Program
  • Open-Source Sponsorship
  • Press & Media Kit
  • Referral Program
  • Help Center
  • Contact Us
© Servers Are Up
TermsPrivacySLARefund PolicyDPAAcceptable Use
Service information
Back to Engineering BlogAI Agents & MCP
AI Infrastructure Team·Published 2026-10-30·8 min read·Technical Review Verified

How to Package, Host, and Register a Production Model Context Protocol (MCP) Server in 2026

mcp ai-agents openapi claude
cursor
architecture

Engineering Summary & Direct Answer

Complete engineering blueprint for shipping a stateless Streamable HTTP MCP server with SEP-1649 /.well-known/mcp/server-card.json discovery, scoped Bearer/OIDC tokens, and listing it across official MCP registries.

Instant 60s deploy · Browser SSH & WebRDP included
Launch AI & MCP Server (WELCOME20) Read MCP DocsVirtual Datacenter Pools ($12–$380/mo)
On this page (8 sections)
  1. How Do You Publish and Register a Production MCP Server?
  2. Why Stateless Streamable HTTP Beats Local stdio Subprocesses in Production
  3. The Complete 2026 MCP Discovery & Registry Artifact Matrix
  4. Implementing a Stateless Streamable HTTP JSON-RPC 2.0 Handler in TypeScript
  5. Authoring SEP-1649 server-card.json & Submitting to Official Registries
  6. Tool Design Rules for High-Reliability Agent Execution
  7. Publishing Agent Skills (/.well-known/agent-skills/index.json) & Markdown Content Negotiation
  8. Hosting Your Open-Source MCP Server 24/7
  9. Frequently Asked Questions
  10. Why prefer Streamable HTTP MCP over local stdio subprocesses?
  11. Why should a remote MCP server expose zero-auth discovery tools alongside authenticated tools?
  12. How do I restrict what an AI assistant can mutate on my infrastructure?
  13. What is /.well-known/mcp/server-card.json used for?
  14. How should stateless Streamable HTTP MCP servers handle horizontal scaling and rate limiting?

How Do You Publish and Register a Production MCP Server?

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.


Why Stateless Streamable HTTP Beats Local stdio Subprocesses in Production

First-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:

  1. Supply-Chain & Runtime Drift: 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.
  2. Impossible Cloud-to-Cloud Execution: Cloud-hosted agents (Slack/GitHub background coding agents, mobile clients, browser IDEs, and headless workflow runners) cannot spawn local laptop stdio binaries.
  3. Secret Sprawl Across Laptops: Distributing raw database DSNs or broad cloud admin keys into plaintext mcp.json files on thirty engineer laptops violates zero-trust credential hygiene.
  4. Zero Centralized Audit or Rate Limiting: When an agent calls a remote Streamable HTTP endpoint over TLS 1.3, every tools/call invocation passes through centralized token-scope validation, token-bucket rate limiting, SSRF filtering, and immutable AuditLog recording.

The Complete 2026 MCP Discovery & Registry Artifact Matrix

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

Implementing a Stateless Streamable HTTP JSON-RPC 2.0 Handler in TypeScript

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: {} });
}

Authoring SEP-1649 server-card.json & Submitting to Official Registries

Automated 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"}}}'

Tool Design Rules for High-Reliability Agent Execution

Designing MCP tool schemas requires stricter ergonomics than human REST endpoints:

  1. Keep Input Schemas Flat & Explicitly Typed: Deeply nested oneOf unions confuse smaller tool-calling models. Prefer flat JSON Schema properties with enum constraints and concise descriptions under 160 characters per parameter.
  2. Return Actionable Error Remediation Inside 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.").
  3. Separate Destructive Mutations Behind Narrow Scopes: Never bundle 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).
  4. Enforce Outbound SSRF & Payload Bounds on Every Tool Call: Any MCP tool that accepts a webhook target, repository URL, or health-check URI must resolve DNS and reject RFC 1918 private ranges (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.
  5. Truncate & Paginate Tool Outputs Deterministically: Dumping 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.

Publishing Agent Skills (/.well-known/agent-skills/index.json) & Markdown Content Negotiation

Modern 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"
    }
  ]
}

Hosting Your Open-Source MCP Server 24/7

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.


Frequently Asked Questions

Why prefer Streamable HTTP MCP over local 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.

Why should a remote MCP server expose zero-auth discovery tools alongside authenticated tools?

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

How do I restrict what an AI assistant can mutate on my infrastructure?

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.

What is /.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.

How should stateless Streamable HTTP MCP servers handle horizontal scaling and rate limiting?

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.

AI Agent Hosting & 129-Tool Streamable HTTP MCP

Run 24/7 Stateful Agents & Operate Infrastructure via MCP

Dedicated Agent runtimes from $6/mo, Linux KVM nodes from $6/mo ($18/mo for 4 vCPU / 8 GB ECC RAM), and 129 native MCP tools at /api/mcp/v1. Use code WELCOME20 for 20% off your first order.

Launch AI & MCP Server (WELCOME20) Read MCP Docs

Explore With AI & Cite This Page

Open a grounded prompt in your AI assistant or copy a clean Markdown, HTML, or APA reference link.

Ask ChatGPT Ask Perplexity Ask Claude
Share:HN·Reddit·X·LinkedIn
Newer Article

2026 Cloud VPS Price-Per-GB RAM Benchmark: DigitalOcean vs Vultr vs Linode vs Owned US Hardware

Older Article

Server Capacity Planning: Little's Law, Queuing Knee Math, Linux PSI Telemetry, and Tier Sizing

Related Diagnostic Tools & Engineering Guides

Validate protocols and subnets directly in your browser or continue reading related architecture notes.

Free Browser Tool

What Is My IP — IPv4, IPv6, rDNS & Headers

Launch utility
Free Browser Tool

Free IP Subnet Calculator & CIDR Cheat Sheet

Launch utility
Free Browser Tool

SSH Keygen Generator & Cloud-Init YAML Builder

Launch utility

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.

On this page

  1. How Do You Publish and Register a Production MCP Server?
  2. Why Stateless Streamable HTTP Beats Local stdio Subprocesses in Production
  3. The Complete 2026 MCP Discovery & Registry Artifact Matrix
  4. Implementing a Stateless Streamable HTTP JSON-RPC 2.0 Handler in TypeScript
  5. Authoring SEP-1649 server-card.json & Submitting to Official Registries
  6. Tool Design Rules for High-Reliability Agent Execution
  7. Publishing Agent Skills (/.well-known/agent-skills/index.json) & Markdown Content Negotiation
  8. Hosting Your Open-Source MCP Server 24/7
  9. Frequently Asked Questions
  10. Why prefer Streamable HTTP MCP over local stdio subprocesses?
  11. Why should a remote MCP server expose zero-auth discovery tools alongside authenticated tools?
  12. How do I restrict what an AI assistant can mutate on my infrastructure?
  13. What is /.well-known/mcp/server-card.json used for?
  14. How should stateless Streamable HTTP MCP servers handle horizontal scaling and rate limiting?
Self-Serve Infrastructure

Run 24/7 Stateful Agents & Operate Infrastructure via MCP

Dedicated Agent runtimes from $6/mo, Linux KVM nodes from $6/mo ($18/mo for 4 vCPU / 8 GB ECC RAM), and 129 native MCP tools at /api/mcp/v1. Use code WELCOME20 for 20% off your first order.

Launch AI & MCP Server (WELCOME20) Read MCP Docs

Code WELCOME20 · 20% off first order