Model Context Protocol
Connect Glean to AI models with MCP
Glean MCP Integration
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.
MCP Server
@gleanwork/mcp-server
Official MCP server implementation for Glean’s search and chat capabilities
Features
- Enterprise Search: Access Glean’s powerful content search capabilities
- Chat Interface: Interact with Glean’s AI assistant
- MCP Compliant: Implements the Model Context Protocol specification
Available Tools
The Glean MCP server provides the following 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.
For complete parameter details, see Search API Documentation
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.
For complete parameter details, see Chat API Documentation
Configuration
API Tokens
You’ll need Glean API credentials, and specifically a user-scoped API token. API Tokens require the following scopes: chat
, search
. 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.
IDE Integrations
Application Integrations
Was this page helpful?