Exa MCP Server for Claude Code: Setup & Config
Exa MCP Server gives Claude Code web search and readable page retrieval, with optional advanced search and agent research tools.
What you can do with Exa in Claude Code
Start with focused search and page retrieval, then enable deeper filtering or agent research as needed.
- Find code examples and library documentation for a programming question.
- Research companies using optional advanced search filters.
- Run asynchronous enrichment or structured research through Exa Agent.
Before you start: Exa in Claude Code
- An MCP-compatible client
- npx and an Exa API key for the local npm option
The command uses the README's local npm package configuration. The remote URL supports direct HTTP connections; mcp-remote is another documented route. Enable optional tools through the tools parameter.
Exa Claude Code configuration
Choose Claude Code configuration scope
For Exa MCP Server, open Project scope: .mcp.json at the repository root. Project JSON: merge into mcpServers; user scope: use the CLI.
Add Exa MCP Server to Claude Code
Use the exa-mcp-server entry below in mcpServers. Keep Exa MCP Server's documented stdio connection fields and your other Claude Code entries.
Check Exa MCP Server in Claude Code
Exa MCP Server: Inspect claude mcp list and /mcp status.
Config file · Project scope: .mcp.json at the repository root
{
"mcpServers": {
"exa-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"exa-mcp-server"
],
"env": {
"EXA_API_KEY": "<your Exa API key>"
}
}
}
}claude mcp add-json --scope project 'exa-mcp-server' '{"type":"stdio","command":"npx","args":["-y","exa-mcp-server"],"env":{"EXA_API_KEY":"<your Exa API key>"}}'Exa tools available to Claude Code
Exa's stored tool list documents 7 tools; compare it with Claude Code's connected tool list, because the stored list is not a live check.
- web_search_exa
For Exa's web_search_exa, review the permission request and arguments in Claude Code before approval.
- web_fetch_exa
For Exa's web_fetch_exa, review the permission request and arguments in Claude Code before approval.
- web_search_advanced_exa
For Exa's web_search_advanced_exa, review the permission request and arguments in Claude Code before approval.
Run optional advanced searches with domain, date, filter, and content controls.
- agent_create_run
For Exa's agent_create_run, review the permission request and arguments in Claude Code before approval.
Start optional asynchronous research, enrichment, or structured-output work.
- agent_wait_for_run
For Exa's agent_wait_for_run, review the permission request and arguments in Claude Code before approval.
Poll an Exa Agent run until completion or timeout.
- agent_get_run_output
For Exa's agent_get_run_output, review the permission request and arguments in Claude Code before approval.
- agent_cancel_run
For Exa's agent_cancel_run, review the permission request and arguments in Claude Code before approval.
Cancel an agent task that is queued or running.
Troubleshooting Exa in Claude Code
- If Exa MCP Server fails to start, check npx exa-mcp-server (Node.js/npm), the working directory, and Claude Code's selected scope; inspect claude mcp list and /mcp.
- Exa MCP Server: check EXA_API_KEY; keep credentials out of shared .mcp.json.
- Exa MCP Server uses stdio here: Claude Code must keep the configured process running; protocol output belongs on stdout and diagnostics on stderr.
- Known limitation: Advanced search is not enabled by default.
- Known limitation: Optional Exa Agent tools require OAuth or an API key.
- Known limitation: Several older tool names are deprecated.
- General Claude Code troubleshooting lives in the /clients/claude-code guide.
Exa MCP Server — details. Claude Code guide