Skip to main content
Glama

Glean MCP Server

by gleanwork

@gleanwork/mcp 服务器

MCP ServerCI 构建

Glean MCP 服务器是一个模型上下文协议 (MCP)服务器,可与 Glean 的企业知识无缝集成。

特征

  • 公司搜索:访问 Glean 强大的内容搜索功能
  • 人物资料搜索:访问 Glean 的人物目录
  • 聊天:与 Glean 的 AI 助手互动
  • 符合 MCP 规范:实现模型上下文协议规范

工具

  • 公司搜索

    使用 Glean Search API 搜索 Glean 的内容索引。此工具允许您使用各种过滤和配置选项查询 Glean 的内容索引。
  • 聊天

    使用 Glean Chat API 与 Glean 的 AI 助手互动。此工具允许您与 Glean 的 AI 进行对话式互动,包括支持消息历史记录、引用和各种配置选项。
  • 搜索 Glean 的人员目录来查找员工信息。

配置

API 令牌

您需要 Glean API 凭证,特别是用户范围的 API 令牌。API 令牌需要以下范围: chatsearch 。您应该联系您的 Glean 管理员来配置这些令牌。

配置环境变量

  1. 设置您的 Glean API 凭证:
    export GLEAN_INSTANCE=instance_name export GLEAN_API_TOKEN=your_api_token
    注意:为了向后兼容,仍然支持GLEAN_SUBDOMAIN ,但首选GLEAN_INSTANCE
  2. (可选)对于支持模拟的全局令牌
    export GLEAN_ACT_AS=user@example.com

客户端配置

您可以使用内置配置工具为您的 MCP 客户端自动设置 Glean:

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

或者,您可以使用环境文件:

npx @gleanwork/mcp-server configure --client cursor --env path/to/.env.glean

环境文件应包含:

GLEAN_INSTANCE=instance_name GLEAN_API_TOKEN=your_api_token

配置后:

  • 对于 Cursor:重新启动 Cursor,代理将可以访问 Glean 工具
  • 对于 Claude Desktop:重新启动 Claude 并使用锤子图标访问 Glean 工具
  • 对于 Windsurf:打开“设置”>“高级设置”,滚动到“Cascade”部分,然后按“刷新”

MCP 客户端配置

要在您的 MCP 客户端(例如 Claude Desktop、Windsurf、Cursor 等)中配置此 MCP 服务器,请将以下配置添加到您的 MCP 客户端设置中:

{ "mcpServers": { "glean": { "command": "npx", "args": ["-y", "@gleanwork/mcp-server"], "env": { "GLEAN_INSTANCE": "<glean instance name>", "GLEAN_API_TOKEN": "<glean api token>" } } } }

用您的实际 Glean 凭证替换环境变量值。

调试

由于 MCP 服务器通过 stdio 进行通信,调试起来可能比较困难。我们推荐使用MCP Inspector ,它以包脚本的形式提供:

npm run inspector

检查器将提供一个 URL 来访问浏览器中的调试工具。

贡献

请参阅CONTRIBUTING.md了解开发设置和指南。

执照

MIT 许可证 - 详情请参阅许可证文件

支持

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

模型上下文协议服务器为 AI 助手提供对 Glean 企业知识功能的访问,包括内容搜索、人员目录和 AI 聊天功能。

  1. 特征
    1. 工具
      1. 配置
        1. API 令牌
        2. 配置环境变量
      2. 客户端配置
        1. MCP 客户端配置
          1. 调试
        2. 贡献
          1. 执照
            1. 支持

              Related MCP Servers

              • -
                security
                A
                license
                -
                quality
                A Model Context Protocol server enabling AI agents to access and manipulate ServiceNow data through natural language interactions, allowing users to search for records, update them, and manage scripts.
                Last updated -
                9
                Python
                MIT License
              • A
                security
                F
                license
                A
                quality
                A Model Context Protocol server that connects Claude and other AI assistants to your Notion workspace, allowing AIs to interact with databases, pages, and blocks.
                Last updated -
                12
                64
                10
                JavaScript
                • Apple
              • -
                security
                F
                license
                -
                quality
                A Model Context Protocol server that provides AI assistants with structured access to your Logseq knowledge graph, enabling retrieval, searching, analysis, and creation of content within your personal knowledge base.
                Last updated -
                19
                TypeScript
                • Apple
              • -
                security
                F
                license
                -
                quality
                A Model Context Protocol server that connects AI assistants like Claude to Notion workspaces, enabling them to view, search, create, and update Notion databases, pages, and content blocks.
                Last updated -
                275
                JavaScript
                • Apple

              View all related MCP servers

              MCP directory API

              We provide all the information about MCP servers via our MCP API.

              curl -X GET 'https://glama.ai/api/mcp/v1/servers/gleanwork/mcp-server'

              If you have feedback or need assistance with the MCP directory API, please join our Discord server