eGain MCP Server
OfficialClick on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@eGain MCP Serversearch knowledge base for password reset"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
eGain MCP Server
Model Context Protocol (MCP) server for the eGain Knowledge platform — local stdio transport only.
Overview
This server exposes eGain Knowledge APIs — Portal Manager, Search, Retrieve, and Answers — as a single local MCP endpoint for AI clients. It runs as a child process via stdio, so no server infrastructure is needed.
It enables tools like Claude Desktop, Cursor, and VS Code to:
Browse and discover knowledge portals
Search and retrieve articles
Generate AI-powered answers from your knowledge base
Submit content suggestions
This MCP server targets eGain v4 APIs. Platform version 21.22 or newer is required. See the eGain developer portal for API details.
Related MCP server: Corebee MCP Server
Prerequisites
Node.js 20+
eGain platform version 21.22 or newer with AI Services enabled
A knowledge portal with published content
A client application in your eGain tenant with delegated permissions:
knowledge.portalmgr.manageknowledge.portalmgr.readcore.aiservices.read
New in 1.1.2: optional Content Manager authoring tools, off by default. To turn them on, see the Authoring Guide. It needs two more permissions:
knowledge.contentmgr.readandknowledge.contentmgr.manage.
Installation
Quick start with npx (no install needed)
{
"mcpServers": {
"eGainMCP": {
"command": "npx",
"args": [
"@egain/egain-mcp-server",
"start",
"--api-domain", "your-tenant.egain.cloud",
"--access-token", "YOUR_ACCESS_TOKEN"
]
}
}
}Install globally
npm install -g @egain/egain-mcp-serverThen configure your MCP client:
{
"mcpServers": {
"eGainMCP": {
"command": "mcp",
"args": [
"start",
"--api-domain", "your-tenant.egain.cloud",
"--access-token", "YOUR_ACCESS_TOKEN"
]
}
}
}Configuration
Flag | Description | Default |
| Your eGain tenant domain (e.g. | — |
| Bearer token for API authentication | — |
| Predefined server alias ( |
|
| Override the full server URL | — |
| Mount specific tools only (repeatable) | all tools |
| Filter tools by annotation ( | — |
| Expose | — |
|
|
|
Available tools
Tool | Description |
| List portals accessible to the authenticated user |
| List all portals in the partition/department |
| Hybrid semantic + keyword search across the knowledge base |
| Generate an AI-powered answer for a query |
| Retrieve ranked content chunks for RAG pipelines |
| Fetch a full article by its ID |
| Fetch announcement articles for a portal |
| Fetch the most-viewed articles for a portal |
| Submit a content suggestion to a portal |
Getting an access token
npx @egain/egain-mcp-server loginThis opens a browser-based OAuth flow and writes a token to .bearer_token in the current directory.
Building from source
git clone https://github.com/eGain/egain-mcp-public
cd egain-mcp-public
npm install
npm run buildLicense
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Make your knowledge agent-ready. One MCP endpoint, 5 connectors, 3 search modes.
Knowledge base MCP for AI agents on iknow.dev. Search, read, and maintain via OAuth.
Authenticated MCP access to the AIKI open knowledge commons.
Let AI agents query data and act across all your business apps via MCP.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceEnables querying company knowledge base using RAG, providing accurate answers from internal documents via MCP.-
- AlicenseNot gradedqualityDmaintenanceEnables AI-driven customer support operations including conversation management, knowledge base, contacts, metrics, and settings via MCP.MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to connect to hosted Knowz vaults via MCP for knowledge management, supporting operations like search, save, browse, and amend.MIT
- AlicenseNot gradedqualityCmaintenanceProvides enterprise knowledge management capabilities via MCP, enabling semantic search across the knowledge base, retrieval of full documents by ID, and search over enterprise project cases.MIT