Key Benefits
- Tool Access through MCP. Tools configured under an AI Agent or LLM Prompt Node are available to MCP-compatible clients.
- Direct Flow Execution. When a tool is called, Cognigy.AI executes the related Flow and returns the result through MCP.
- Standard Integration. MCP provides a consistent interface for connecting external applications without custom APIs.
Restrictions
- The following tools are available via MCP:
- Regular Tool
- Knowledge Search
- Send Email
- Execute Workflow
- Handover to AI Agent
- Tool calls must finish within the configured timeout. The default timeout is 30 seconds. If you have an on-premises installation, you can change the default value via the
MCP_SERVER_TOOL_CALL_TIMEOUTvariable. - This Endpoint doesn’t support OAuth or user-level authentication.
Prerequisites
- A Flow that contains either an AI Agent or LLM Prompt Node.
- The AI Agent Node or LLM Prompt Node in the Flow must include at least one Tool Node.
- Each Tool Node has a tool ID and a description.
Generic Endpoint Settings
Specific Endpoint Settings
MCP Explorer
MCP Explorer
| Parameter | Description |
|---|---|
| MCP Explorer | A link to test your tools and view connection details. It displays all exposed tools, including their names, descriptions, and parameters, and allows validation and testing of the configuration. |
AI Agent Selection
AI Agent Selection
This section allows you to select the Flow and AI Agent Node that will expose its tools via the Model Context Protocol (MCP). External AI clients can discover and call these tools through this endpoint. |
| Parameter | Description |
|---|---|
| Flow | The Flow that contains the selected AI Agent Node. |
| Node | The AI Agent or LLM Prompt Node whose child Tool Nodes are exposed via MCP. Only tools defined as children of the selected Node are exposed to MCP clients. |
| Exposed Tools | Displays all exposed tools. |
Configuration Information
Configuration Information
This section provides the MCP Server URL and a list of all exposed tools, including their names, descriptions, and parameters. This information is required to configure MCP clients. |
| Parameter | Description |
|---|---|
| MCP Server URL | The dedicated MCP URL in the format https://endpoint.cognigy.ai/mcp/v1/{token}/mcp. This is the single entry point for all MCP traffic and must be kept confidential. |
| Enable MCP Server | Activates the MCP Server functionality for the Endpoint. |
How to Set Up
The diagram shows the complete MCP workflow. First, make sure your Flow is set up correctly with an AI Agent Node and a Tool Node, according to the prerequisites. Then, the MCP client connects to the MCP Server Endpoint and calls a tool. This triggers the Flow execution. The result is returned through a session-based connection.Setup on the Cognigy.AI Side
Configure an MCP Server Endpoint
Configure an MCP Server Endpoint
- In the left-side menu of your Project, click Deploy > Endpoints.
- On the Endpoints page, click + New Endpoint.
- In the New Endpoint section, do the following:
- Select the MCP Server Endpoint type.
- Specify a unique name.
- Save changes.
- In AI Agent Selection, select the Flow and the AI Agent Node or LLM Prompt whose tools you want to expose via MCP. Save changes.
- In the Configuration Information section, copy the URL in the MCP Server URL field.
Setup on the Third-Party Provider Side
Configure an MCP Client
Configure an MCP Client
The configuration depends on the MCP client you use.
- Direct HTTP Integration
- Claude Desktop
- Cursor
The MCP Server Endpoint supports the MCP Streamable HTTP transport. To integrate directly with the Endpoint, follow these steps:
-
Send an
initializerequest.Replace{token}with the token from the MCP Server URL. -
The response will include
mcp-session-id: <session-id>. Store the session ID for use in subsequent requests. -
Request a list of available tools via
tools/list:The request returns the list of available tools with their parameters and descriptions. This allows the client to understand how to call each tool correctly. For example, the response may include tools like this: -
Call tools using the
tools/callmethod, providing the tool name and required arguments. For example, to call theunlock_accounttool with the requiredemailargument, send the following request:After a successful tool call, the MCP server returns the result in a structured MCP response. The response contains the output of the executed tool inside the result field. For example, if the tool completes successfully, it may return a text message such asResolvedin the content array.
Use Cases
Access Knowledge Bases
Access Knowledge Bases
External AI clients can use MCP to query Cognigy knowledge bases through the Knowledge Search Tool.
This approach enables real-time retrieval of relevant content, such as product information, policies, or support articles,
directly from connected applications.
Automate Business Tasks
Automate Business Tasks
MCP clients can trigger operational workflows, such as CRM lookups, ticket creation, or email notifications.
When a tool is called, the corresponding Flow is executed, allowing existing business logic to run
without modification.
Expose Internal Logic
Expose Internal Logic
Existing Flows can be published as callable tools. This approach allows organizations to reuse and expose
internal automation, decision logic, and AI Agent configurations as standardized tools
available to external systems.
Connect Custom Applications
Connect Custom Applications
Custom AI applications, development environments, or third-party systems can integrate with Cognigy.AI
through the MCP protocol. This approach enables structured tool calls and consistent result handling
without building and maintaining custom APIs.
Troubleshooting
| Issue | Cause | Solution |
|---|---|---|
| Tools Not Visible | The AI Agent Node doesn’t contain tool Nodes, or tools are missing a tool ID or description. The wrong Flow or Node may be selected. | Ensure the AI Agent Node includes Tool Nodes. Verify that each tool has a tool ID and description. Confirm the correct Flow and Node are selected in the Endpoint settings. |
| Tool Call Times Out | The tool execution exceeds the default 30-second timeout. | If you have an on-premises installation, adjust the MCP_SERVER_TOOL_CALL_TIMEOUT configuration if a longer execution time is required. |
| Connection Fails | The full MCP URL isn’t specified, or an incorrect path is configured. | Ensure you are using the complete URL in the format /mcp/v1/{token}/mcp. The Endpoint doesn’t respond on other paths. |
| Session Expired | The MCP session has timed out due to inactivity. | Reinitialize the session by sending a new initialize request without a session ID. |
| The Run Test Button in the MCP Explorer isn’t Active | Strict CSP headers block required page scripts on the MCP Explorer page. | Content Security Policy is managed at the platform or deployment level and can’t be configured at the Endpoint level. Contact your platform administrator or support team to allow the required scripts for the MCP Server Endpoint route. |