AgentAPIGate
Containerized Agent Infrastructure · Verified Catalog v3 Schema

Docker MCP Gateway Configuration Guide: Connect Remote Streamable HTTP Data MCPs

Engineering Summary (BLUF)

Docker MCP Gateway (docker mcp gateway run) centralizes tool discovery, secret injection, and transport routing across containerized and remote Model Context Protocol servers. Instead of pulling 10 heavy scraper images into local memory, declare a type: remote + transport_type: streamable-http entry pointing to https://mcp.agentapigate.ai/mcp, bind a daily-capped aag_agent_* secret via docker mcp secret set, and expose 136+ live X, Reddit, Google SERP, Web/PDF Markdown, and Maps tools in ~363 schema tokens.

01 / Local Containerized Scrapers vs Remote Streamable HTTP Entry

Why Mount Remote Data MCPs Inside Docker MCP Gateway?

Docker MCP Gateway excels at unifying local filesystem/database containers with cloud data gateways behind one endpoint and secret store — eliminating local browser containers and datacenter IP blocks.

Operational Metric10 Local Container MCP ServersDocker MCP Gateway + Remote AgentAPIGate
Disk & RAM Footprint3.2 GB – 6.8 GB container layers + Chromium RSS0 MB extra image pull (type: remote streamable-http)
Tool Schema Context Cost18,000+ tokens injected on every prompt turn~363 – 640 tokens total (4 progressive hub tools)
Credential Isolation10 separate upstream API keys in .env files1 scoped aag_agent_* key via docker mcp secret set ($5/day cap)
Multi-Client HTTP ModeManual port mapping per containerdocker mcp gateway run --port 8080 --transport streaming
Upstream Failure BillingPay monthly SaaS subscriptions regardless of 429/503$0.00 charged on non-200 or empty responses
Primary Source · github.com/docker/mcp-gateway
“Docker MCP Gateway runs as a Docker CLI plugin (docker mcp gateway run) supporting catalog-defined remote streamable-http servers, secret injection from Docker Desktop or dotenv files, and streaming HTTP transport.”

Verified against docker/mcp-gateway (pkg/catalog/types.go & docs/mcp-gateway.md). Always pair --port 8080 with --transport streaming.

Independent Registry Benchmark · Glimind Audit
“Audited Grade A (96/100) remote Streamable HTTP MCP server delivering ~150ms median handshake latency and ~363 compact Code Mode schema tokens across real-time community and search tools.”

Source: Glimind Independent MCP Registry Audit. Native OAuth 2.1 PKCE (docker mcp oauth --help) is also supported out of the box.

02 / Interactive Catalog YAML, CLI & Zero-Docker cURL Verifier

Generate Valid type: remote Catalog YAML & Test Live in 2 Seconds

Verified against github.com/docker/mcp-gateway pkg/catalog/types.go

Docker MCP Gateway Config & Secret Command Generator

0 Local Container Pulls · 150ms p50 Handshake
1. Select Remote Data Packs
2. Credential Mode
3. Gateway Transport
agentapigate-catalog.yaml
registry:
  agentapigate:
    title: AgentAPIGate Live Data MCP (Reddit & HN, Google SERP & News, Web / PDF Markdown)
    type: remote
    description: Unified real-time Reddit & HN, Google SERP & News, Web / PDF Markdown tools via Streamable HTTP (~363 tokens Code Mode)
    remote:
      transport_type: streamable-http
      url: https://mcp.agentapigate.ai/mcp
      headers:
        Authorization: "Bearer ${AGENTAPIGATE_API_KEY}"
    secrets:
      - name: agentapigate.api_key
        env: AGENTAPIGATE_API_KEY
        example: aag_agent_your_scoped_subkey
Docker MCP CLI Commands
# 1. Store scoped read-only sub-key ($5/day ceiling) in Docker Desktop secret store
docker mcp secret set agentapigate.api_key=aag_agent_your_scoped_subkey

# 2. Run multi-client HTTP streaming gateway (--transport streaming is required with --port)
docker mcp gateway run --port 8080 --transport streaming --catalog ./agentapigate-catalog.yaml --servers agentapigate --secrets=docker-desktop:./.env --verbose
Zero-Docker Instant Verification (Test Remote Endpoint in 2 Seconds)
cURL #1 — Zero-Auth JSON-RPC tools/list (~150ms)
curl -sS -X POST https://mcp.agentapigate.ai/mcp \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/list","params":{}}'
cURL #2 — Authenticated Live Data (reddit.search.posts)
curl -sS -X POST https://api.agentapigate.ai/v1/invoke \
  -H "Authorization: Bearer ${AGENTAPIGATE_API_KEY:-aag_agent_your_scoped_subkey}" \
  -H "Content-Type: application/json" \
  -d '{"capability":"reddit.search.posts","params":{"query":"docker mcp gateway remote streamable http","sort":"relevance"},"format":"compact"}'
Preloaded $0.25 free sandbox + isolated aag_agent_* daily cap sub-keys.Get $0.25 Free Sandbox & Scoped Key → Run First Call in 10s

How do you connect a remote Streamable HTTP MCP server in Docker MCP Gateway?

Define a catalog entry under registry.<name> with type: remote and remote.transport_type: streamable-http pointing to https://mcp.agentapigate.ai/mcp, inject Authorization: "Bearer ${AGENTAPIGATE_API_KEY}" via secrets, and start the gateway with docker mcp gateway run.

Why does docker mcp gateway run --port 8080 fail unless --transport streaming is passed?

By default, docker mcp gateway run starts in single-client stdio mode. When binding a network port such as --port 8080 for multi-client or containerized agent access, Docker MCP Gateway requires explicit --transport streaming alongside --port.

How do I pass API credentials to Docker MCP Gateway without plaintext YAML keys?

Declare a secrets entry (name: agentapigate.api_key, env: AGENTAPIGATE_API_KEY) in your catalog YAML, store your scoped read-only aag_agent_* sub-key via docker mcp secret set agentapigate.api_key=aag_agent_..., or pass --secrets=docker-desktop:./.env at runtime.

Can I test AgentAPIGate MCP tools before installing the Docker MCP CLI plugin?

Yes. Because https://mcp.agentapigate.ai/mcp is a native cloud Streamable HTTP endpoint (and https://api.agentapigate.ai/v1/invoke exposes stateless REST), you can verify tools/list and execute live queries in 2 seconds using standard curl or 1-Click MCP OAuth 2.1.