This server provides a standardized interface for AI models to interact with Glean's content search and conversational AI features through stdio communication.
npx @mintlify/mcp add glean --client claude
Installation
With npm
:
npm install @gleanwork/mcp-server
With pnpm
:
pnpm install @gleanwork/mcp-server
With yarn
:
yarn add @gleanwork/mcp-server
Configuration
- Set up your Glean API credentials:
export GLEAN_SUBDOMAIN=your_subdomain
export GLEAN_API_TOKEN=your_api_token
- (Optional) For global tokens that support impersonation:
export GLEAN_ACT_AS=user@example.com
MCP Client Configuration
To configure this MCP server in your MCP client (such as Claude Desktop, Windsurf, Cursor, etc.), add the following configuration to your MCP client settings:
{
"mcpServers": {
"glean": {
"command": "npx",
"args": ["-y", "@gleanwork/mcp-server"],
"env": {
"GLEAN_SUBDOMAIN": "<glean instance subdomain>",
"GLEAN_API_TOKEN": "<glean api token>"
}
}
}
}
Replace the environment variable values with your actual Glean credentials.
Available tools
glean_search
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.
glean_chat
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.