Skip to content
View original post on X: meng shao
Published
Pick

Uber Designs an MCP Gateway to Expose Thousands of Internal APIs to AI Agents

AIUber uses a control plane and data plane gateway to automatically convert its internal APIs into MCP tools, with 800+ MCP servers and 5,000+ tools hosted. The design includes an AutoCrawler that generates tool descriptions with an LLM, a default-disabled discover-not-expose security model, and techniques such as Omni MCP, Response Projection, and Code Mode to limit context bloat.

AIWhy it matters.

The article details how Uber converts thousands of internal APIs into MCP tools, including discovery, permission, and context-size tactics that transfer to other enterprise agent deployments.

@shao__meng
View on X

Uber MCP Gateway Engineering Practice: An Enterprise-Grade MCP Management Platform for AI Agents @UberEng

Uber uses a "control plane + data plane" gateway architecture to automatically translate thousands of existing internal APIs across the company into MCP tools, allowing AI Agents to call the company's full range of capabilities without modifying any backend services. It currently hosts 800+ MCP servers and 5,000+ tools.

The Problem Being Solved
As AI Agents rapidly spread inside Uber, hundreds of teams each built their own MCP integrations with backend services, leading to tool fragmentation and duplicated infrastructure. Uber's view: what was missing was not a smarter model, but a unified way to "connect the organization"—discovery, security, and reliability foundations that make Agents trustworthy.

Architecture: A Classic Two-Plane Separation
· MCP Registry (control plane): the company-wide catalog and single source of truth for tools, managing discovery, ownership, and enable/disable. It supports multiple forms, from "zero-code wrapping of existing APIs" to "native MCP services."
· Proxy Gateway (data plane): actually executes MCP requests at runtime, bidirectionally converting between the MCP protocol and HTTP / gRPC / TChannel (Uber's in-house RPC protocol), forwarding downstream via Muttley (service mesh sidecar), and converting responses back into MCP JSON. Configuration is hot-reloaded without restarts.

Three Designs with the Most Engineering Value
1. AutoCrawler: Automated "MCP-fication" of Existing APIs. Built on the Cadence workflow engine, it continuously scans the internal IDL registry (Protobuf/Thrift definitions) and runs a five-step pipeline for each new service: create a virtual server → parse schemas and doc comments → use an LLM to generate agent-friendly tool descriptions → convert Protobuf/Thrift into MCP-compatible JSON-RPC 2.0 schemas → register. The entire process requires no code written by service teams.

2. A "Discovery ≠ Exposure" Security Model. All tools are disabled by default and must be explicitly reviewed and enabled by the team that owns the service; changes to tool descriptions go through config-diff approval and are rollback-capable. Authorization is granular down to individual tools, with different policies applied by caller principal (human/service/Agent), and PII data is automatically redacted out of the box. This carries the traditional governance discipline of platform engineering fully into the agent era.

3. Three Tactics Against Context Bloat. Equipping an agent with hundreds of servers would directly overflow the model's context window, so Uber's solution is layered:
· Omni MCP: a single entry point plus four meta-tools (discover_server → discover_tools → get_tool_schema → invoke_tool), letting agents progressively discover capabilities on demand instead of loading all definitions at once;
· Response Projection: a GraphQL-like approach where the model declares in its request which fields it needs, and the gateway trims the response at runtime;
· Code Mode: coding agents call tools through the aifx CLI and write output to files, then selectively read them with grep—fully sidestepping context limits, and now the default approach for Uber's internal coding agents.

AITranslated from Chinese
Uber Engineering@UberEng
https://x.com/i/article/2106059544376066048
View quoted post on X
Source details

meng shao · x.comPublished · added here

Original title: Uber MCP 网关设计工程实践:面向 AI Agents 的企业级 MCP 管理平台 @UberEng