by ConechoAI
Provides access to OpenAI's websearch capability through the Model Context Protocol, enabling AI assistants to retrieve up-to-date web information during conversations.
Enables AI assistants to perform web searches using OpenAI's websearch endpoint, delivering fresh information that may not be present in the model's training data.
uvx or standard pip).web_search tool from the assistant, providing required arguments such as type, search_context_size, and optional user_location.npx @modelcontextprotocol/inspector) to debug if needed.web_search tool with required arguments (type, search_context_size) and optional user location metadata.low, medium (default), high).uvx (OPENAI_API_KEY=sk-xxxx uv run --with uv --with openai-websearch-mcp openai-websearch-mcp-install).uvx and pip.Q: Do I need an OpenAI API key?
A: Yes, the server requires a valid OPENAI_API_KEY environment variable.
Q: Which editors or platforms are supported? A: Claude.app, Zed editor, and any client that implements the Model Context Protocol.
Q: How do I debug the server?
A: Use the MCP inspector, e.g., npx @modelcontextprotocol/inspector uvx openai-websearch-mcp.
Q: Can I customize the search context size?
A: Yes, set search_context_size to low, medium, or high when calling the tool.
Q: Is user location required? A: No, it is optional but can improve search relevance when provided.
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.
!!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-install
sk-xxxx is your API key. You can get it from openai's open platform
Conming soon
Conming soon
web_search - Call openai websearch as tool.
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.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-mcp
2)modify your Claude settings
"mcpServers": {
"openai-websearch-mcp": {
"command": "python",
"args": ["-m", "openai_websearch_mcp"],
"env": {
"OPENAI_API_KEY": "your-api-key-here"
}
}
}
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"
}
}
},
You can use the MCP inspector to debug the server. For uvx installations:
npx @modelcontextprotocol/inspector uvx openai-websearch-mcp
Please log in to share your review and rating for this MCP.
{
"mcpServers": {
"openai-websearch-mcp": {
"command": "python",
"args": [
"-m",
"openai_websearch_mcp"
],
"env": {
"OPENAI_API_KEY": "<YOUR_API_KEY>"
}
}
}
}claude mcp add openai-websearch-mcp python -m openai_websearch_mcpExplore related MCPs that share similar capabilities and solve comparable challenges
by exa-labs
Provides real-time web search capabilities to AI assistants via a Model Context Protocol server, enabling safe and controlled access to the Exa AI Search API.
by perplexityai
Enables Claude and other MCP‑compatible applications to perform real‑time web searches through the Perplexity (Sonar) API without leaving the MCP ecosystem.
by MicrosoftDocs
Provides semantic search and fetch capabilities for Microsoft official documentation, returning content in markdown format via a lightweight streamable HTTP transport for AI agents and development tools.
by elastic
Enables natural‑language interaction with Elasticsearch indices via the Model Context Protocol, exposing tools for listing indices, fetching mappings, performing searches, running ES|QL queries, and retrieving shard information.
by graphlit
Enables integration between MCP clients and the Graphlit platform, providing ingestion, extraction, retrieval, and RAG capabilities across a wide range of data sources and connectors.
by mamertofabian
Fast cross‑platform file searching leveraging the Everything SDK on Windows, Spotlight on macOS, and locate/plocate on Linux.
by cr7258
Provides Elasticsearch and OpenSearch interaction via Model Context Protocol, enabling document search, index management, cluster monitoring, and alias operations.
by kagisearch
Provides web search and video summarization capabilities through the Model Context Protocol, enabling AI assistants like Claude to perform queries and summarizations.
by liuyoshio
Provides natural‑language search and recommendation for Model Context Protocol servers, delivering rich metadata and real‑time updates.