Skip to main content
Servers Are Up
Virtual Datacenter
PricingFree Tools
Sign inBrowse catalog
Servers Are Up
Virtual Datacenter
PricingFree Tools
Sign inBrowse catalog
Servers Are Up

Your apps, automation and data on hardware we own. Build a private stack with predictable capacity and access through your dashboard, API or SSH.

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
Engineering Team·Published 2026-10-14·8 min read·Technical Review Verified

Dedicated MCP Server Hosting Architecture: Running Model Context Protocol Servers in Production

mcp ai-agents architecture linux-vps security
api

Engineering Summary & Direct Answer

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.

Instant 60s deploy · Browser SSH & WebRDP included
Launch AI & MCP Server (WELCOME20) Read MCP DocsVirtual Datacenter Pools ($12–$380/mo)
On this page (5 sections)
  1. Why Desktop Stdio MCP Subprocesses Break in Production
  2. Protocol Internals: Streamable HTTP vs. Legacy HTTP+SSE vs. SSH Stdio
  3. How ServersAreUp Exposes 129 Native sau_* Tools at /api/mcp/v1
  4. Hardening a Dedicated Custom MCP Server with systemd and Caddy
  5. 1. Kernel Namespace and Cgroup Isolation via systemd
  6. 2. Eliminating Reverse-Proxy Stream Buffering
  7. Honest Trade-Offs and Production Failure Modes
  8. Sizing Dedicated MCP Hosts on ServersAreUp
  9. Frequently Asked Questions
  10. How many tools does the ServersAreUp hosted MCP server provide?
  11. Should I expose my custom MCP server publicly or over a private WireGuard mesh?
  12. Why do long-running MCP tool calls time out after 60 seconds behind Nginx or Cloudflare?

Why Desktop Stdio MCP Subprocesses Break in Production

Dedicated MCP server hosting architecture decouples Model Context Protocol (MCP) tool execution from developer laptops by running hardened, daemonized MCP processes on isolated Linux virtual machines behind unbuffered TLS 1.3 reverse proxies, scoped Bearer authentication, and default-off inbound network boundaries. Instead of spawning fragile npx or uvx child processes inside a desktop IDE, a dedicated MCP host exposes deterministic JSON-RPC 2.0 endpoints over Streamable HTTP (/api/mcp/v1) or multiplexed SSH Stdio so autonomous CI/CD pipelines, incident-response agents, Claude Code, and Cursor sessions can invoke infrastructure and database tools 24/7 with centralized audit logging.

Local stdio servers are effortless during single-developer prototyping because the host application manages process lifecycle via POSIX pipes (stdin/stdout) and inherits ambient workstation credentials. That exact convenience becomes a structural liability the moment multiple engineers and background agents share tools:

  1. Lifecycle coupling to an interactive desktop: Scheduled triage agents, GitHub Actions runners, and webhook-driven remediation workers execute headlessly. They cannot attach to a pipe owned by an interactive macOS or Windows session that sleeps when a lid closes.
  2. Ambient secret sprawl: Running database, cloud control-plane, or repository MCP servers locally forces every developer to store production API keys, private SSH keys, and database credentials in plaintext JSON config files on laptop disks.
  3. Unbounded memory and CPU contention: Browser-automation MCP servers (Playwright/Chromium) and AST indexers routinely spike to 2–4 GB of resident memory. Spawning three such servers per IDE window starves the local workstation while leaving zero cgroup isolation between tools.
  4. Private subnet reachability: Internal PostgreSQL replicas, Valkey clusters, and private service meshes live on isolated RFC 1918 VLANs (10.0.{vlan}.0/24), not on public endpoints reachable from roaming home Wi-Fi networks.

Protocol Internals: Streamable HTTP vs. Legacy HTTP+SSE vs. SSH Stdio

Early remote MCP implementations relied on a dual-endpoint HTTP+SSE transport: clients opened a persistent GET /sse stream to receive server-to-client events and sent JSON-RPC requests to a separate POST /messages?sessionId=... endpoint. Behind multi-worker reverse proxies or load balancers, split HTTP+SSE created severe sticky-session failures—if the POST landed on Worker B while the open GET /sse socket lived on Worker A, requests failed unless shared pub/sub state was bolted onto every tool server.

Modern production deployments standardize on Streamable HTTP alongside Stdio over SSH:

Transport Pattern Wire Framing & State Model Latency & Proxy Profile Ideal Production Workload
Streamable HTTP (POST /api/mcp/v1) Single endpoint; returns application/json for fast unary calls or upgrades inline to text/event-stream for chunked progress & server notifications; optional Mcp-Session-Id header 1 RTT per stateless tool call over keep-alive HTTP/2; horizontally scalable without sticky TCP routing Multi-user org gateways, hosted control-plane APIs, autonomous cloud agents
Stdio over SSH (ssh -T mcp@host) Raw newline-delimited JSON-RPC 2.0 over encrypted OpenSSH channel (stdin/stdout); stderr reserved strictly for diagnostics Zero HTTP/TLS proxy setup; leverages OpenSSH ControlMaster multiplexing (~2 ms channel open after initial handshake) Single-team internal database/Git tools inside private VLANs or WireGuard meshes
Legacy Split HTTP+SSE (GET /sse + POST) Stateful dual-socket pairing tied to in-memory event emitters Vulnerable to idle 60s proxy timeouts and load-balancer split-brain Legacy compatibility only; avoid for new deployments

