Cover image
Try Now
2025-04-15

用于收集API集成的MCP服务器

3 years

Works with Finder

4

Github Watches

3

Github Forks

18

Github Stars

@gleanwork/mcp-server

MCP Server CI Build npm version License

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.

Features

  • Search Integration: Access Glean's powerful content search capabilities
  • Chat Interface: Interact with Glean's AI assistant
  • MCP Compliant: Implements the Model Context Protocol specification

Tools

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

    For complete parameter details, see Search API Documentation

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

    For complete parameter details, see Chat API Documentation

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.

Configure Environment Variables

  1. Set up your Glean API credentials:

    export GLEAN_SUBDOMAIN=your_subdomain
    export GLEAN_API_TOKEN=your_api_token
    
  2. (Optional) For global tokens that support impersonation:

    export GLEAN_ACT_AS=user@example.com
    

Client Configuration

You can use the built-in configuration tool to automatically set up Glean for your MCP client:

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

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

# Configure for Windsurf
npx @gleanwork/mcp-server configure --client windsurf --token your_api_token --domain your_subdomain

Alternatively, you can use an environment file:

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

The environment file should contain:

GLEAN_SUBDOMAIN=your_subdomain
GLEAN_API_TOKEN=your_api_token

After configuration:

  • For Cursor: Restart Cursor and the agent will have access to Glean tools
  • For Claude Desktop: Restart Claude and use the hammer icon to access Glean tools
  • For Windsurf: Open Settings > Advanced Settings, scroll to Cascade section, and press refresh

MCP Client Configuration

To configure this MCP server in your 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/mcp-server"],
      "env": {
        "GLEAN_SUBDOMAIN": "<glean instance subdomain>",
        "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

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Bora Yalcin
  • Evaluator for marketplace product descriptions, checks for relevancy and keyword stuffing.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Khalid kalib
  • Write professional emails

  • Beniyam Berhanu
  • Therapist adept at identifying core issues and offering practical advice with images.

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • OffchainLabs
  • 进行以太坊的实施

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

    Reviews

    3 (1)
    Avatar
    user_UACdoggf
    2025-04-15

    I'm thrilled with the Spring Boot MCP Server by ansis-m! It's incredibly efficient and streamlines my development process. The intuitive design and robust functionality make it a top choice for any developer. I highly recommend it to anyone looking for a reliable MCP solution. Check it out here: https://mcp.so/server/MCP-server-for-Claude/ansis-m