Back to Home
eGain icon

egain-mcp-server

by eGain

Overview

Implements the Model Context Protocol (MCP) for eGain Knowledge, exposing Portal Manager, Search, Retrieve, and Answers as a single MCP endpoint for AI clients.

Installation

Run Command
npx @egain/egain-mcp-server start --api-domain "..."

Environment Variables

  • EGAIN_URL
  • CLIENT_ID
  • REDIRECT_URL
  • AUTH_URL
  • ACCESS_TOKEN_URL
  • SCOPE_PREFIX
  • FORCE_BROWSER

Security Notes

The AuthenticationHook temporarily disables SSL certificate validation by setting 'NODE_TLS_REJECT_UNAUTHORIZED = '0'' during OAuth token exchange and portal fetching. This makes sensitive network requests vulnerable to Man-in-the-Middle (MITM) attacks. While sensitive configuration and token files are stored in the user's home directory with restrictive permissions (0o600), this critical TLS vulnerability significantly lowers the overall security rating. The use of 'child_process.exec' for browser interaction appears to be well-contained.

Similar Servers

Stats

Interest Score0
Security Score3
Cost ClassMedium
Stars0
Forks1
Last Update2026-01-15

Tags

eGainKnowledge BaseAI IntegrationAPI ProxyDeveloper Tools