o4-search
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@o4-search search for recent benchmarks comparing OpenAI o4-mini and gpt-5"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@mkusaka/o4-search-mcp
An MCP (Model Context Protocol) server that provides web search capabilities using OpenAI models. The o4-search tool accepts text queries and returns AI-powered search results with advanced reasoning capabilities.
Note: This is a personal fork of yoshiko-pg/o3-search-mcp maintained for my own use. The original author is not involved with this repository, its releases, or support.
Supported Models
o4-mini(default)gpt-5Any other OpenAI model that supports the responses API with web search tools
Related MCP server: multi-api-web-search
Installation
Using npx (Recommended)
Claude Code:
$ claude mcp add search -s user \
-e OPENAI_API_KEY=your-api-key \
-e OPENAI_MODEL=o4-mini \
-e SEARCH_CONTEXT_SIZE=high \
-e REASONING_EFFORT=high \
-- npx @mkusaka/mcp-server-o4-searchjson:
{
"mcpServers": {
"o4-search": {
"command": "npx",
"args": ["@mkusaka/mcp-server-o4-search"],
"env": {
"OPENAI_API_KEY": "your-api-key",
// Optional: o4-mini, gpt-5, etc. (default: o4-mini)
"OPENAI_MODEL": "o4-mini",
// Optional: low, medium, high (default: high)
"SEARCH_CONTEXT_SIZE": "high",
"REASONING_EFFORT": "high"
}
}
}
}Local Development Setup
If you want to download and run the code locally:
# setup
git clone git@github.com:mkusaka/o4-search-mcp.git
cd o4-search-mcp
pnpm install
pnpm buildClaude Code:
$ claude mcp add search -s user \
-e OPENAI_API_KEY=your-api-key \
-e OPENAI_MODEL=o4-mini \
-e SEARCH_CONTEXT_SIZE=high \
-e REASONING_EFFORT=high \
-- node /path/to/o4-search-mcp/build/index.jsjson:
{
"mcpServers": {
"o4-search": {
"command": "node",
"args": ["/path/to/o4-search-mcp/build/index.js"],
"env": {
"OPENAI_API_KEY": "your-api-key",
// Optional: o4-mini, gpt-5, etc. (default: o4-mini)
"OPENAI_MODEL": "o4-mini",
// Optional: low, medium, high (default: high)
"SEARCH_CONTEXT_SIZE": "high",
"REASONING_EFFORT": "high"
}
}
}
}Available Tools
1 toolo4-searchA
An AI agent with advanced web search capabilities. Useful for finding latest information and troubleshooting errors. Supports natural language queries.
Inputs: input (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
There is only one tool, so there is no risk of confusion with another tool. Its purpose as a natural-language web search agent is clear enough for an agent to select it unambiguously.
With a single tool named `o4-search`, there are no competing naming conventions to create inconsistency. The lowercase hyphenated name also matches the server name.
A single tool is borderline thin for a search-oriented server, even if the domain is narrow. It may be sufficient for basic queries but leaves little room for specialized search operations.
The core web search operation is covered, which is the stated purpose of the server. Minor gaps may exist around advanced filtering, result fetching, or structured outputs, but the main workflow is available.
Maintenance
Related MCP Connectors
Live AI-native web search with citations. One tool for every MCP client. Flat per-request pricing.
Provides AI assistants with access to Seltz's powerful Web Search capabilities.
Scrape, crawl and search the web for AI agents via MCP.
Web search, structured extraction, page monitor, link check & CVE scan for AI agents over MCP.
Related MCP Servers
- AlicenseAqualityDmaintenanceEnables MCP clients to perform web searches via Synthetic's Search API, with configurable result detail levels, AI summarization, and output truncation to manage context window.1MIT
- FlicenseCqualityCmaintenanceEnables MCP clients to perform web searches through multiple AI models, with dual-mode routing for fast or cited results and consensus-based multi-engine querying to cross-verify information.2-
- AlicenseNot gradedqualityCmaintenanceEnables MCP-compatible AI applications to perform web searches via OpenAI's web search tool and receive concise factual results with source URLs, while leaving comparison and final reasoning to the calling AI.MIT
- FlicenseNot gradedqualityAmaintenanceEnables users to run AI-powered web searches and analyze images through MCP clients, returning structured search results and image insights tailored for coding workflows.-