mcp-server logo

mcp-server

by gleanwork

A Model Context Protocol (MCP) server implementation for Glean's search and chat capabilities. This server provides a standardized interface for AI models to interact with Glean's content search and conversational AI features.

View on GitHub

Last updated: N/A

What is mcp-server?

The @gleanwork/mcp-server is a Model Context Protocol (MCP) server that allows AI models to access and utilize Glean's search and chat functionalities. It acts as a bridge between AI clients and Glean's APIs, providing a standardized way for them to interact.

How to use mcp-server?

To use the server, you need to configure it with your Glean API credentials (subdomain and API token). You can then configure your MCP client (like Claude Desktop, Cursor, or Windsurf) to connect to the server using the provided configuration snippet. The server exposes tools like glean_search and glean_chat that can be called by the client.

Key features of mcp-server

  • Search Integration with Glean's content index

  • Chat Interface with Glean's AI assistant

  • MCP Compliance

  • Configuration tool for various MCP clients (Cursor, Claude Desktop, Windsurf)

Use cases of mcp-server

  • Integrating Glean search into AI assistants

  • Enabling AI models to answer questions based on Glean's content

  • Providing context from Glean to AI models for improved responses

  • Building custom AI applications that leverage Glean's search and chat capabilities

FAQ from mcp-server

What is MCP?

MCP stands for Model Context Protocol, a standard for AI models to access external context and tools.

What API scopes are required for the Glean API token?

The API token requires the chat and search scopes.

How do I configure the server for Claude Desktop?

Use the configuration tool: npx @gleanwork/mcp-server configure --client claude --token your_api_token --domain your_subdomain. Then restart Claude and use the hammer icon.

How do I debug the MCP server?

Use the MCP Inspector by running npm run inspector.

Where can I find the Glean API documentation?

You can find the documentation at docs.glean.com.