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-search
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…
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 API and MCP server for developers building AI agents.
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
- FlicenseCqualityBmaintenanceEnables 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.-