← Back to Reading
ByteByteGo 2026-10-28

How Uber Built A Gateway For AI Agents To Access Tools

General-purpose LLMs lack access to internal system context, such as logs, metrics, and incident reports, required to diagnose and answer domain-specific system queries. To bridge this gap, developers provide models with tools, which act as executable operations that can retrieve relevant data. These tools typically wrap existing APIs, supplying the model with structured definitions of what the service does and what inputs it expects. The model selects the appropriate tool and inputs, while the hosting application executes the call and returns the resulting information. Uber adopted the Model Context Protocol (MCP) as a standardized framework to connect AI applications to external capabilities and tools. While MCP standardizes client-server interactions via structured JSON-RPC 2.0 messages, decentralized adoption across Uber led to fragmented tool discovery, redundant infrastructure, and permission management challenges. Additionally, Uber's heterogeneous service architecture spanning HTTP, gRPC, and TChannel prevented direct forwarding of requests. To address these issues, Uber introduced a centralized MCP Gateway to manage tool discovery, security, operational support, and protocol mediation. The Uber MCP Gateway platform is structured into two primary components: the MCP Registry and the Proxy Gateway. This architectural division allows Uber's engineering team to separate the management of tool definitions from access permissions. The decoupled design enables independent operational control across tool configurations and security policies.

Read the original ↗
Contents 13 sections
  1. 01Why AI Agents Need Tools
  2. 02The Role of MCP at Uber
  3. 03How the Uber MCP Gateway is Designed
  4. 04MCP Registry
  5. 05The Proxy Gateway
  6. 06How Tools Are Discovered
  7. 07From Existing API Definitions
  8. 08Discovering Native MCP Servers
  9. 09Discovering Tools vs Permission to Use Them
  10. 10How Uber’s MCP Gateway Works
  11. 11How the Gateway Takes Care of Access
  12. 12How the Uber MCP Gateway Deals With A Huge Catalog
  13. 13Conclusion

Why AI Agents Need Tools

General-purpose LLMs lack access to internal system context, such as logs, metrics, and incident reports, required to diagnose and answer domain-specific system queries. To bridge this gap, developers provide models with tools, which act as executable operations that can retrieve relevant data. These tools typically wrap existing APIs, supplying the model with structured definitions of what the service does and what inputs it expects. The model selects the appropriate tool and inputs, while the hosting application executes the call and returns the resulting information.

  • General-purpose LLMs require access to specific operational data (like logs, metrics, and deployments) to diagnose system issues.
  • A tool represents an operation an AI application can execute on behalf of an LLM.
  • In a tool-calling workflow, the model selects the tool and inputs, the application runs the execution, and the result is returned to the model.
  • Many tools are built directly on top of existing service APIs.
  • Using an API as a tool requires providing a structured definition specifying the service's purpose and expected inputs to the agent.

The Role of MCP at Uber

Uber adopted the Model Context Protocol (MCP) as a standardized framework to connect AI applications to external capabilities and tools. While MCP standardizes client-server interactions via structured JSON-RPC 2.0 messages, decentralized adoption across Uber led to fragmented tool discovery, redundant infrastructure, and permission management challenges. Additionally, Uber's heterogeneous service architecture spanning HTTP, gRPC, and TChannel prevented direct forwarding of requests. To address these issues, Uber introduced a centralized MCP Gateway to manage tool discovery, security, operational support, and protocol mediation.

  • Model Context Protocol (MCP) standardizes how AI applications discover and invoke external tools using JSON-RPC 2.0 formatting.
  • The core components of the architecture include the MCP client within AI apps, MCP servers exposing capabilities, and individual MCP tools defined with structured input schemas.
  • Decentralized implementations across Uber's engineering teams led to redundant tool management, siloed discovery, and inconsistent permission controls.
  • Heterogeneous internal communication protocols across Uber (HTTP with JSON, gRPC with Protobuf, and TChannel) made standard MCP request routing difficult.
  • Uber designed an MCP Gateway layer to provide shared tool discovery, unified security, and operational support across services.

How the Uber MCP Gateway is Designed

