OpenAI WebSearch MCP Server

OpenAI WebSearch MCP Server

一键安装和配置,通过模型上下文协议访问 OpenAI 的网络搜索功能。

远程shell执行
高级AI推理
内容获取
数据库交互
AI内容生成
数据与应用分析
访问服务器

README

OpenAI WebSearch MCP 服务器

此 MCP 服务器通过模型上下文协议提供对 OpenAI 网络搜索功能的访问。它允许 AI 助手在与用户对话期间搜索网络,提供助手训练数据中可能没有的最新信息。该服务器可以安装和配置,以便与 Claude.app 或 Zed 编辑器一起使用。

一键安装和配置

Claude

!!可以使用此命令自动更新配置文件(推荐)

OPENAI_API_KEY=sk-xxxx uv run --with uv --with openai-websearch-mcp openai-websearch-mcp-install

sk-xxxx 是您的 API 密钥。您可以从 openai 的开放平台 获取它。

Cursor

即将推出

Windsurf

即将推出

可用工具

  • web_search - 调用 openai 网络搜索作为工具。
    • 必需参数:
      • type (string): web_search_preview
      • search_context_size (string): 用于搜索的上下文窗口空间量的高级指导。可以是 low、medium 或 high。默认为 medium。
      • user_location (object 或 null)
        • type (string): 位置类型 > 近似值。始终为 approximate。
        • city (string): 用户的城市自由文本输入,例如 San Francisco。
        • country (string): 用户的两位 ISO 国家代码,例如 US。
        • region (string): 用户的区域自由文本输入,例如 California。
        • timezone (string): 用户的 IANA 时区,例如 America/Los_Angeles。

手动安装和配置

请确保在安装前已安装 uvx

添加到您的 Claude 设置:

1、使用 uvx

"mcpServers": {
  "openai-websearch-mcp": {
    "command": "uvx",
    "args": ["openai-websearch-mcp"],
    "env": {
        "OPENAI_API_KEY": "your-api-key-here"
    }
  }
}

2、使用 pip 安装

1)通过 pip 安装 openai-websearch-mcp

pip install openai-websearch-mcp

2)修改您的 Claude 设置

"mcpServers": {
  "openai-websearch-mcp": {
    "command": "python",
    "args": ["-m", "openai_websearch_mcp"],
    "env": {
        "OPENAI_API_KEY": "your-api-key-here"
    }
  }
}

为 Zed 配置

添加到您的 Zed settings.json:

使用 uvx

"context_servers": [
  "openai-websearch-mcp": {
    "command": "uvx",
    "args": ["openai-websearch-mcp"],
    "env": {
        "OPENAI_API_KEY": "your-api-key-here"
    }
  }
],

使用 pip 安装

"context_servers": {
  "openai-websearch-mcp": {
    "command": "python",
    "args": ["-m", "openai_websearch_mcp"],
    "env": {
        "OPENAI_API_KEY": "your-api-key-here"
    }
  }
},

调试

您可以使用 MCP 检查器来调试服务器。对于 uvx 安装:

npx @modelcontextprotocol/inspector uvx openai-websearch-mcp

推荐服务器

VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

MCP server for interacting with Neon Management API and databases

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选
mult-fetch-mcp-server

mult-fetch-mcp-server

A versatile MCP-compliant web content fetching tool that supports multiple modes (browser/node), formats (HTML/JSON/Markdown/Text), and intelligent proxy detection, with bilingual interface (English/Chinese).

精选
本地
AIO-MCP Server

AIO-MCP Server

🚀 All-in-one MCP server with AI search, RAG, and multi-service integrations (GitLab/Jira/Confluence/YouTube) for AI-enhanced development workflows. Folk from

精选
本地
Knowledge Graph Memory Server

Knowledge Graph Memory Server

为 Claude 实现持久性记忆,使用本地知识图谱,允许 AI 记住用户的信息,并可在自定义位置存储,跨对话保持记忆。

精选
本地
Hyperbrowser

Hyperbrowser

欢迎来到 Hyperbrowser,人工智能的互联网。Hyperbrowser 是下一代平台,旨在增强人工智能代理的能力,并实现轻松、可扩展的浏览器自动化。它专为人工智能开发者打造,消除了本地基础设施和性能瓶颈带来的麻烦,让您能够:

精选
本地
https://github.com/Streen9/react-mcp

https://github.com/Streen9/react-mcp

react-mcp 与 Claude Desktop 集成,能够根据用户提示创建和修改 React 应用程序。

精选
本地
any-chat-completions-mcp

any-chat-completions-mcp

将 Claude 与任何 OpenAI SDK 兼容的聊天完成 API 集成 - OpenAI、Perplexity、Groq、xAI、PyroPrompts 等。

精选