WebSearch
APIs
Submit an API
★ KEIRO20 = 20% off Keirolabs Keirolabs $0.03/1kSerper $0.30/1kZenserp $0.90/1kParallel $1.00/1kPerplexity $1.00/1kSearchApi $1.40/1kSerpApi $1.96/1kExa $4.00/1kBrave $5.00/1kLinkup $5.00/1kYou.com $5.00/1kTavily $5.00/1kOpenAI Web $10/1kClaude Web $10/1k Full price index →

Blog/Agents

Web search APIs for AI agents: MCP servers, token costs and what actually matters

What an AI agent needs from a web search API, how MCP search servers work, why tokens cost more than the search, and which APIs fit agent loops best, with real prices.

TL;DR

  • Agents search a lot: 5–50 searches per task is normal. Price per 1,000 and latency matter far more than for a chatbot.
  • The hidden cost is tokens. Search results your model reads can cost more than the search itself.
  • MCP servers plug a search API into Claude Code, Cursor, Codex and other agent tools without writing glue code.
  • For agent loops: Keirolabs (lite from $0.03, fast from $0.44, MCP server, JS-rendering extract), Parallel (compressed excerpts, $1 fast) and Exa (page text).
5–50Searches in a typical agent task
$9Per 1,000 searches just to read 3,000-token results at $3/M
$0.03Lowest per-1,000 search price for agent loops
90Monthly US searches for "web search mcp server"

A chatbot searches once and answers. An agent searches, reads, decides it needs more, searches again, opens a page, compares, and searches again. Five to fifty searches per task is normal, and a coding agent researching a library can do more.

That changes what “best search API” means. Here’s what matters for agents, how MCP search servers fit in, and which APIs are built for it.

What an agent needs from a search API

  1. Low price per call. At 20 searches a task and 50,000 tasks a month, you’re making a million searches. $5 per 1,000 is $5,000; $0.10 is $100.
  2. Low latency. Every search sits in the agent’s critical path. A 3-second search times 20 is a minute of waiting.
  3. Few tokens, high relevance. The model pays to read whatever you return.
  4. Page content on demand. Snippets to decide, full text when it matters.
  5. High rate limits. Agents run in parallel. A 1-request-per-second cap breaks a fan-out.
  6. An easy integration. Ideally an MCP server, so any agent tool can use it.

The real cost: tokens, not searches

Say each search returns 3,000 tokens of text and your model charges $3 per million input tokens. Reading the results costs $9 per 1,000 searches, more than most searches. In a multi-turn agent, earlier results stay in context and get re-read every turn, so multiply again. Cutting returned tokens by half saves more than switching to a cheaper search API.

That’s why the best agent search APIs give you control over how much text comes back:

  • Snippets first. Use a cheap snippet search to decide which pages are worth reading.
  • Compressed excerpts. Parallel returns ranked, compressed excerpts instead of whole pages.
  • Evidence windows. Keirolabs’ deep search returns ranked evidence from top pages; its public benchmark found the answer in the ~900-token evidence alone 94.0% of the time.
  • Filter before context. Claude’s newer web search tool versions can filter results in code before they reach the context window.

What is a web search MCP server?

MCP (Model Context Protocol) is a standard way to give AI tools access to outside capabilities. A search MCP server exposes a search API as tools the agent can call by itself: search, extract, answer and so on.

Instead of writing code that calls the API and pastes results into a prompt, you add the server to Claude Code, Cursor, Codex or any MCP client, and the agent decides when to search.

Most AI search providers now ship one:

ProviderMCP serverWhat the agent gets
KeirolabsRemote MCPEvery endpoint: lite/fast search, content, extract, answer, deep, Google SERP, batch
ExaYesSearch, contents, research
TavilyYesSearch, extract, map, crawl
BraveYesWeb, news, images, local
ParallelYes, plus a free Search MCPSearch, extract
FirecrawlYesScrape, crawl, search

With an MCP server, cost control moves into your prompt. Tell the agent to use the cheap search first and only open pages it needs. Otherwise it will happily fetch full content for every result.

The best search APIs for agent loops

Prices per 1,000 calls from each vendor’s pricing page, November 5, 2026.

