MCP server for Exa Search API enabling external clients to query and control Exa data.
Configuration
View docs{
"mcpServers": {
"egoist-exa-mcp": {
"command": "npx",
"args": [
"-y",
"exa-mcp"
],
"env": {
"EXA_API_KEY": "<your-api-key>"
}
}
}
}You run an MCP server to bridge external clients with the Exa Search API. This server handles requests from MCP clients and forwards them to Exa, using your API key for authentication. It supports both a standard I/O mode and a streaming SSE mode, making it flexible for different integration patterns.
To connect your MCP client to Exa, start the server locally and point your client at the MCP endpoint. You will need your API key to authorize requests.
Run the MCP server in standard I/O mode using this command:
npx -y exa-mcpIf you prefer streaming responses via SSE, start the server with the SSE option:
npx -y exa-mcp --sseBefore you start, set your API key in the environment so the server can authenticate with Exa Search API:
EXA_API_KEY=<your-api-key>You can also configure the server with a JSON configuration that declares an MCP server named exa. This snippet shows the full configuration you would place in your config file to run via npx and pass the API key.
{
"mcpServers": {
"exa": {
"command": "npx",
"args": ["-y", "exa-mcp"],
"env": {
"EXA_API_KEY": "<your-api-key>"
}
}
}
}Prerequisites: you need Node.js and npm to run MCP servers locally. Ensure you have a recent Node.js runtime installed on your system.
Install and start the MCP server in standard I/O mode:
npx -y exa-mcpOr start in SSE mode for streaming responses:
npx -y exa-mcp --sseSet your API key in the environment before starting (one-time or export in your shell):
export EXA_API_KEY=<your-api-key>If you prefer to use a JSON configuration, place the following configuration in your MCP config file to define the Exa MCP server and key.
{
"mcpServers": {
"exa": {
"command": "npx",
"args": ["-y", "exa-mcp"],
"env": {
"EXA_API_KEY": "<your-api-key>"
}
}
}
}The MCP server uses your API key to authorize requests to the Exa Search API. Keep this key secure and do not expose it in client-side code.
You can run the server without a JSON config by invoking the npx command directly, or you can supply the API key via environment variables for automation and deployment.
If you encounter connection issues, verify that EXA_API_KEY is correctly set in the environment where the MCP server runs and that the client points to the running MCP instance.