Glean MCP Server logo

Glean MCP Server

by rahul-roy-glean

The Glean MCP Server is a Model Context Protocol server designed to integrate with Glean's Chat API. It allows you to leverage Glean's search and knowledge capabilities within applications supporting the Model Context Protocol.

View on GitHub

Last updated: N/A

What is Glean MCP Server?

The Glean MCP Server acts as a bridge between applications that use the Model Context Protocol (MCP) and the Glean Chat API. It receives requests in the MCP format, translates them into Glean API calls, and returns the results in a format that the MCP client can understand.

How to use Glean MCP Server?

To use the server, you need to install it, configure it with your Glean API key and base URL, and then run it in either standalone or debug mode. You can then integrate it with applications like Cursor by configuring the MCP settings to point to the running server.

Key features of Glean MCP Server

  • Integration with Glean Chat API

  • Supports Model Context Protocol

  • Standalone and debug modes

  • Integration with Cursor

  • Configuration via environment variables

Use cases of Glean MCP Server

  • Integrating Glean search into code editors

  • Adding Glean knowledge to chat applications

  • Using Glean as a backend for MCP-compatible tools

  • Providing context-aware suggestions in development environments

FAQ from Glean MCP Server

What is the Model Context Protocol (MCP)?

The Model Context Protocol (MCP) is a standard for providing context to language models and other AI systems.

What is the Glean API?

The Glean API allows developers to access Glean's search and knowledge capabilities programmatically.

How do I get a Glean API key?

You can obtain a Glean API key from your Glean administrator or by contacting Glean support.

What are the prerequisites for running the server?

The server requires Python 3.10+ and the UV package manager. A Glean API key with appropriate permissions is also required.

How do I configure the server?

You configure the server by setting the GLEAN_API_KEY and GLEAN_BASE_URL environment variables in a .env file.