APICheapest searchWith page textAnswersNotes
Keirolabs$0.03–0.10 (lite)$1.33–4.00$0.89–2.67Own index, MCP, batch, JS-rendering extract
Parallel$1 (turbo/fast)Excerpts included$10+ (Responses)Token-efficient excerpts
Exa$4 (lite)+ $1 per 1,000 pages$5Own neural index
Perplexity Search$1 (fast)NoSonar/Agent APIOwn index
Tavily$5–8IncludedIncludedAggregated
Brave$5LLM context endpoint$4 + tokensIndependent index
OpenAI / Claude built-in$10 + tokensIncludedIt’s the modelLocked to that model

Why Keirolabs is the one I’d start an agent on

Agents are where cheap search matters most, and nothing we track is cheaper. At $0.03 per 1,000 on Startup, a million lite searches uses 37,500 credits, a third of the $99.99 plan. The rest of an agent’s toolkit sits on the same key and credit balance:

  • Fast search (0.5 credits) for richer results, search + markdown (1.5) for RAG
  • Extract (1 credit) to read one URL, answer (1 credit) for cited answers
  • Deep search (2 credits): 96.5% on SimpleQA, code and results public
  • Batch search, free and unlimited on Startup, for fan-out
  • Extract with JavaScript rendering (deep and heavy modes) when the agent hits a page search can’t read
  • Rate limits up to 600 lite searches a minute on Startup, and retries within a request aren’t charged twice

The pattern I’d ship: lite search to triage, extract or content only on the 2–3 pages that matter, deep search for the hard questions. On Keirolabs that whole loop costs a fraction of one Tavily search. 750 free credits to try it, and KEIRO20 takes 20% off through Black Friday: pricing.

Parallel: the token saver

If token bills dominate, Parallel’s compressed excerpts are the best-designed answer. Fast is $1 per 1,000.

Exa: neural search with page text

Exa’s embedding-based index is excellent for “find things like this” queries, and contents cost $1 per 1,000 pages. See Exa API pricing.

Built-in model search: easiest, priciest

OpenAI and Claude’s built-in web search is one line to turn on, at $10 per 1,000 plus tokens. Good for prototypes, expensive in a loop.

A checklist before you pick

  1. Log a day of real agent traces and count searches per task.
  2. Measure tokens added per search with each candidate.
  3. Test p95 latency with parallel calls, not one at a time.
  4. Check the rate limit on the plan you’d actually buy.
  5. Price it: (searches × search price) + (tokens × model price). The calculator does the first half.

FAQ

What’s the cheapest web search API for agents?

Keirolabs lite search: $0.10 per 1,000 on Essential, $0.06 on Pro, $0.03 on Startup.

Do I need an MCP server?

No, but it saves time. Any API can be wrapped as a tool in your own code. MCP is the shortcut for tools like Claude Code and Cursor.

How many searches does an agent make?

It varies widely. Simple Q&A agents make 1–5; research and coding agents often make 20–50. Measure yours.

Topic hub

More on search apis for ai and agents

  1. Best web search APIs in 2026, ranked on two benchmarksStart here
  2. Web search in LM Studio and Open WebUI: free and paid setups, step by step
  3. How to search the web from Python: ddgs, googlesearch and 3 APIs (with code)
  4. Tavily MCP, Exa MCP and Keirolabs MCP: setup for Claude Code, Cursor and LM Studio
  5. Tavily vs Perplexity vs Exa: search API pricing, accuracy and which to pick
  6. Keirolabs: pricing, endpoints, benchmarks and how to start
  7. OpenAI web search API: pricing, limits and when a search API is cheaper
  8. Exa vs Tavily: pricing, index, accuracy and which to pick
  9. Exa API pricing and API key: every endpoint, explained
  10. Tavily API key: get one free in 2 minutes, plus the real cost per search
  11. Free web search APIs in 2026: every free tier, and how far it really goes
  12. What is a web search API? Types, prices and how to pick one (2026)
  13. Perplexity API pricing (Nov 2026): $5 per 1,000 searches, or $1 on Fast
  14. Tavily alternatives: 8 search APIs for AI agents, compared

Keep reading