GPT-5 MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| OPENAI_API_KEY | Yes | Your OpenAI API key with GPT-5 access. | |
| TASK_COST_LIMIT | No | Per-task spending limit in USD (default: 2.00). | 2.00 |
| DAILY_COST_LIMIT | No | Daily spending limit in USD (default: 10.00). | 10.00 |
| ALERT_WEBHOOK_URL | No | Optional webhook URL for alerts. | |
| OPENAI_TIMEOUT_MS | No | Timeout in ms (default: 30000). | 30000 |
| OPENAI_RETRY_COUNT | No | Number of retries (default: 3). | 3 |
| RESOURCE_MAX_COUNT | No | Max resources included per call (default: 5). | 5 |
| DEFAULT_TEMPERATURE | No | Default temperature for GPT-5 (default: 0.7). | 0.7 |
| RESOURCE_MAX_TOKENS | No | Per-resource token budget (default: 1500). | 1500 |
| MAX_INSTRUCTION_TOKENS | No | Truncate very long instructions (default: 1500). | 1500 |
| OPENAI_FALLBACK_MODELS | No | Comma-separated fallback models (default: gpt-4o,gpt-4o-mini,gpt-4-turbo-preview,gpt-4-turbo,gpt-4,gpt-3.5-turbo). | gpt-4o,gpt-4o-mini,gpt-4-turbo-preview,gpt-4-turbo,gpt-4,gpt-3.5-turbo |
| OPENAI_RESPONSES_MODEL | No | Primary OpenAI model (default: gpt-5). | gpt-5 |
| DEFAULT_REASONING_EFFORT | No | Default reasoning effort: minimal, low, medium, or high (default: high). | high |
| MAX_CONVERSATION_CONTEXT | No | Number of messages kept per call (default: 10). | 10 |
| OPENAI_RETRY_BASE_DELAY_MS | No | Base delay between retries in ms (default: 300). | 300 |
| CONVERSATION_HARD_CAP_MULTIPLIER | No | Hard cap multiplier for conversation (default: 10). | 10 |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| consult_gpt5C | Consult GPT-5 for planning or coding assistance |
| start_conversationB | Start a new conversation with GPT-5 |
| continue_conversationB | Continue an existing conversation with GPT-5 |
| get_cost_reportB | Get a report of current costs and usage |
| set_cost_limitsB | Configure spending limits for GPT-5 usage |
| set_conversation_optionsC | Adjust conversation budget/context options |
| get_conversation_metadataC | Return conversation metadata and messages |
| summarize_conversationB | Summarize a conversation to reduce context size |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
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/andreahaku/gpt5_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server