OpenAI WebSearch MCP 服务器
此 MCP 服务器通过模型上下文协议 (MCP) 提供对 OpenAI 网页搜索功能的访问。它允许 AI 助手在与用户对话时搜索网页,提供助手训练数据中可能缺失的最新信息。该服务器可以安装和配置,以便与 Claude.app 或 Zed 编辑器配合使用。
一键安装和配置
克劳德
!!可以使用此命令自动更新配置文件(推荐)
sk-xxxx 是您的 API 密钥,您可以从OpenAI 开放平台获取
光标
即将到来
风帆冲浪
即将到来
可用工具
web_search
- 将 openai websearch 称为工具。- 必需参数:
type
(字符串):web_search_previewsearch_context_size
(字符串):用于搜索的上下文窗口空间大小的高级指导。可选低、中或高。默认为中。user_location
(对象或空)type
(字符串):位置类型 > 近似值。始终为近似值。city
(字符串):用户所在城市的自由文本输入,例如旧金山。country
(字符串):用户的两个字母的 ISO 国家代码,例如美国。region
(字符串):用户所在区域的自由文本输入,例如加利福尼亚州。timezone
(字符串):用户的 IANA 时区,例如 America/Los_Angeles。
- 必需参数:
手动安装和配置
安装前请确保已安装uvx
添加到您的 Claude 设置:
1、使用uvx
2、使用pip安装
1)通过pip安装openai-websearch-mcp
:
2)修改你的Claude设置
为 Zed 配置
添加到您的 Zed settings.json:
使用 uvx
使用 pip 安装
调试
您可以使用 MCP 检查器来调试服务器。对于 uvx 安装:
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
一键安装和配置,通过模型上下文协议访问 OpenAI 的网页搜索功能。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityFacilitates integration of Brave Search functionalities with AI assistants through the Model Context Protocol, enabling web and local searches using the Brave Search API.Last updated -212PythonMIT License
- AsecurityAlicenseAqualityProvides web search capabilities using Google Custom Search API, enabling users to perform searches through a Model Context Protocol server.Last updated -21,15135JavaScriptMIT License
- AsecurityAlicenseAqualityEnables AI assistants to interact with Meilisearch via the Model Context Protocol, allowing comprehensive index, document, and search management through a standardized interface.Last updated -6808TypeScriptMIT License
- -securityAlicense-qualityA lightweight bridge that wraps OpenAI's built-in tools (like web search and code interpreter) as Model Context Protocol servers, enabling their use with Claude and other MCP-compatible models.Last updated -11PythonMIT License