chatgpt-context-mcp
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CHATGPT_ACCOUNT_ID | No | ChatGPT account ID (optional, for Team/Enterprise accounts). | |
| CHATGPT_BEARER_TOKEN | Yes | ChatGPT bearer token from browser DevTools. | |
| CHATGPT_CODEX_MCP_ENV_FILE | No | Path to a private env file for credentials. | $HOME/.config/chatgpt-context-mcp/env |
| CHATGPT_CODEX_MCP_CACHE_DIR | No | Override cache directory path. | $HOME/.cache/chatgpt-context-mcp/ |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
| resources | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| import_chatgpt_urlC | Refresh and import a private ChatGPT /c/{conversation_id} URL into local cache and return bounded context. |
| get_chatgpt_contextA | Read an already imported ChatGPT conversation from local cache. This does not check the remote conversation. |
| list_chatgpt_importsA | List locally cached ChatGPT conversation imports, optionally filtered by a simple text query. |
| verify_chatgpt_authA | Check whether CHATGPT_BEARER_TOKEN is present, unexpired, and accepted by the ChatGPT backend. |
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
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/protosskai/chatgpt-context-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server