Skip to main content
Glama
ConechoAI

OpenAI WebSearch MCP Server

by ConechoAI

OpenAI WebSearch MCP 服务器

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

一键安装和配置

克劳德

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

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

sk-xxxx 是您的 API 密钥,您可以从OpenAI 开放平台获取

光标

即将到来

风帆冲浪

即将到来

Related MCP server: SearchAPI MCP Server

可用工具

  • web_search - 将 openai websearch 称为工具。

    • 必需参数:

      • type (字符串):web_search_preview

      • search_context_size (字符串):用于搜索的上下文窗口空间大小的高级指导。可选低、中或高。默认为中。

      • user_location (对象或空)

        • type (字符串):位置类型 > 近似值。始终为近似值。

        • city (字符串):用户所在城市的自由文本输入,例如旧金山。

        • country (字符串):用户的两个字母的 ISO 国家代码,例如美国。

        • region (字符串):用户所在区域的自由文本输入,例如加利福尼亚州。

        • timezone (字符串):用户的 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

Available Tools

1 tool

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 2 tool updatesv1.0.0
    • Addedopenai_web_search
    • Removedweb_search
  2. 1 tool update
    • First observedweb_search

TDQS

A3.7/5.0

Scored across 1 tool

Disambiguation5/5

With only one tool, there is no possibility of ambiguity or overlap between tools. The tool has a single, clear purpose of performing web searches with OpenAI models.

Naming Consistency5/5

Since there is only one tool, naming consistency is inherently perfect. The tool name 'openai_web_search' follows a clear and descriptive pattern that would be consistent if more tools existed.

Tool Count2/5

A single tool is generally too few for a server's purpose, as it limits functionality and flexibility. While the tool is well-described, the server's scope appears to be web search, which could benefit from additional tools for filtering, refining, or managing searches.

Completeness2/5

The server is severely incomplete for web search functionality. It lacks essential operations such as filtering results, handling pagination, saving or retrieving search history, or configuring search parameters beyond model selection. This will likely cause agent failures in complex search tasks.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    C
    maintenance
    A Model Context Protocol server that enables AI models to perform real-time internet and knowledge searches through Higress, enhancing model responses with up-to-date information from Google, Bing, Arxiv, and internal knowledge bases.
    1
    5
    Apache 2.0
  • A
    license
    B
    quality
    F
    maintenance
    Connects AI assistants to external data sources (Google, Bing, etc.) via SearchAPI.site, implementing the Model Context Protocol (MCP) for secure and contextual access to web information.
    3
    7 npm
    14
    MIT
  • A
    license
    C
    quality
    D
    maintenance
    A Model Context Protocol server that enables AI assistants to search the web using Bocha AI's search API, supporting features like time filtering, domain inclusion/exclusion, and summarized results.
    1
    45 npm
    3
    Apache 2.0
  • A
    license
    Not graded
    quality
    D
    maintenance
    Enables AI agents to automate web tasks such as browsing, clicking, typing, and taking screenshots via the Model Context Protocol.
    1
    MIT