如何将 Exa 远程 MCP 连接到 OpenAI Codex CLI

约 1 分钟即可把 Exa 的远程 MCP 服务端接入 OpenAI Codex CLI。如需排查 OAuth / 401 问题,可先用 OAuth 2.1 调试器体检端点。

🛡️ Official✓ VerifiedStreamable HTTPAPI Key🛡️ A+~361 tok11 tools
Streamable HTTPhttps://mcp.exa.ai/mcp

🔒 Client-side only — never leaves your browser.

Add to ~/.codex/config.toml — Codex reads remote HTTP servers from [mcp_servers.*] tables:

[mcp_servers.exa]
url = "https://mcp.exa.ai/mcp"
bearer_token_env_var = "EXA_TOKEN"

接入步骤

  1. 编辑 TOML 配置 — 打开 ~/.codex/config.toml,加入 [mcp_servers.exa] 与 url = "https://mcp.exa.ai/mcp"。
  2. 配置凭据 — 加入 bearer_token_env_var = "EXA_TOKEN" 并在环境变量中导出该密钥。
  3. 验证 — 在 在线 Inspector 中粘贴 https://mcp.exa.ai/mcp 并运行 initialize + tools/list 验证连通性。

🧰 工具预览(11)

ToolSafetyDescriptionParameters
web_search_exa
~32 tok
🟢 ReadSearch the web with Exa neural search.—
get_code_context_exa
~35 tok
🟢 ReadGet code context for programming queries.—
research_paper_search
~30 tok
🟢 ReadSearch academic papers.—
company_research
~28 tok
🟢 ReadResearch companies.—
crawling
~29 tok
🟢 ReadCrawl a URL and extract content.—
competitor_finder
~31 tok
🟢 ReadFind competitors of a company.—
linkedin_search
~33 tok
🟢 ReadSearch LinkedIn profiles and companies.—
wikipedia_search_exa
~29 tok
🟢 ReadSearch Wikipedia.—
github_search
~29 tok
🟢 ReadSearch GitHub repositories.—
deep_researcher_start
~31 tok
🟠 WriteStart a deep research task.—
deep_researcher_check
~34 tok
🟢 ReadCheck status of a deep research task.—

更多连接指南