Back to Home
gleanwork icon

mcp-server

Verified Safe

by gleanwork

Overview

This server acts as a local backend for Model Context Protocol (MCP) clients, enabling AI assistants and other tools to interact with Glean's enterprise search, chat, and document retrieval capabilities.

Installation

Run Command
npx @gleanwork/local-mcp-server

Environment Variables

  • GLEAN_INSTANCE
  • GLEAN_API_TOKEN
  • GLEAN_URL
  • GLEAN_SUBDOMAIN
  • GLEAN_ACT_AS
  • XDG_STATE_HOME
  • LOCALAPPDATA

Security Notes

The server uses `stdio` for communication, limiting direct network exposure for the server itself. However, it makes outbound network requests to the Glean API using credentials (GLEAN_API_TOKEN) sourced from environment variables or CLI arguments, which is good practice. A potential, though mitigated, risk exists in the `instance` parameter used to construct API URLs: if a malicious `instance` value (e.g., containing special characters or other domains) were provided by a compromised local AI client, it could potentially lead to Server-Side Request Forgery (SSRF) against internal network resources. Currently, the server primarily runs locally and expects a simple string for the instance name. The project uses pnpm-lock.yaml for dependency integrity and sets limited permissions for log files (0o600).

Similar Servers

Stats

Interest Score45
Security Score7
Cost ClassMedium
Avg Tokens2000
Stars50
Forks20
Last Update2025-12-01

Tags

MCP ServerGlean APIAI IntegrationEnterprise SearchTypeScript