How ServersAreUp Exposes 129 Native sau_* Tools at /api/mcp/v1

ServersAreUp operates a production Streamable HTTP MCP gateway directly at https://serversareup.com/api/mcp/v1 alongside our v1 REST API. Rather than wrapping brittle screen-scraping scripts, the gateway binds directly to the same typed provisioning, SDN, storage, and hybrid-fleet state machines that power our web console.

Today, /api/mcp/v1 exposes 129 typed sau_* tools partitioned into two privilege tiers:

  • 5 Zero-Auth Discovery Tools: Publicly callable without a Bearer token so agents can inspect catalog plans, regional capabilities, storage tiers, and API schemas before provisioning.
  • 124 Scoped Operational Tools: Protected by granular Personal Access Tokens (sau_...) covering instance lifecycle, command execution, file transfer, Network Builder entry points, WireGuard VPN meshes, cloud connections, and Managed Cloud Storage. Full client configurations for Claude Code, Cursor, and custom agents are documented in our MCP Documentation.
# Verify JSON-RPC 2.0 Streamable HTTP initialization and list tools against /api/mcp/v1
curl -sS -X POST https://serversareup.com/api/mcp/v1 \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -H "Authorization: Bearer $SAU_MCP_TOKEN" \
  -d '{
    "jsonrpc": "2.0",
    "id": 1,
    "method": "initialize",
    "params": {
      "protocolVersion": "2025-03-26",
      "capabilities": {},
      "clientInfo": { "name": "ops-audit-agent", "version": "1.0.0" }
    }
  }'

Hardening a Dedicated Custom MCP Server with systemd and Caddy

When deploying your own custom MCP servers—such as internal SQL query runners, Playwright browser pools, or repository indexers—on an Ubuntu 24.04 LTS Linux VPS, process isolation and reverse-proxy flushing determine whether your server survives adversarial prompts and long-running tool calls.

1. Kernel Namespace and Cgroup Isolation via systemd

Never run an MCP server as root or bind its HTTP listener to 0.0.0.0. An LLM tool server parses untrusted arguments synthesized from external context (pull requests, support tickets, web pages). If a prompt-injection payload tricks a filesystem or shell tool into reading sensitive paths, Linux mount namespaces and cgroup memory ceilings limit the blast radius:

# /etc/systemd/system/custom-mcp.service
[Unit]
Description=Hardened Production MCP Tool Server (Streamable HTTP)
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
User=mcpuser
Group=mcpuser
WorkingDirectory=/opt/mcp-server
EnvironmentFile=/etc/mcp-server/mcp.env
ExecStart=/usr/bin/node /opt/mcp-server/dist/server.js --host 127.0.0.1 --port 8090

# Restart & cgroup resource bounds (prevents Chromium/worker OOM cascades)
Restart=on-failure
RestartSec=3
MemoryMax=6G
MemoryHigh=5G
CPUQuota=350%
TasksMax=512

# Filesystem & privilege sandboxing
NoNewPrivileges=yes
ProtectSystem=strict
ProtectHome=yes
PrivateTmp=yes
PrivateDevices=yes
ProtectKernelTunables=yes
ProtectControlGroups=yes
RestrictSUIDSGID=yes
ReadWritePaths=/var/lib/mcp-server /var/log/mcp-server

[Install]
WantedBy=multi-user.target

2. Eliminating Reverse-Proxy Stream Buffering

The subtle failure mode that breaks Streamable HTTP MCP servers in production is HTTP response buffering. By default, reverse proxies accumulate upstream chunks into 4 KiB–32 KiB memory buffers before flushing bytes to the client. When an MCP tool emits incremental notifications/progress events over text/event-stream while running a 45-second build or database check, buffered proxies hold those events silent until the buffer fills—causing the agent client's read timer to abort the tool call mid-flight.

Configure Caddy (or Nginx with proxy_buffering off; proxy_request_buffering off;) to flush upstream frames immediately while enforcing strict header validation:

# /etc/caddy/Caddyfile
mcp.internal.example.com {
    @missing_auth {
        not header Authorization "Bearer *"
    }
    respond @missing_auth "Unauthorized MCP request" 401

    reverse_proxy 127.0.0.1:8090 {
        # Mandatory for MCP text/event-stream progress frames
        flush_interval -1

        header_up Host {host}
        header_up X-Real-IP {remote_host}
        transport http {
            read_timeout 300s
            write_timeout 300s
            response_header_timeout 30s
        }
    }
}

Honest Trade-Offs and Production Failure Modes

