This guide is for administrators to configure ChatGPT to connect to your company’s Glean MCP server.

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. ChatGPT
Admin
2

Provide the server URL

Enter the endpoint: https://[instance-name]-be.glean.com/mcp/chatgptConnector URL
3

Authenticate with Glean OAuth

Complete the sign-in flow. OAuth
Consent
4

Confirmation

ChatGPT supports search and fetch tool equivalents.Confirmation

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 and fetch equivalents are available when calling MCP servers.
  • Fixed endpoint format: https://[instance-name]-be.glean.com/mcp/chatgpt (admin-managed install).
References:

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
After enabling, retry the connection. If you still hit an error:
  1. Refresh the page after the initial connection attempt
  2. Re-add the Glean MCP connector in ChatGPT settings
Note: Use the endpoint https://[instance-name]-be.glean.com/mcp/chatgpt.