Exa MCP Server for VS Code: Setup & Config
Exa MCP Server gives VS Code web search and readable page retrieval, with optional advanced search and agent research tools.
What you can do with Exa in VS Code
Start with focused search and page retrieval, then enable deeper filtering or agent research as needed.
- Fetch complete pages when search snippets are insufficient.
- Find code examples and library documentation for a programming question.
- Research companies using optional advanced search filters.
Before you start: Exa in VS 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 VS Code configuration
Choose VS Code configuration scope
For Exa MCP Server, open Workspace: .vscode/mcp.json. Merge into servers; preserve existing inputs.
Add Exa MCP Server to VS Code
Use the exa-mcp-server entry below in servers. Keep Exa MCP Server's documented stdio connection fields and your other VS Code entries.
Check Exa MCP Server in VS Code
Exa MCP Server: Start in VS Code’s MCP controls; inspect output and trust prompts.
Config file · Workspace: .vscode/mcp.json
{
"servers": {
"exa-mcp-server": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"exa-mcp-server"
],
"env": {
"EXA_API_KEY": "<your Exa API key>"
}
}
}
}Exa tools available to VS Code
Exa's stored tool list documents 7 tools; compare it with VS Code's connected tool list, because the stored list is not a live check.
- web_search_exa
Look for web_search_exa among VS Code's agent-mode tools after starting Exa through the MCP controls.
- web_fetch_exa
Look for web_fetch_exa among VS Code's agent-mode tools after starting Exa through the MCP controls.
Retrieve clean full-page content and metadata from one or more known URLs.
- web_search_advanced_exa
Look for web_search_advanced_exa among VS Code's agent-mode tools after starting Exa through the MCP controls.
Run optional advanced searches with domain, date, filter, and content controls.
- agent_create_run
Look for agent_create_run among VS Code's agent-mode tools after starting Exa through the MCP controls.
- agent_wait_for_run
Look for agent_wait_for_run among VS Code's agent-mode tools after starting Exa through the MCP controls.
Poll an Exa Agent run until completion or timeout.
- agent_get_run_output
Look for agent_get_run_output among VS Code's agent-mode tools after starting Exa through the MCP controls.
Read completed agent output with grounding, usage, and cost information.
- agent_cancel_run
Look for agent_cancel_run among VS Code's agent-mode tools after starting Exa through the MCP controls.
Troubleshooting Exa in VS Code
- Make npx exa-mcp-server (Node.js/npm) available in the workspace, container, or remote environment hosting Exa MCP Server. Start through VS Code's MCP controls; inspect output and trust prompts.
- For Exa MCP Server, keep EXA_API_KEY out of version control; VS Code documents input variables and secret handling.
- Exa MCP Server uses stdio here: VS 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 VS Code troubleshooting lives in the /clients/vscode guide.
Exa MCP Server — details. VS Code guide