模型上下文协议 (MCP) 服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。此设置允许 AI 模型以安全可控的方式获取实时的网络信息。
直接连接到 Exa 托管的 MCP 服务器(而不是在本地运行)。
https://mcp.exa.ai/mcp?exaApiKey=your-exa-api-key
将 your-api-key-here
替换为您的实际 Exa API 密钥,可在 dashboard.exa.ai/api-keys 获取。
将以下内容添加到您的 Claude Desktop 配置文件:
{
"mcpServers": {
"exa": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.exa.ai/mcp?exaApiKey=your-exa-api-key"
]
}
}
}

npm install -g exa-mcp-server
要通过 Smithery 自动为 Claude Desktop 安装 Exa MCP 服务器:
npx -y @smithery/cli install exa --client claude
您可以在 Claude Desktop 应用的设置中找到 claude_desktop_config.json 文件:
打开 Claude Desktop 应用,并在左上角菜单栏中启用开发者模式。
启用后,打开设置(也可以从左上角菜单栏打开),然后导航到开发者选项,在那里您会找到“编辑配置”按钮。点击它将打开claude_desktop_config.json文件,允许您进行必要的编辑。
或者(如果您想从终端打开claude_desktop_config.json)
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
code %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"exa": {
"command": "npx",
"args": ["-y", "exa-mcp-server"],
"env": {
"EXA_API_KEY": "your-api-key-here"
}
}
}
}

将your-api-key-here
替换为您从dashboard.exa.ai/api-keys获取的实际Exa API密钥。
Exa MCP服务器包含以下工具,可以通过添加--tools
参数启用:
您可以通过在 Claude Desktop 配置中添加 --tools
参数来选择要启用的工具:
{
"mcpServers": {
"exa": {
"command": "npx",
"args": [
"-y",
"exa-mcp-server",
"--tools=web_search_exa,research_paper_search,company_research,crawling,competitor_finder,linkedin_search,wikipedia_search_exa,github_search"
],
"env": {
"EXA_API_KEY": "your-api-key-here"
}
}
}
}

要启用多个工具,请使用逗号分隔的列表:
{
"mcpServers": {
"exa": {
"command": "npx",
"args": [
"-y",
"exa-mcp-server",
"--tools=web_search_exa,research_paper_search,company_research,crawling,competitor_finder,linkedin_search,wikipedia_search_exa,github_search"
],
"env": {
"EXA_API_KEY": "your-api-key-here"
}
}
}
}

如果您没有指定任何工具,则将使用所有默认启用的工具。
要使更改生效:
如果您希望直接运行服务器,可以使用 npx:
# 运行所有默认启用的工具
npx exa-mcp-server
# 只启用特定工具
npx exa-mcp-server --tools=web_search_exa
# 启用多个工具
npx exa-mcp-server --tools=web_search_exa,research_paper_search
# 列出所有可用工具
npx exa-mcp-server --list-tools

找不到服务器
API 密钥问题
连接问题
Exa 团队倾情打造 ❤️