The Uber MCP Gateway platform is structured into two primary components: the MCP Registry and the Proxy Gateway. This architectural division allows Uber's engineering team to separate the management of tool definitions from access permissions. The decoupled design enables independent operational control across tool configurations and security policies.

  • The Uber MCP Gateway platform consists of two main components: the MCP Registry and the Proxy Gateway.
  • The architecture decouples tool definition management from permission management.
  • This separation allows Uber's engineering team to handle configurations and access controls independently.

MCP Registry

The MCP Registry serves as the control plane for managing MCP servers and tools. It maintains a centralized catalog with information required to discover and understand available tools. Furthermore, it manages tool configurations, allowing administrators to enable or disable tools while serving as a shared source of truth.

  • The MCP Registry functions as the control plane for MCP servers and tools.
  • It maintains a catalog with the information required to discover and learn about tools.
  • Configuration management, such as enabling or disabling tools, is handled directly via the registry.
  • The registry acts as a shared source of truth.

The Proxy Gateway

The Proxy Gateway serves as the data plane responsible for processing active MCP requests while agents execute tasks. Upon receiving a request, the gateway identifies the specified tool, enforces required controls, and routes the call to the appropriate destination service. Finally, it formats and returns the execution results in an MCP-compatible structure.

  • The Proxy Gateway functions as the data plane handling live MCP requests.
  • The gateway inspects agent requests to identify the targeted tool.
  • Required controls and policies are applied by the gateway prior to forwarding requests.
  • Requests are routed by the gateway to the designated destination service.
  • Responses processed through the gateway are formatted to remain compatible with MCP.

How Tools Are Discovered

Manually creating Model Context Protocol (MCP) integrations across thousands of services is error-prone and labor-intensive. To solve this scalability challenge, Uber automated the integration lifecycle using an internal system called AutoCrawler. AutoCrawler functions as a distributed workflow system driven by Cadence that scans for new services, APIs, and schema changes. It then generates or retrieves tool definitions and automatically registers them into an MCP registry.

  • Manually building MCP integrations for thousands of services is too labor-intensive and error-prone at scale.
  • Uber automated MCP integration creation and tool discovery using a distributed workflow system called AutoCrawler.
  • AutoCrawler identifies existing APIs and MCP servers, generates or fetches their tool definitions, and registers them in an MCP registry.
  • AutoCrawler is powered by Cadence and operates via scheduled workflow jobs designed to detect new services, APIs, or schema changes.

From Existing API Definitions

Internal Definition Languages (IDLs) provide machine-readable specifications of service interfaces, including operation names, fields, and documentation. AutoCrawler parses these existing IDL definitions to automatically build or update Model Context Protocol (MCP) server representations. It extracts interface structures, translates them into MCP-compliant tool schemas, and uses an LLM to generate improved tool descriptions before saving them to a registry. This workflow exemplifies Uber's no-code approach to automatically building MCP interfaces from existing service contracts.

  • Internal Definition Languages (IDLs) provide machine-readable descriptions of service interfaces including operations, fields, and comments.
  • AutoCrawler automatically parses IDL definitions to generate or update MCP server representations.
  • AutoCrawler extracts method names along with request and response structures to produce valid MCP tool schemas.
  • An LLM is employed by AutoCrawler to generate higher-quality tool descriptions from extracted service metadata.
  • Constructed tool definitions are persisted directly into a registry.
  • AutoCrawler illustrates Uber's no-code strategy by generating MCP interfaces entirely from existing service contracts.

Discovering Native MCP Servers

At Uber, services that directly implement the Model Context Protocol are termed native MCP servers. Because these servers inherently provide their own tool definitions, AutoCrawler requires less effort to ingest them. Native MCP servers emit heartbeat metrics indicating their presence and readiness, which AutoCrawler monitors. Upon finding a server, AutoCrawler queries its listTools operation and creates proxy representations of the tools and schemas in a central registry catalog.

  • At Uber, services that directly implement MCP are designated as native MCP servers.
  • Native MCP servers already contain pre-defined tool definitions, streamlining discovery for AutoCrawler.
  • Native servers emit heartbeat metrics to broadcast their availability and operational readiness.
  • AutoCrawler detects servers via heartbeat signals and executes their listTools operation to retrieve tool specifications.
  • Discovered tools and their schemas are stored as proxy representations in a unified registry catalog.

Discovering Tools vs Permission to Use Them

