---
title: Exa
description: "Search the web and fetch page content through Exa's hosted MCP server."
url: "https://eve.dev/integrations/exa"
docs_index: /llms.txt
type: connection
keywords:
  - mcp
  - web search
  - search
  - web fetch
  - crawl
  - research
  - oauth
  - connect
---

> For an index of all documentation, see [/llms.txt](/llms.txt).

Connection integration for eve. Search the web and fetch page content through Exa's hosted MCP server.

## Install

Add the connection from eve's registry. This writes the initial definition under `agent/connections/` and installs its authentication dependency when needed:

```bash
eve add connection/exa
```

## Quick start

Create `agent/connections/exa.ts`. The connection name is derived from the filename:

```ts
// agent/connections/exa.ts
import { connect } from "@vercel/connect/eve";
import { defineMcpClientConnection } from "eve/connections";

export default defineMcpClientConnection({
  url: "https://mcp.exa.ai/mcp?tools=web_search_exa,web_fetch_exa",
  description: "Exa: search the web and fetch page content through Exa's hosted MCP server.",
  auth: connect("exa"),

  // For a single-account Exa API key, replace the auth line above with:
  // headers: () => ({ "x-api-key": process.env.EXA_API_KEY! }),

  tools: { allow: ["web_search_exa", "web_fetch_exa"] },
});
```

The URL query and tool allowlist pin the connection to Exa's two read-only search and fetch tools (`web_search_exa` and `web_fetch_exa`), keeping usage-based tools such as `agent_run` out of the default surface.

## Configure

Link your project, register the MCP connector, and pull OIDC locally:

```bash
vercel link
vercel connect create exa --name exa --connection-method mcp
vercel env pull
```

The MCP method signs each user in to their own Exa account. For a single-account setup without Vercel Connect, replace `auth: connect("exa")` with `headers: () => ({ "x-api-key": process.env.EXA_API_KEY! })` using an API key from the [Exa dashboard](https://dashboard.exa.ai/api-keys).

**Overlap with `web_search`:** Models running through Vercel AI Gateway already have built-in Exa-backed web search via `tool/web_search`. This connection is mainly useful for direct-provider agents; on a Gateway agent, adding both exposes two search tools. Add `approval: always()` if you want user confirmation before billed Exa queries. See the [Exa MCP docs](https://docs.exa.ai/reference/exa-mcp) and [Connections docs](/docs/connections).

[Read the full connection documentation](https://docs.exa.ai/reference/exa-mcp)

---

For a semantic overview of all documentation, see [/sitemap.md](/sitemap.md)

For an index of all available documentation, see [/llms.txt](/llms.txt)

For agent-facing discovery, including API and MCP surfaces, see [/agents.md](/agents.md)