OpenAI WebSearch MCP Server
Provides a web_search tool that calls OpenAI's web search preview API to retrieve up-to-date web information, with configurable search context size and optional user location.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
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)
OPENAI_API_KEY=sk-xxxx uv run --with uv --with openai-websearch-mcp openai-websearch-mcp-installsk-xxxx is your API key. You can get it from openai's open platform
Cursor
Conming soon
Windsurf
Conming soon
Related MCP server: OpenAI WebSearch MCP Server
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.
Manual installation and configuration
Please make sure uvx is installed before installation
Add to your Claude settings:
1、Using uvx
"mcpServers": {
"openai-websearch-mcp": {
"command": "uvx",
"args": ["openai-websearch-mcp"],
"env": {
"OPENAI_API_KEY": "your-api-key-here"
}
}
}2、Using pip installation
1)install openai-websearch-mcp via pip:
pip install openai-websearch-mcp2)modify your Claude settings
"mcpServers": {
"openai-websearch-mcp": {
"command": "python",
"args": ["-m", "openai_websearch_mcp"],
"env": {
"OPENAI_API_KEY": "your-api-key-here"
}
}
}Configure for Zed
Add to your Zed settings.json:
Using uvx
"context_servers": [
"openai-websearch-mcp": {
"command": "uvx",
"args": ["openai-websearch-mcp"],
"env": {
"OPENAI_API_KEY": "your-api-key-here"
}
}
],Using pip installation
"context_servers": {
"openai-websearch-mcp": {
"command": "python",
"args": ["-m", "openai_websearch_mcp"],
"env": {
"OPENAI_API_KEY": "your-api-key-here"
}
}
},Debugging
You can use the MCP inspector to debug the server. For uvx installations:
npx @modelcontextprotocol/inspector uvx openai-websearch-mcpTool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Provides AI assistants with access to Seltz's powerful Web Search capabilities.
Give AI assistants access to real-time data. Search the web, compare flights, find hotels, and more.
Enable AI assistants to perform web searches using Perplexity's Sonar Pro.
Give your AI today's internet: live web search, real-time breaking news, full articles and papers.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables AI models to search the web for current information before generating responses, with features for conditional searching, geographic customization, and automatic citations.1MIT
- AlicenseNot gradedqualityDmaintenanceProvides intelligent web search capabilities using OpenAI's Web Search API with reasoning models. Supports localized results, multiple model options, and automatic source citations for current information retrieval.MIT
- FlicenseNot gradedqualityDmaintenanceEnables AI agents to perform web searches, extract webpage content, and conduct end-to-end search-and-extract operations using multiple search providers and content extraction methods.-
- FlicenseNot gradedqualityCmaintenanceEnables the AI Learning Assistant to perform web searches for current or external information, returning ranked public-web results with titles, URLs, snippets, and scores over Streamable HTTP.-