DoorDash AI Team Cuts LLM Search Costs 98% With an MCP Search Gateway
In one sentence
DoorDash built a decoupled MCP search gateway that moves web search out of model APIs, cutting production search costs by over 98% while matching native accuracy.
Key points
- DoorDash introduced DSG, an MCP-compatible gateway that decouples LLM reasoning from web retrieval.
- The gateway supports pluggable search backends like Serper and Bright Data, using exact and semantic caching to reduce redundant queries.
- In production query intent tests, DSG cut search costs from $7.90 to $0.110 per 1,000 queries while achieving 93.90% accuracy.
- A shared warm cache raised hit rates to 99.4%, lowered average latency by 68%, and reduced output format drift.
- However, native search still outperformed DSG on freshness-sensitive benchmarks like FreshQA.
In depth
An AI-written overview of the original article, not the article itself.
DoorDash engineers have introduced Decoupled Search Grounding (DSG), an internal gateway compatible with the Model Context Protocol (MCP) that separates web search from LLM provider APIs. According to the article, this architecture cut production search costs by over 98% while matching or slightly beating native search accuracy.
Why Decouple Native Search
DoorDash notes that native search inside model APIs creates three main issues: swapping models or responding to price changes requires altering integrations, different agents cannot share search results, and per-query cost and latency remain hidden.
Native search also disrupts structured outputs like JSON or Booleans. In DoorDash's HotpotQA test, Claude Sonnet 4 violated "answer only" instructions 78.1% of the time with native search, whereas DSG avoids this by returning evidence as a separate tool response.
How the MCP Gateway Works
Every reasoning model calls a single MCP interface backed by five pluggable providers—Serper, Bright Data, Firecrawl, Exa, and Tavily—plus native search as an option. New HTTP providers can be added via YAML without changing application code.
Queries pass through normalization, an exact cache, and an embedding-based semantic cache before hitting the provider fallback chain. Results are mapped into a unified schema and written back to both cache layers.
Production and Benchmark Results
In DoorDash's production query intent system using Gemini Flash, DSG with Serper achieved 93.90% accuracy on 7,988 retail queries compared to 93.40% for native search, while cutting costs from $7.90 to $0.110 per 1,000 queries.
Across five models on public benchmarks, DSG scored 83% to 86% versus 87.7% for native search at 10 to 30 times lower cost, though native search still won on freshness-sensitive FreshQA. A warm shared cache also raised hit rates to 99.4% and cut latency by 68%.
This summary was generated by AI from the original article and may contain errors; the original is authoritative. Copyright belongs to the original author.