Docker MCP Gateway Configuration Guide: Connect Remote Streamable HTTP Data MCPs
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.
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 Metric | 10 Local Container MCP Servers | Docker MCP Gateway + Remote AgentAPIGate |
|---|---|---|
| Disk & RAM Footprint | 3.2 GB – 6.8 GB container layers + Chromium RSS | 0 MB extra image pull (type: remote streamable-http) |
| Tool Schema Context Cost | 18,000+ tokens injected on every prompt turn | ~363 – 640 tokens total (4 progressive hub tools) |
| Credential Isolation | 10 separate upstream API keys in .env files | 1 scoped aag_agent_* key via docker mcp secret set ($5/day cap) |
| Multi-Client HTTP Mode | Manual port mapping per container | docker mcp gateway run --port 8080 --transport streaming |
| Upstream Failure Billing | Pay monthly SaaS subscriptions regardless of 429/503 | $0.00 charged on non-200 or empty responses |
“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.
“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.
Generate Valid type: remote Catalog YAML & Test Live in 2 Seconds
Docker MCP Gateway Config & Secret Command Generator
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# 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
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 -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"}'aag_agent_* daily cap sub-keys.Get $0.25 Free Sandbox & Scoped Key → Run First Call in 10sDocker MCP Gateway FAQ
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.