O
OpenAI WebSearch MCP
community
search
This is a Python-based MCP server that provides OpenAI `web_search` build-in tool.
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-install
sk-xxxx is your API key. You can get it from openai's open platform
Cursor
Conming soon
Windsurf
Conming soon
Available Tools
- Call openai websearch as tool.web_search
- Required arguments:
(string): web_search_previewtype
(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.search_context_size
(object or null)user_location
(string): The type of location > approximation. Always approximate.type
(string): Free text input for the city of the user, e.g. San Francisco.city
(string): The two-letter ISO country code of the user, e.g. US.country
(string): Free text input for the region of the user, e.g. California.region
(string): The IANA timezone of the user, e.g. America/Los_Angeles.timezone
- Required arguments:
Manual installation and configuration
Please make sure
uvx
is installed before installationAdd 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" } } }
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-mcp
Related Servers
Aiven
official
Navigate your [Aiven projects](https://go.aiven.io/mcp-server) and interact with the PostgreSQL®, Apache Kafka®, ClickHouse® and OpenSearch® services
View DetailsApify
official
[Actors MCP Server](https://apify.com/apify/actors-mcp-server): Use 3,000+ pre-built cloud tools to extract data from websites, e-commerce, social media, search engines, maps, and more
View Details