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.

This documentation is for the STDIO (local) MCP server implementation. For the Remote MCP server implementation, please reach out to your Glean account team.

MCP Server

@gleanwork/mcp-server


Official STDIO (local) 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:

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.

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.

Search Glean’s People directory to find employee information.

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