Home / Blog / RAG vs. MCP: Which One Should Your Agent Use
Tech News

RAG vs. MCP: Which One Should Your Agent Use

OpenRouter tested vector RAG, hybrid RAG, and MCP tools on 40 catalog queries across two models, finding MCP scored 40/40 while hybrid RAG hit 16/40.

By Dillip Chowdary • Dec 06, 2026 • Source: openrouter.ai

RAG vs. MCP: Which One Should Your Agent Use
Image: openrouter.ai

At a glance

Benchmark date
October 22, 2026 (published December 3, 2026)
Catalog sizes
3,000 products (~340K tokens) and 80 products (~9K tokens)
Models tested
OpenAI GPT-6 Luna and DeepSeek V4.1 Flash
3,000-item accuracy
MCP 40/40, Hybrid RAG 16/40, Vector RAG 8-9/40
Cost per 1K queries
MCP $0.18/$0.39, Hybrid $0.19/$0.91, RAG $0.21/$1.43
MCP SDK limits
Remote Streamable HTTP or SSE only; no local stdio

OpenRouter published a benchmark on December 3, 2026 comparing retrieval-augmented generation (RAG) against the Model Context Protocol (MCP) for connecting AI agents to structured company data. According to openrouter.ai's report, the company evaluated plain vector RAG, hybrid RAG, and a two-tool MCP server across 40 catalog questions on two language models.

This comparison breaks down how each retrieval architecture operates, how both approaches performed on accuracy, cost, and latency, and where tool schema design caused one model to fail. It is written for AI engineers and backend developers deciding whether to index documents for RAG, expose live queries through MCP, or combine both.

01Prompt-time retrieval versus model-driven tool calls

In a RAG pipeline, an application splits documents into chunks, embeds them into an index ahead of time, and retrieves matching text once before the model sees the question. After narrowing candidates with a rerank model, the application passes those chunks to the LLM, which cannot request additional records if a detail is missing.

Under MCP, a server advertises tools with names, descriptions, and JSON schemas for their arguments so the model fetches records during its turn. The client executes each call against a database, API, or search index and returns the result, allowing the model to chain calls until it can answer.

OpenRouter notes that the two patterns do not compete, because an MCP server can wrap a RAG index as a search tool. Its @openrouter/agent SDK manages the tool loop, while @openrouter/mcp connects to remote servers via createMCPTools over Streamable HTTP or Server-Sent Events (SSE).

Note: The @openrouter/mcp package supports remote MCP servers over Streamable HTTP with an SSE fallback, and does not support local stdio servers.

02Catalog benchmark design and test setup

OpenRouter ran all three setups through its API on October 22, 2026 against a generated product catalog for a fictional outdoor brand. The primary catalog contained 3,000 products totaling about 340K tokens, alongside a smaller 80-product catalog of about 9K tokens, with pages listing name, SKU, category, price, weight, warranty, first year sold, and compatible products.

Researchers wrote 40 exact-answer questions for the 3,000-product catalog and 37 for the 80-product set, split across three categories. Those included 16 single-fact lookups such as the warranty on CX-10101 or the weight of the Tundra Ridge Tent, 12 two-hop lookups such as the price of a backpack listed under Compatible with on the Willow Cedar Trekking Pole, and 12 whole-catalog counts or extremes.

All tests ran with reasoning.effort set to "low" on OpenAI GPT-6 Luna (openai/gpt-6-luna) and DeepSeek V4.1 Flash (deepseek/deepseek-v4.1-flash). RAG pipelines embedded pages with mongodb/voyage-4-lite and narrowed 30 candidates down to 5 chunks using mongodb/rerank-3-lite, while the MCP server exposed get_product(sku_or_name) and find_products(category?, warranty_years?, first_sold_year?, name_contains?, sort_by?, limit) with stopWhen: stepCountIs(8).

Advertisement

Tech Pulse Daily

Get tomorrow's pulse first

Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.

03Accuracy, token cost, and response latency

On the 3,000-product catalog, the MCP agent answered all 40 questions correctly on both models, while vector RAG answered 8 on GPT-6 Luna and 9 on DeepSeek V4.1 Flash. Hybrid RAG, which combined the top 15 vector matches with the top 15 BM25 keyword matches before reranking, improved to 16 out of 40 on both models.