Uber adopted a design pattern where newly discovered servers and tools are registered in a disabled state by default. Automatic discovery provides platform visibility, but the owning service team must inspect and approve the tool definitions before agents can access them. Updates to tool definitions are handled as diffs via a registry interface that require explicit approval prior to deployment. This setup also provides rollback mechanisms to previous versions if issues arise.

  • Newly discovered tools and servers at Uber start in a disabled state by default.
  • Automatic discovery merely establishes platform visibility, leaving tool enablement as an ownership decision.
  • Service owner teams are responsible for verifying tool descriptions and definitions for accuracy.
  • Tool definition modifications are submitted as diffs through a registry interface and require review before deployment.
  • The registry system supports rolling back tool definitions to previous versions.

How Uber’s MCP Gateway Works

Uber's MCP Gateway periodically consumes tool configurations from a registry to refresh its in-memory state without requiring redeployments or service restarts. Inside the gateway, tool configurations are organized into virtual MCP servers that expose specific endpoints to clients such as AI agents. Upon receiving a tool call, a gateway handler translates JSON tool arguments into downstream formats like Protobuf for gRPC, forwards the call, and maps the response back into an MCP-compatible result. This gateway architecture flexibly supports various downstream service types, including gRPC, HTTP, and TChannel with Thrift.

  • The MCP Gateway data plane periodically updates in-memory tool mappings from a registry, enabling dynamic configuration changes without service restarts.
  • Virtual MCP servers function as logical interfaces within the gateway, bundling collections of tools behind specific endpoints.
  • Gateway handlers resolve downstream destinations and translate JSON arguments into target formats, such as serializing requests into Protobuf bytes for gRPC.
  • The gateway handles response normalization by converting downstream service outputs into MCP-compatible results for calling clients.
  • The architecture supports multiple backend communication protocols, including gRPC, HTTP, TChannel, and Thrift.

How the Gateway Takes Care of Access

Uber's engineering team utilizes a shared gateway to enforce access control rules and policies across their tools. The platform supports granular authorization down to the individual tool level based on caller identity, whether a human, service, or AI agent. Additionally, the gateway redacts sensitive information such as PII and orchestrates token exchanges with third-party services like Jira and Google to securely access external MCP servers.

  • The gateway acts as a centralized enforcement layer for access rules across all tools.
  • Access policies can be configured at both the server level and granular tool level, accommodating human, service, and AI agent callers.
  • The gateway can redact personally identifiable information (PII) and other sensitive data from tool responses.
  • For third-party systems like Jira and Google, caller internal user tokens are exchanged for external auth tokens prior to making requests to external MCP servers.

How the Uber MCP Gateway Deals With A Huge Catalog

Uber's MCP Gateway manages thousands of tools, which can create significant context window constraints for AI agents. Loading exhaustive tool schemas and receiving verbose tool responses unnecessarily consumes context needed for instructions and conversation history. To resolve this, Uber introduced three enhancements: Omni MCP for gradual tool discovery, Response Projection to filter response fields, and Code Mode to allow agents to interact with results via shell commands and files.

  • Loading thousands of tool descriptions and schemas upfront exhausts an LLM's finite context window.
  • Detailed API responses consume context even when tasks only require a few specific fields.
  • Omni MCP acts as a proxy server offering gradual discovery via tools like discover_server and get_tool_schema.
  • Response Projection uses a GraphQL-like pattern to strip unrequested fields from tool responses at the gateway level.
  • Code Mode enables coding agents to handle and process tool results using files and shell commands.

Conclusion

Uber developed the MCP Gateway to resolve fragmentation caused by dozens of teams independently setting up Model Context Protocol (MCP) integrations. The unified platform eliminated duplicated infrastructure, inconsistent tooling, and missing security standards by allowing any team to plug in within minutes. Guided by the philosophy of leveraging existing APIs rather than rewriting services, the gateway handles heavy lifting around tool connectivity. The overarching lesson is that infrastructure elements like discovery, security, and reliability form the most challenging part of deploying agentic AI in production.

  • Uber centralized fragmented MCP integrations across teams by deploying a unified MCP Gateway platform.
  • The MCP Gateway allows teams to connect within minutes without having to rewrite existing services or APIs.
  • The platform solves issues related to inconsistent tooling, duplicated infrastructure, and lack of shared security guarantees.
  • Building connective tissue—specifically discovery, security, and reliability—is highlighted as the most difficult aspect of production agentic systems.