Skip to main content

Setup

Install the MCP Client Node

First, install the MCP community node:
  1. Go to Settings in your n8n instance
  2. Navigate to Community Nodes
  3. Install n8n-nodes-mcp
To use MCP nodes as tools in AI Agents, set the environment variable:
N8N_COMMUNITY_PACKAGES_ALLOW_TOOL_USAGE=true

Create an MCP Server Trigger

  1. Create a new workflow
  2. Add an “MCP Server Trigger” node
  3. n8n will give you a unique path (like /mcp/abc123)

Configure Operator

Add the Operator MCP server to your workflow:
{
  "mcpServers": {
    "operator": {
      "url": "https://mcp.operator.io/mcp?apiKey=YOUR_API_KEY"
    }
  }
}
Get your API key from app.operator.io.

Using with AI Agents

  1. Add an AI Agent node to your workflow
  2. In the Tools section, add the MCP Client node
  3. Configure the MCP Client to connect to Operator
  4. Add a system prompt instructing the agent to use tools for search
Example system prompt:
You are a helpful assistant. When you need to find documentation,
debug errors, or search for implementation examples, use the
Operator search tool.

Usage

Once configured, your n8n AI agents can call Operator to search for documentation, find solutions to errors, and get up-to-date information about APIs and libraries.