Running remote MCP infrastructure introduces failure modes that engineers must design around explicitly:

  • Agent retry storms on non-idempotent tools: If a network blip drops an HTTP response after a mutating tool executes, LLM runtimes frequently re-invoke the tool automatically. Any mutating MCP tool (creating VMs, firing webhooks, inserting rows) should accept or derive a deterministic idempotency key so duplicate calls return the prior result rather than provisioning duplicate infrastructure.
  • Context-window bloat from oversized tool outputs: Returning a raw 4 MB log dump or unpaginated JSON array from tools/call exhausts agent token budgets in one turn. Cap every tool payload (for example, 32 KiB max with cursor pagination and line-range slicing).
  • Stdout pollution on SSH Stdio servers: Over the SSH stdio transport, stdout is the JSON-RPC wire. A single stray console.log("Connected to DB") from a third-party library corrupts the JSON-RPC parser and kills the session. Force all logging frameworks (Pino, Winston, Python logging) to write exclusively to stderr (file descriptor 2).

Sizing Dedicated MCP Hosts on ServersAreUp

All ServersAreUp virtual machines run on US-owned Dell PowerEdge R940 enterprise nodes powered by Intel Xeon Platinum processors, ECC Registered DDR4 RAM, persistent enterprise SAS ZFS RAID-Z3 storage, a multi-gigabit symmetrical fiber internet uplink, and a 10 Gbps internal virtual and storage fabric:

  • Stateless API & Database Read-Replica Wrappers: Linux Starter ($6/mo, 2 vCPU / 2 GB ECC RAM / 50 GB ZFS storage) or Linux Basic ($10/mo, 2 vCPU / 4 GB ECC RAM / 80 GB ZFS storage) on /linux.
  • Playwright Browser Automation & Sandboxed Code Runners: Linux Standard ($18/mo, 4 vCPU / 8 GB ECC RAM / 160 GB ZFS storage), giving Chromium workers headroom under MemoryMax=6G.
  • Multi-Team MCP Gateways & Symbol/AST Indexers: Linux Pro ($28/mo, 8 vCPU / 16 GB ECC RAM / 320 GB ZFS storage) or isolated VMs carved from a pooled Virtual Datacenter starting at $12/mo.

Frequently Asked Questions

How many tools does the ServersAreUp hosted MCP server provide?

The production Streamable HTTP endpoint at https://serversareup.com/api/mcp/v1 provides 129 sau_* tools—5 zero-auth catalog and schema discovery tools plus 124 scoped operational tools for managing Linux and Windows VMs, containers, SDN firewall policies, hybrid connectors, and cloud storage. Visit /docs/mcp for setup details.

Should I expose my custom MCP server publicly or over a private WireGuard mesh?

If your MCP server is only invoked by internal engineers and your own CI/CD runners, keep all public inbound entry points off by default in the Network Builder and reach the server over a private 172.30.x.0/24 WireGuard mesh (/dashboard/network?tab=vpn) using SSH stdio or private HTTPS. Expose a public TLS endpoint only when cloud-hosted SaaS agents without VPN support must reach it—and enforce scoped Bearer tokens plus source CIDR allow-lists.

Why do long-running MCP tool calls time out after 60 seconds behind Nginx or Cloudflare?

Intermediate proxies terminate connections that emit zero response bytes within their upstream read window (commonly 60–100 seconds). Switch your MCP server to Streamable HTTP chunked text/event-stream responses, emit periodic MCP notifications/progress frames every 10–15 seconds during heavy work, and set flush_interval -1 (Caddy) or proxy_buffering off (Nginx).

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

Server Uptime Best Practices for 2026: What Experts Recommend

Older Article

Multi-Cloud Management Dashboard Architecture: Unified Control Plane Design for Hybrid Fleets

Related Diagnostic Tools & Engineering Guides

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

Free Browser Tool

Linux, Windows & Game Server Hardening Checklist

Launch utility
Free Browser Tool

Cron to Systemd .timer & .service Generator

Launch utility
Free Browser Tool

Cloud Cost & Infrastructure ROI Calculator

Launch utility

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.

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

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.

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.

On this page

  1. Why Desktop Stdio MCP Subprocesses Break in Production
  2. Protocol Internals: Streamable HTTP vs. Legacy HTTP+SSE vs. SSH Stdio
  3. How ServersAreUp Exposes 129 Native sau_* Tools at /api/mcp/v1
  4. Hardening a Dedicated Custom MCP Server with systemd and Caddy
  5. 1. Kernel Namespace and Cgroup Isolation via systemd
  6. 2. Eliminating Reverse-Proxy Stream Buffering
  7. Honest Trade-Offs and Production Failure Modes
  8. Sizing Dedicated MCP Hosts on ServersAreUp
  9. Frequently Asked Questions
  10. How many tools does the ServersAreUp hosted MCP server provide?
  11. Should I expose my custom MCP server publicly or over a private WireGuard mesh?
  12. Why do long-running MCP tool calls time out after 60 seconds behind Nginx or Cloudflare?
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