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

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

- Source: meng shao
- Published: 2026-10-05T04:03:32.000Z
- Bad Influence: https://badinfluence.news/items/qkh0i7v75e6ap7wu6e0ytnhv6
- Original: https://x.com/shao__meng/status/2106958442380644497

## Summary

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

## Why 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.

## Post

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

Uber 把全公司数千个存量 API 用一套 “控制平面 + 数据平面” 的网关体系自动转译成 MCP 工具，让 AI Agents 不改动任何后端服务就能调用整个公司的能力。目前已托管 800+ MCP 服务器、5000+ 工具。

要解决的问题
AI Agents 在 Uber 内部快速铺开，数百个团队各自搭建与后端服务的 MCP 集成，导致工具碎片化和基础设施重复建设。Uber 的判断是：缺的不是更聪明的模型，是一套统一的“连接组织”，发现、安全、可靠性这些让 Agents 值得信任的基建。

架构：经典的两平面分离
· MCP Registry（控制平面）：全公司工具的目录和唯一事实来源，管理发现、所有权、启停。支持从“零代码包装现有 API”到“原生 MCP 服务”的多种形态。
· Proxy Gateway（数据平面）：运行时真正执行 MCP 请求，在 MCP 协议与 HTTP / gRPC / TChannel（Uber 自研 RPC 协议）之间双向转换，经 Muttley（服务网格 sidecar）转发到下游，再把响应转回 MCP JSON。配置热更新，无需重启。

最有工程价值的三个设计
1. AutoCrawler：存量 API 的自动化“MCP 化” 基于 Cadence 工作流引擎，持续扫描内部 IDL 注册表（Protobuf/Thrift 定义），对每个新服务执行五步流水线：建虚拟服务器 → 解析 schema 和文档注释 → 用 LLM 生成对智能体友好的工具描述 → 把 Protobuf/Thrift 转成 MCP 兼容的 JSON-RPC 2.0 schema → 注册。整个流程不需要服务团队写一行代码。

2. “发现 ≠ 暴露” 的安全模型 所有工具默认禁用，必须由拥有该服务的团队显式审核后启用；工具描述的变更要走配置 diff 审批、可回滚。授权细到单个工具，按调用主体（人/服务/Agents）应用不同策略，PII 数据开箱即用自动脱敏。这是把平台工程的传统治理纪律完整搬进了智能体时代。

3. 对抗上下文膨胀的三板斧 给智能体配几百个服务器会直接撑爆模型上下文窗口，Uber 的解法层层递进：
· Omni MCP：单一入口 + 四个元工具（discover_server → discover_tools → get_tool_schema → invoke_tool），让智能体按需渐进式发现，而不是一次性加载全部定义；
· Response Projection：类 GraphQL 思路，让模型在请求里声明只需要哪些字段，网关在运行时裁剪响应；
· Code Mode：编码智能体通过 aifx CLI 调用工具并把输出写入文件，再用 grep 选择性读取；彻底绕开上下文限制，目前已是 Uber 内部编码智能体的默认方式。

## AI translation

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.

![](https://badinfluence.news/api/img-proxy?u=https%3A%2F%2Fpbs.twimg.com%2Fmedia%2FHT1rg37a0AA5Z2T.jpg&mode=thumb&exp=1795737600&sig=9857fc2435297af2)

## Quoted post @UberEng

> https://x.com/i/article/2106059544376066048

https://x.com/UberEng/status/2106071967619322330
