cognigy-ai-mcp-management-server

cognigy-ai-mcp-management-server

MCP server for Cognigy.AI - 132 tools that let Claude, Cursor & other AI assistants build, configure, test & operate conversational AI agents via the Model Context Protocol.

Category
访问服务器

README

Cognigy.AI Management MCP Server

CI npm version npm downloads node License: MIT

cognigy-ai-mcp-management-server

Model Context Protocol server for managing Cognigy.AI virtual agents through the Management API

This is an independent, open-source MCP server and is not affiliated with, endorsed by, or sponsored by Cognigy or NiCE. It requires your own valid Cognigy.AI account and API key, used in accordance with Cognigy's commercial license terms. "Cognigy" and "Cognigy.AI" are trademarks of their respective owners.

What is this?

cognigy-ai-mcp-management-server is a local MCP server that enables AI coding assistants (Claude, Cursor, etc.) to build, configure, test, and operate Cognigy.AI conversational AI agents programmatically.

Instead of clicking through the Cognigy UI, you can now:

  • Create and manage flows, nodes, and intents via natural language
  • Run NLU training and regression tests automatically
  • Deploy snapshots and packages across environments
  • Configure LLMs, Knowledge AI, and integrations

Built for: Developers, solution architects, and SI partners who build on Cognigy.AI.

Requirements

  • Node.js 20.0.0 or higher
  • Cognigy.AI account with API access (Trial, SaaS, or on-premises)
  • API Key generated from Cognigy UI (My Profile → API Keys)

Installation

# 1. Install the Cognigy REST API client (required peer dependency)
npm install @cognigy/rest-api-client

# 2. Install this MCP server
npm install -g cognigy-ai-mcp-management-server

Important: The @cognigy/rest-api-client package is licensed under "Cognigy Proprietary License". By installing it, you agree to Cognigy's license terms.

Configuration

Set environment variables before running:

# Required: Your Cognigy API endpoint
export COGNIGY_BASE_URL=https://api-trial.cognigy.ai

# Required: Your API key (never commit this!)
export COGNIGY_API_KEY=your-api-key-here

# Optional: Default project for operations
export COGNIGY_DEFAULT_PROJECT_ID=your-project-id

Common Base URLs:

Environment Base URL
Trial https://api-trial.cognigy.ai
SaaS EU https://api-app.cognigy.ai
SaaS US https://api-app-us.cognigy.ai
Dedicated https://api-<company>.cognigy.cloud

MCP Client Configuration

Claude Desktop

Add to ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows):

{
  "mcpServers": {
    "cognigy": {
      "command": "npx",
      "args": ["cognigy-ai-mcp-management-server"],
      "env": {
        "COGNIGY_BASE_URL": "https://api-trial.cognigy.ai",
        "COGNIGY_API_KEY": "your-api-key-here"
      }
    }
  }
}

Claude Code

Add to .mcp.json in your project root:

{
  "mcpServers": {
    "cognigy": {
      "command": "npx",
      "args": ["cognigy-ai-mcp-management-server"],
      "env": {
        "COGNIGY_BASE_URL": "https://api-trial.cognigy.ai",
        "COGNIGY_API_KEY": "your-api-key-here"
      }
    }
  }
}

Cursor

Add to .cursor/mcp.json:

{
  "mcpServers": {
    "cognigy": {
      "command": "npx",
      "args": ["cognigy-ai-mcp-management-server"],
      "env": {
        "COGNIGY_BASE_URL": "https://api-trial.cognigy.ai",
        "COGNIGY_API_KEY": "your-api-key-here"
      }
    }
  }
}

Available Tools

All Tools

This server provides 132 MCP tools organized by domain:

Category Tools Description
Projects & Flows 5 List projects, flows, flow settings, logs
Nodes 9 CRUD operations, search, move, AI output generation
Intents & NLU 10 Intent management, training, scoring, audit
Endpoints 2 List and inspect endpoint configurations
Sessions 2 Inject/reset conversation context
Conversations 3 Fetch conversations, transcripts
Playbooks & Testing 6 Run playbooks, regression tests
Snapshots 9 Create, restore, package, diff, promote
Packages 7 Create, merge, upload, download
Connections 5 Manage API connections (secrets redacted)
LLMs 7 Configure generative AI providers
NLU Connectors 5 External NLU (Dialogflow, LUIS, etc.)
Knowledge AI 21 Stores, sources, chunks, connectors (RAG)
Functions 9 Custom code functions, instances
Extensions 6 Upload, configure, manage extensions
Contact Profiles 11 Profile CRUD, merge, export (GDPR)
Analytics 4 Conversation, call, knowledge metrics
Audit 2 Audit event logs
Handover 7 Live agent providers and services
Search 1 Organization-wide resource search
Tasks 2 Async task status tracking

Key Features

  • Safe by default: All mutating tools use dryRun: true by default
  • Async-aware: Long-running operations poll until completion
  • Security: API keys only in memory, secrets automatically redacted
  • Pagination: All list operations support limit and skip

Development & Testing

Mock-first Development

Run against Prism mock server (no Cognigy account needed):

# Terminal 1: Start mock server
npm run mock

# Terminal 2: Run tests
npm test

Live API Testing

# Create .env from template
cp .env.example .env
# Edit .env with your credentials

# Run development server
npm run dev

Build

npm run build    # Compile TypeScript
npm test         # Run test suite (49 tests)
npm run lint     # Check code style

Regenerate Types (optional)

If you need to update the generated types from a newer Cognigy API:

npm run update:spec   # Download latest OpenAPI spec
npm run gen:types     # Regenerate TypeScript types

Important: Dependencies

This package requires @cognigy/rest-api-client as a peer dependency. This means:

  1. You must install it separately (see Installation above)
  2. You accept Cognigy's license terms by installing their package
  3. We do not bundle or redistribute any Cognigy code

You are responsible for:

  • Reviewing and accepting Cognigy's proprietary license terms
  • Having appropriate rights to use the Cognigy API
  • Keeping your API credentials secure

The Cognigy REST API client is the official SDK maintained by Cognigy GmbH and is published on npm under "Cognigy Proprietary License".

License

This MCP server is released under the MIT License. See LICENSE for details.

Note: The MIT license applies only to this MCP server code. Dependencies (particularly @cognigy/rest-api-client) are subject to their own licenses.

Contributing

Contributions are welcome! Please:

  1. Fork the repository
  2. Create a feature branch (git checkout -b feature/amazing-feature)
  3. Follow existing code patterns (Zod schemas, dryRun flags, etc.)
  4. Add tests for new tools
  5. Run npm test && npm run build before committing
  6. Submit a Pull Request

Development Guidelines

  • All tools must have Zod input validation
  • Mutating tools must support dryRun flag (default: true)
  • Tool descriptions should be LLM-friendly (1-2 sentences)
  • Never log or expose API keys/secrets
  • Test against mock server before live API

Support


Built with Model Context Protocol SDK

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选