SuperAPIAI Directory

openai-websearch-mcp

github.com · AI developer platforms

Expose OpenAI's built-in web search tool.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

openai-websearch-mcp is an advanced MCP server designed to provide AI assistants with intelligent web search capabilities, implemented based on OpenAI's reasoning models. It exposes OpenAI's web search tool to compatible AI assistants through the Model Context Protocol, enabling them to obtain the latest information and perform intelligent reasoning.

Key Capabilities

  • Reasoning model support: Fully compatible with OpenAI's latest reasoning models, including gpt-5, gpt-5-mini, gpt-5-nano, o3, o4-mini.
  • Intelligent effort control: Intelligently sets the reasoning_effort default value based on the use case.
  • Multi-mode search: Can use gpt-5-mini for rapid iteration, or gpt-5 for deep research.
  • Localized results: Supports location-based search customization.
  • Rich descriptions: Provides complete parameter documentation for easy integration.
  • Flexible configuration: Supports environment variables for easy deployment.

Usage

This tool provides a one-click installation method for Claude Desktop. Users need to replace sk-xxxx in the configuration with their own OpenAI API key. The configuration can be added to claude_desktop_config.json or Cursor's MCP settings. Claude Code will automatically detect the MCP server configured for Claude Desktop.

For local development, use the absolute path of the virtual environment for testing.

Available Tools

  • openai_web_search: An intelligent web search tool that supports reasoning models.

Usage Examples

After configuration is complete, users can ask the AI assistant to perform searches in natural language, for example:

  • "Use openai_web_search to search for the latest developments in AI reasoning models"
  • "Use openai_web_search with gpt-5 and high reasoning effort to conduct a comprehensive analysis of quantum computing breakthroughs"
  • "Use openai_web_search to search for local tech meetups in San Francisco this week" The AI assistant will automatically use the openai_web_search tool based on the request and set the appropriate parameters.

Model Selection Guide

  • Fast multi-turn search: gpt-5-mini is recommended and reasoning_effort: "low", suitable for rapid iteration, real-time information, and multiple quick queries, with lower latency and better cost-effectiveness.
  • Deep research: gpt-5 and reasoning_effort: "medium" or "high" are recommended, suitable for comprehensive analysis, complex topics, and detailed investigations, providing multi-turn reasoning results without agent iteration.

Installation and Configuration

  • Install using uvx (recommended).
  • Development environment setup: includes environment variable configuration and using MCP Inspector.

FAQ

  • Error: "Unsupported parameter: 'reasoning.effort'": Occurs when the reasoning_effort parameter is used with non-reasoning models (such as gpt-4o, gpt-4o-mini). The server handles this automatically and only applies reasoning parameters to compatible models.
  • Error: "No module named 'openai_websearch_mcp'": Ensure the package is installed correctly and the Python path includes the package location.

License

This project is licensed under the MIT License.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools