The OpenAI WebSearch MCP Server enables AI assistants to perform intelligent web searches with advanced reasoning capabilities and real-time information access.
Core Capabilities:
Intelligent web search using OpenAI's reasoning models for up-to-date information retrieval
Multi-model support including GPT-4o, GPT-4o-mini, GPT-5, GPT-5-mini, GPT-5-nano, o3, and o4-mini
Configurable reasoning effort with low, medium, high, or minimal levels for optimal performance
Multiple search modes - fast iterations with lightweight models or comprehensive deep research
Localized search results based on user location (city, timezone, region, country)
Adjustable search context with low, medium, or high settings
Multiple API versions including web_search_preview and web_search_preview_2025_03_11
Integration & Configuration:
Seamless integration with AI assistants like Claude Desktop, Cursor, and Claude Code via MCP protocol
Easy configuration through environment variables for API keys and default models
Flexible parameters for customizing each search query including input type and model selection
Provides access to OpenAI's websearch tool to query for current information from the web
OpenAI WebSearch MCP Server
This MCP server provides access to OpenAI's websearch functionality through the Model Context Protocol. It allows AI assistants to search the web during conversations with users, providing up-to-date information that may not be available in the assistant's training data. The server can be installed and configured for use with Claude.app or Zed editor.
One click installation & Configuration
Claude
!!Can using this command auto update configure file(Recommend)
sk-xxxx is your API key. You can get it from openai's open platform
Cursor
Conming soon
Windsurf
Conming soon
Available Tools
web_search
- Call openai websearch as tool.- Required arguments:
type
(string): web_search_previewsearch_context_size
(string): High level guidance for the amount of context window space to use for the search. One of low, medium, or high. medium is the default.user_location
(object or null)type
(string): The type of location > approximation. Always approximate.city
(string): Free text input for the city of the user, e.g. San Francisco.country
(string): The two-letter ISO country code of the user, e.g. US.region
(string): Free text input for the region of the user, e.g. California.timezone
(string): The IANA timezone of the user, e.g. America/Los_Angeles.
- Required arguments:
Manual installation and configuration
Please make sure uvx
is installed before installation
Add to your Claude settings:
1、Using uvx
2、Using pip installation
1)install openai-websearch-mcp
via pip:
2)modify your Claude settings
Configure for Zed
Add to your Zed settings.json:
Using uvx
Using pip installation
Debugging
You can use the MCP inspector to debug the server. For uvx installations:
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
One click installation & Configuration,access to OpenAI's websearch functionality through the Model Context Protocol。
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 -13MIT License
- AsecurityAlicenseAqualityProvides web search capabilities using Google Custom Search API, enabling users to perform searches through a Model Context Protocol server.Last updated -44744MIT 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 -6819MIT License
- AsecurityAlicenseAqualityAn MCP server that enables web search capabilities using OpenAI's o3 model, allowing AI assistants to perform text-based web searches and return AI-powered results.Last updated -1746269MIT License