Agentbrisk
search TypeScript Official

Exa MCP Server

Give AI agents semantic web search built for machine consumption, not human browsing


The Exa MCP Server connects AI agents to Exa's semantic search API, which indexes the web with retrieval quality aimed at machines rather than human browsers. It exposes search and content retrieval tools that return clean, structured results agents can reason over directly, without the noise of advertisements, navigation menus, and other page clutter that general-purpose scrapers pick up.

Most web search APIs were built for humans using browsers. The results come back as ranked lists of URLs with titles and snippets. The expectation is that you click through, read the page, and extract what you need. For an AI agent, that workflow is slow and noisy: scrape the page, strip the HTML, deal with JavaScript rendering, filter the ads and navigation menus, and then maybe get to the content you actually wanted.

Exa takes a different approach. Its index is built with programmatic retrieval in mind, and the API returns clean, extracted text from the actual page content rather than rendering artifacts. The Exa MCP Server puts that API behind a standard MCP interface, giving your agent search and content retrieval that works like reading a document rather than navigating a website.

What the server exposes

The tool surface is focused rather than sprawling. The core tools are search and content retrieval:

Search. The agent provides a query and the server returns a list of results. Each result includes the URL, title, publication date (when available), and extracted page content up to a configurable character limit. The neural retrieval means the results reflect semantic relevance to the query, not just keyword frequency. A search for "how to implement rate limiting in distributed systems" returns content that actually addresses the concept, not pages that happen to repeat those exact words.

Content retrieval. Given a URL, the server fetches and returns clean text from that page. This is useful when the agent already knows a specific source it wants to read, without needing to go through a search first. It also means you can combine Exa's search with its content extraction in a two-step workflow: search for relevant sources, then retrieve full text from the most promising results.

Domain-scoped search. The search tool accepts an optional list of domains to restrict results to. Scoping a search to specific sites is useful for research workflows: search only within a company's documentation, within a specific publication, or across a curated list of technical references. This gives you precision that general web search does not provide.

Date filtering. Searches can be filtered to content published within a date range. For research tasks where recency matters (current pricing, recent events, new library versions), date filtering focuses the results without requiring you to manually discard outdated content.

Setup

You need an Exa API key before the server does anything. Go to exa.ai and sign up. After signing in, the API keys section of your dashboard lets you generate a key. The free tier covers a reasonable number of searches for personal and development use.

Install and test with npx:

EXA_API_KEY=your-key npx -y exa-mcp-server

If it starts without errors, the key is valid.

Add to Claude Desktop at ~/Library/Application Support/Claude/claude_desktop_config.json:

{
  "mcpServers": {
    "exa": {
      "command": "npx",
      "args": ["-y", "exa-mcp-server"],
      "env": {
        "EXA_API_KEY": "your-exa-api-key"
      }
    }
  }
}

For Claude Code, add the same block to ~/.claude/mcp.json.

The API key should not be committed to version control. If your MCP config file lives in a git repository, use a reference to an environment variable rather than embedding the value directly.

Real use cases

Literature and documentation research. When an agent is working on a technical problem and needs to check current library documentation, API references, or technical articles, Exa search returns the full content of relevant pages rather than a list of links to follow manually. The agent can read three or four sources and synthesize them in the same turn that it asks the question.

Competitive and market research. Agents used for business analysis can search for recent coverage, pricing pages, or announcements from specific companies or domains. Domain-scoped search makes it easy to pull recent content from a set of sources without the agent chasing irrelevant results from the open web.

Technical fact-checking. When generating code or technical documentation, the agent can verify specific claims (version numbers, API behaviors, configuration options) by searching for current sources. This is a useful complement to the agent's training knowledge, which has a cutoff date and may not reflect recent changes.

Content aggregation workflows. For agents that produce summaries, digests, or monitoring reports, Exa provides a clean retrieval path. Define the search queries, retrieve the content, summarize it. Because the extracted text is clean, the agent spends its context window on actual content rather than stripping HTML noise.

Developer tool research. Agents helping with architecture or tooling decisions can search for recent comparisons, benchmarks, and community opinions on specific tools or approaches. Combining this with Filesystem MCP to write research notes to disk produces a useful research workflow that does not require manual browser sessions.

Citation sourcing. For any workflow that produces content requiring sourced claims, the agent can search for supporting sources, retrieve their content to verify the claim, and include the URL as a citation. Exa's neural retrieval means the sources are more likely to be semantically relevant than keyword-matched results.

How it compares to other search MCP servers

The MCP ecosystem has a few web search options worth comparing:

Brave Search MCP. Brave Search covers the open web with a traditional search index. It does not extract and return full page content by default. For queries where you need to browse results, Brave Search is a reasonable choice. For queries where the agent needs to read content, Exa's extraction is more direct.

Tavily MCP. Tavily is another search API targeting AI agents, with similar goals to Exa. Tavily is often cited alongside Exa in the agent search API space. The practical differences come down to index coverage, retrieval quality for specific query types, and pricing. Both are worth testing against your actual queries before committing to one.

Fetch MCP. The reference Fetch server retrieves a single URL's content on demand. It does not have search capability. Exa's server combines search and retrieval in one tool, which is a more complete solution when you do not already know which URL to retrieve.

If your workflow involves primarily searching the web (rather than retrieving from known URLs), Exa is the stronger choice for content quality. For general browsing or scraping of known pages, Fetch or Puppeteer MCP handles those cases.

API costs and rate limits

Exa charges per search request and per content retrieval. The free tier covers enough volume for personal use and light development. For agent workflows that run searches frequently or in batch, the cost adds up and you should review the current pricing on the Exa website before deploying at scale.

The server does not include built-in caching or deduplication. If your agent runs the same search multiple times within a session (which can happen with iterative reasoning patterns), each call hits the API. Adding a caching layer between the server and the API is possible if cost is a concern at scale, but requires custom implementation.

Security considerations

The Exa API key is the only credential the server uses. Treat it like any other API key:

Do not embed it in config files under version control. Pass it via the env block in your MCP config and store the actual value outside the file (in an environment variable, a secrets manager, or a tool like 1Password CLI).

Rotate the key if you suspect it was exposed. Exa's dashboard allows generating new keys and revoking old ones.

The server only makes outbound HTTP requests to the Exa API. It does not execute code locally or write to disk, which keeps its risk surface limited to the key exposure risk and the content it returns (which you should review for sensitive data before passing to external workflows).

Bottom line

The Exa MCP Server is the clearest path to giving an AI agent high-quality web search that actually works for machine consumption. The neural retrieval and clean text extraction mean the agent gets content it can reason over, not a list of links and a scraping problem.

For any agent workflow that involves research, fact-checking, or content gathering from the web, Exa belongs in the config alongside the tools your agent uses for local and structured data access. The setup is minimal, and the difference in research quality compared to general web search is noticeable immediately.

Features

  • Semantic search across the live web with neural retrieval
  • Full page content retrieval from search results
  • Domain-scoped search to restrict results to specific sites
  • Date-filtered search for recent content
  • Configurable result count and content length
  • Returns clean text without HTML clutter or ad content
  • Authenticates via Exa API key
  • Compatible with Claude Desktop, Claude Code, and other MCP clients

How to set up the Exa MCP Server MCP server

  1. Sign up at exa.ai and generate an API key from the dashboard
  2. Install the server via npx or clone the exa-labs/exa-mcp-server repository
  3. Add the server block to your Claude Desktop or Claude Code MCP config
  4. Set EXA_API_KEY in the env block of the config
  5. Restart your MCP client and verify the Exa search tools appear

Frequently Asked Questions

What is the Exa MCP Server?
The Exa MCP Server is an official integration maintained by Exa Labs that connects AI agents to the Exa semantic search API through the Model Context Protocol. It gives agents a search tool that returns high-quality, clean text content from the web, designed for machine consumption rather than browser rendering.
How is Exa different from regular web search?
Exa uses neural retrieval to find semantically relevant content rather than keyword matching. Results come back as structured data with clean extracted text, not as a list of links to click through. For agents that need to read and reason over content, Exa returns material that is much easier to process than standard search results mixed with ads and navigation markup.
Does Exa require a paid API key?
Exa offers a free tier with a limited number of searches per month, which is enough for personal and light development use. Higher volume usage requires a paid plan. Current pricing is on the exa.ai website. For production agent workflows that do frequent searches, factor the API cost into your planning.
Can I restrict Exa searches to specific domains?
Yes. The search tool supports a domain filter parameter that scopes results to one or more specific sites. This is useful for research workflows where you want to search within documentation, a specific news source, or a curated set of authoritative sites rather than the open web.
How does Exa compare to the Brave Search MCP server?
Brave Search is a general-purpose web search with a traditional index. Exa is designed specifically for programmatic and agent use, with neural retrieval and clean content extraction. For workflows where the agent needs to read and reason over the content of results (not just see titles and URLs), Exa tends to return more useful material. For broad search coverage and zero API cost on lower volumes, Brave Search is competitive.
Does the Exa MCP Server support real-time or live content?
Exa crawls the web continuously and the index is updated frequently. For breaking news or very recent content, there may be a lag. The date filter option lets you scope searches to content published within a recent window, which helps for research tasks where recency matters.
Search