Prerequisites
- Glean OAuth authorization server enabled (Admin Console > Settings > Third-party access)
- MCP server enabled (Admin Console > Platform > MCP)
- Query API flags enabled for ChatGPT
fetch
support:queryapi.getDocuments.enabled
queryapi.getDocuments.content.enabled
These Query API settings allow ChatGPT to request document metadata and inline
content through its
fetch
tool. Without them, the connector cannot
authenticate or leverage fetch
properly. If you encounter an error when
setting up the ChatGPT connetor, contact your Glean account team to request
activation.Add Glean MCP server to ChatGPT
1
Open ChatGPT settings (admin)
Navigate to the ChatGPT admin area for connectors. 

2
Provide the server URL
Enter the endpoint: 
https://[instance-name]-be.glean.com/mcp/chatgpt

3
Authenticate with Glean OAuth
Complete the sign-in flow. 

4
Confirmation
ChatGPT supports 
search
and fetch
tool equivalents.
ChatGPT MCP constraints
- Web-based managed connector: configuration is performed in ChatGPT’s UI; there is no local config file support.
- HTTP-only transport: stdio is not supported for remote servers.
- Limited tool surface: only
search
andfetch
equivalents are available when calling MCP servers. - Fixed endpoint format:
https://[instance-name]-be.glean.com/mcp/chatgpt
(admin-managed install).
- OpenAI Developer Mode guide: https://platform.openai.com/docs/guides/developer-mode
- Connectors in ChatGPT (OpenAI Help): https://help.openai.com/en/articles/11487775-connectors-in-chatgpt
Troubleshooting
Initial connection error / cannot complete connection
Most often caused by required Query API flags not being enabled in your Glean instance. Required settings (contact your Glean account team to enable):queryapi.getDocuments.enabled
queryapi.getDocuments.content.enabled
- Refresh the page after the initial connection attempt
- Re-add the Glean MCP connector in ChatGPT settings
https://[instance-name]-be.glean.com/mcp/chatgpt
.
- For generic auth/network issues, see Troubleshooting MCP Connectivity