@gleanwork/local-mcp-server
TypeScript icon, indicating that this package has built-in type declarations

0.7.16 • Public • Published

@gleanwork/local-mcp-server

MCP Server CI Build npm version License

The Glean MCP Server is a Model Context Protocol (MCP) server that provides seamless integration with Glean's enterprise knowledge.

Features

  • Company Search: Access Glean's powerful content search capabilities
  • People Profile Search: Access Glean's people directory
  • Chat: Interact with Glean's AI assistant
  • Read Documents: Retrieve documents from Glean by ID or URL
  • MCP Compliant: Implements the Model Context Protocol specification

Tools

  • company_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.

  • 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.

  • people_profile_search

    Search Glean's People directory to find employee information.

  • read_documents

    Read documents from Glean by providing document IDs or URLs. This tool allows you to retrieve the full content of specific documents for detailed analysis or reference.

MCP Client Configuration

To configure this MCP server in your MCP client (such as Claude Desktop, Windsurf, Cursor, etc.), run @gleanwork/configure-mcp-server passing in your client, token and instance.

# Configure for Cursor
npx @gleanwork/configure-mcp-server --client cursor --token your_api_token --instance instance_name

# Configure for Claude Desktop
npx @gleanwork/configure-mcp-server --client claude --token your_api_token --instance instance_name

For more details see: @gleanwork/configure-mcp-server.

Manual MCP Configuration

To manually configure an 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/local-mcp-server"],
      "env": {
        "GLEAN_INSTANCE": "<glean instance name>",
        "GLEAN_API_TOKEN": "<glean api token>"
      }
    }
  }
}

Replace the environment variable values with your actual Glean credentials.

Debugging

Since MCP servers communicate over stdio, debugging can be challenging. We recommend using the MCP Inspector, which is available as a package script:

npm run inspector

The Inspector will provide a URL to access debugging tools in your browser.

Contributing

Please see CONTRIBUTING.md for development setup and guidelines.

License

MIT License - see the LICENSE file for details

Support

Readme

Keywords

Package Sidebar

Install

npm i @gleanwork/local-mcp-server

Weekly Downloads

314

Version

0.7.16

License

MIT

Unpacked Size

80.2 kB

Total Files

35

Last publish

Collaborators

  • tonygentilcore
  • vardhman-singh
  • taozhou-glean
  • steve-calvert-glean
  • rwjblue-glean
  • david-hamilton-glean