Glean’s Model Context Protocol (MCP) server enables AI models to securely access and search your organization’s knowledge. This integration allows you to use Glean’s powerful search and chat capabilities in MCP-compatible tools and applications.
You’ll need Glean API credentials, and specifically a user-scoped API token. You should speak to your Glean administrator to provision these tokens.
Currently, our MCP implementation uses API tokens for authentication. While the MCP specification includes optional authorization mechanisms and there is an active RFC to add OAuth 2.0 support, we’re using a simple token-based approach for now. Once the OAuth specification is finalized and widely adopted in the MCP ecosystem, we plan to implement OAuth-based authentication for enhanced security and user management.
Your MCP server should now be listed and Enabled, as shown below.
3
Test the Integration
Since MCP does not mandate a specific tool discovery interface, you may need to explicitly prompt Cursor’s AI to use Glean’s tools. Try prefixing your questions with phrases like “Using Glean, …” or “Search in Glean for …” to help the AI understand which tool to use.
Open a new chat in Cursor
Try a query like “Using Glean, what’s our company’s policy on remote work?”
Verify that Cursor can access and search your Glean content
Configure Windsurf
1
Get Credentials
Ensure you have your Glean API credentials ready from the Configuration section above. You’ll need:
Your MCP server should now be listed in the servers section, as shown below.
3
Test the Integration
Since MCP does not mandate a specific tool discovery interface, you may need to explicitly prompt Cascade to use Glean’s tools. Try prefixing your questions with phrases like “Using Glean, …” or “Search in Glean for …” to help Cascade understand which tool to use.
Open a new chat in Windsurf
Try a query like “Using Glean, what’s our company’s policy on remote work?”
Verify that Windsurf can access and search your Glean content
Your MCP server should now be listed, as shown below.
3
Test the Integration
Since MCP does not mandate a specific tool discovery interface, you may need to explicitly prompt Claude to use Glean’s tools. Try prefixing your questions with phrases like “Using Glean, …” or “Search in Glean for …” to help Claude understand which tool to use.
Start a new conversation in Claude Desktop
Try a query like “Using Glean, what’s our company’s policy on remote work?”
Verify that Claude can access and search your Glean content
Search Glean’s content index using the Glean Search API. This tool allows you to query Glean’s content index with various filtering and configuration options.
Interact with Glean’s AI assistant using the Glean Chat API. This tool allows you to have conversational interactions with Glean’s AI, including support for message history, citations, and various configuration options.