ApproachGPT-6 Luna correctDeepSeek V4.1 Flash correctCost per 1,000 questions (Luna / DeepSeek)Input tokens per question (Luna / DeepSeek)Time per question (Luna / DeepSeek)
RAG8/409/40$0.21 / $1.43633 / 6837.8 s / 12.2 s
Hybrid RAG16/4016/40$0.19 / $0.91638 / 6885.6 s / 9.9 s
MCP tools40/4040/40$0.18 / $0.391,479 / 2,1784.1 s / 3.8 s

Although the MCP agent averaged 2.3 to 2.4 model calls per question and sent two to three times as many input tokens, it matched hybrid RAG's cost on GPT-6 Luna and cost less on DeepSeek V4.1 Flash. On the 80-product catalog, MCP scored 37/37 on both models at $0.11 and $0.29 per 1,000 questions, compared with 26/37 and 27/37 for vector RAG.

04SKU lookups, multi-hop queries, and catalog counts

Eight of the 16 single-fact questions referenced a product SKU such as CX-10101, which carries no semantic meaning for an embedding model. In vector RAG, the target page ranked between 276th and 2,718th out of 3,000, causing GPT-6 Luna to miss all 8 and DeepSeek V4.1 Flash to miss 7 until BM25 keyword matching lifted hybrid RAG to 16/16.

Neither RAG setup solved any of the 12 two-hop questions or 12 whole-catalog counts, scoring 0/12 on both models. Single-pass retrieval on the initial question could locate the trekking pole page but not the compatible backpack discovered afterward, and five chunks could not count how many of the 375 tents carried a 2-year warranty.

The MCP agent resolved multi-hop queries by calling find_products and chaining get_product across compatible SKUs, and answered counts by reading total_matches from a filtered find_products call.

Note: OpenRouter emphasized that the 40/40 MCP score depended on get_product and find_products matching the structured catalog's question types, and queries outside those tool signatures would still fail.

05Optional filter schemas and empty-string failures

The MCP agent did not reach 40/40 on its initial run because GPT-6 Luna scored 0 out of 12 on whole-catalog questions and completed 27 of 39 requests, with one two-hop call hitting a socket error. In that first server version, every filter parameter in find_products was marked optional with no required fields in the JSON schema.

Trace logs showed GPT-6 Luna populating omitted filters with default zero or empty values instead of leaving them out, sending first_sold_year: 0 and name_contains: "" when asked how many tents had a 2-year warranty. Because the server treated those values as active filters, it returned total_matches: 0 instead of the true count of 79, whereas DeepSeek V4.1 Flash never sent a zero or empty filter across 117 test questions.

Frequently asked questions

Why did vector RAG fail on SKU lookups in OpenRouter's benchmark?

Product SKUs like CX-10101 lack semantic meaning for embedding models, so target pages ranked between 276th and 2,718th out of 3,000. Adding BM25 keyword search in hybrid RAG fixed single-fact lookups, raising scores to 16 out of 16 on both models.

How much did MCP tools cost compared to RAG on the 3,000-product catalog?

MCP cost $0.18 per 1,000 questions on GPT-6 Luna and $0.39 on DeepSeek V4.1 Flash, even with 1,479 to 2,178 input tokens per question. Hybrid RAG cost $0.19 and $0.91, while vector RAG cost $0.21 and $1.43 due to extra embedding, rerank, and output token overhead.

Why did GPT-6 Luna fail whole-catalog count questions on the first MCP server?

GPT-6 Luna filled optional find_products parameters with first_sold_year: 0 and name_contains: "" instead of omitting them. The server treated those as literal filters and returned zero matches instead of 79.

Sources

Dillip Chowdary

Author

Dillip Chowdary

Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.

Related on Tech Bytes

Advertisement

5-min tech signal

Weekday briefing for engineers who skip the noise.

No spam · Unsubscribe anytime

Advertisement

✈️ CareerPilot

Your AI job-search copilot

Match your resume against live Ashby, Greenhouse & Lever openings — fit scores, job-specific resume optimization and email alerts.

Find matching jobs →

Free Tools

Browse all tools →