Skip to main content
Glama
dhicoc

codex-web-search-mcp

by dhicoc

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
CODEX_ACCOUNT_IDNoOptional Codex account ID.
CODEX_ACCESS_TOKENNoCodex access token. Alternative to running `codex login`.
CODEX_SEARCH_DEBUGNoSet to '1' to enable debug logging to stderr.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
codex_web_searchA

通过 OpenAI Codex 的独立搜索端点执行实时联网搜索,返回模型整理的答案文本以及带标题、URL、摘要的来源列表(来源含 ref_id,可用于 codex_web_research 进一步打开/查找)。该工具与底层模型无关——即使 Claude Code 接入的是 Gemini / OpenRouter / 本地模型等非 Anthropic 模型也能正常使用,弥补原生 WebSearch 在非 Anthropic 模型下失效或体验差的短板。需要有效的 Codex 登录凭证(codex login 或 CODEX_ACCESS_TOKEN 环境变量)。

codex_web_researchA

多步深度研究工具:在 Codex 的联网检索 + 文档浏览引擎上执行「搜索 → 打开文档 → 页内查找 → 点击链接」的迭代研究。所有操作可在一次调用中组合,也可分多轮调用(依靠自动维持的会话上下文,用上一轮返回的 ref_id 串联)。典型流程:先用 search_query 搜索,拿到 ref_id 后用 open(ref_id) 打开权威文档,用 find(ref_id, pattern) 在长文档里定位关键段落,必要时用 click(ref_id, id) 跟随链接。open 返回的文档正文里会内联 [cN: 文本 → 域名] 标记,其中的编号 N 就是可点击元素的 id,直接用于 click({ ref_id, id: N })。返回内容同时含 ref_id 以便后续操作引用。与底层模型无关,适合非 Anthropic 模型下的联网调研。需要有效的 Codex 登录凭证。

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/dhicoc/codex-web-search-mcp'

If you have feedback or need assistance with the MCP directory API, please join our Discord server