GPT-5 Search MCP Server
Click on "Install 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., "@GPT-5 Search MCP ServerSearch the web for recent advancements in renewable energy"
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.
GPT-5 Search MCP Server
An MCP (Model Context Protocol) server that provides access to OpenAI's GPT-5 model with web search and advanced reasoning capabilities.
Features
GPT-5 Integration: Direct access to OpenAI's latest GPT-5 reasoning model
Web Search: Built-in web search capabilities for up-to-date information
Type Safety: Full TypeScript types with Zod validation for API responses
Error Handling: Robust error handling with retry logic and structured error messages
Multiple Variants: Different tools for various use cases:
gpt5-search: Main tool with web search and medium reasoninggpt5: Pure reasoning without web searchgpt5-low: Fast responses with low reasoning effortgpt5-high: Deep analysis with high reasoning effortgpt5-mini: Using the smaller gpt-5-mini modelgpt5-nano: Using the smallest gpt-5-nano modelgpt5-pro: ⚠️ EXPENSIVE - Premium GPT-5 Pro model (use only when explicitly requested)
Related MCP server: MCP OpenAI Tools
Limitations
⚠️ No Local File Access: This MCP server does not provide file reading capabilities. The GPT-5 tools cannot access or read local files from your system. Only text prompts are sent to the OpenAI API.
What it CAN do: Write gpt5-pro outputs to files, make web searches, perform reasoning
What it CANNOT do: Read local files, access your filesystem, include file contents in prompts
If you need to provide file contents to GPT-5, you must copy/paste the content into your prompt manually.
Installation
npm install
npm run buildConfiguration
Set your OpenAI API key as an environment variable:
export OPENAI_API_KEY=your-api-key-hereOptional environment variables:
SEARCH_CONTEXT_SIZE: Controls web search context size (low,medium,high). Default:mediumREASONING_EFFORT: Controls reasoning effort (low,medium,high). Default:mediumCLIENT_CWD: Directory where gpt5-pro outputs will be saved. Default: server's current working directory
Usage with Claude Code
Add to your Claude Code configuration (.claude/config.json):
{
"mcpServers": {
"gpt5-search": {
"command": "node",
"args": ["/path/to/gpt5-search-mcp/build/index.js"],
"env": {
"OPENAI_API_KEY": "your-api-key-here",
"CLIENT_CWD": "${workspaceFolder}"
}
}
}
}Note: The CLIENT_CWD variable controls where gpt5-pro output files are saved. Use ${workspaceFolder} to save files in your current working directory, or specify an absolute path.
Available Tools
gpt5-search
Main tool with web search capabilities. Best for queries requiring current information.
gpt5
Pure reasoning without web search. Best for complex problem-solving that doesn't need current data.
gpt5-low
Fast responses with low reasoning effort and web search. Good for simple queries.
gpt5-high
High reasoning effort with web search. Best for complex problems requiring deep analysis.
gpt5-mini
Uses the gpt-5-mini model - smaller, faster, and less expensive.
gpt5-nano
Uses the gpt-5-nano model - smallest and fastest for simple queries.
gpt5-pro ⚠️
EXPENSIVE MODEL - Use Only When Explicitly Requested
Uses the gpt-5-pro-2025-10-06 model with maximum reasoning capabilities and web search. This is a premium, high-cost model that provides the most advanced reasoning and analysis capabilities.
Important Notes:
This model should only be invoked when the user explicitly requests it due to its significantly higher cost
Automatic File Output: Due to extremely large output sizes that can crash clients, gpt5-pro responses are automatically saved to files in the
gpt5-pro-outputs/directoryThe tool returns only a preview (first 1000 chars) and the file path
Files are named with timestamps:
gpt5-pro-YYYY-MM-DDTHH-MM-SS-mmmZ.txtOutput location can be controlled with the
CLIENT_CWDenvironment variable
Implementation Details
Architecture Improvements (v0.0.2)
Tool Factory Pattern: Single
createToolfunction eliminates code duplicationConfiguration Registry: Centralized
toolConfigsobject manages all tool variantsType Safety: Zod schemas validate API responses with proper TypeScript inference
Error Handling:
Custom
HttpErrorclass for structured errorsAutomatic retry with exponential backoff for transient failures
Respects
Retry-Afterheaders for rate limitingUser-friendly error messages for different status codes
API Response Format
The GPT-5 API returns a structured response with:
Reasoning tokens (hidden but billed)
Web search calls (if web search is enabled)
Final message with text and URL citations
Testing
Run the test script to verify the server is working:
node test-mcp.jsLicense
WTFPL - Do What The Fuck You Want To Public License
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- FlicenseCqualityDmaintenanceEnables GPT-5 inference via OpenAI API with configurable reasoning effort, verbosity levels, and optional web search integration. Supports per-call parameter overrides for flexible AI model interactions through MCP.1
- -license-quality-maintenanceProvides access to OpenAI's advanced models (including o3) with integrated web search, Python code interpreter, and combined analysis capabilities. Enables users to perform web searches, execute code in sandboxed environments, and combine search with analysis through natural language.
- Flicense-quality-maintenanceEnables Claude and other MCP-compatible tools to communicate with OpenAI's GPT models (GPT-5, GPT-5-mini, o3) with conversation history and session management. Features advanced controls like reasoning effort settings, token tracking, and parallel conversation sessions for efficient AI workflows.9
- AlicenseCqualityDmaintenanceEnables AI-powered web research using OpenAI's GPT-5.1 with built-in web search capabilities, returning comprehensive results with citations and source references.14Apache 2.0
Related MCP Connectors
OCR, transcription, file extraction, and image generation for AI agents via MCP.
Social media analytics, video analysis, and competitor intel for any MCP-compatible AI agent.
AI Reasoning Cache & Consensus Layer with 11 MCP tools via Streamable HTTP.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/hz1ulqu01gmnZH4/gpt5-search-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server