Connect your AI Agents to n8n in minutes

Merge lets you securely connect your agents to n8n and thousands of tools instantly

Available tools

generate_audit

Generate a security audit report for the n8n instance. Categories: credentials, database, nodes, filesystem, instance.

get_credential_schema

Get the schema for a credential type to understand required fields. Use before creating credentials.

create_credential

Create a new n8n credential. Use get_credential_schema first to understand required fields.

delete_credential

Delete an n8n credential by ID. Only credential owner can delete.

transfer_credential

Transfer an n8n credential to another project. Use list_projects to find valid project IDs.

list_executions

List n8n workflow executions with optional filters for status, workflow, and project. Use includeData=true for full execution data.

get_execution

Get a specific n8n execution by ID. Use includeData=true to include full execution data.

delete_execution

Delete an n8n execution by ID. Returns success status.

retry_execution

Retry a failed n8n execution. Use loadWorkflow=true to use latest workflow version instead of original.

list_projects

List n8n projects. Returns paginated results.

create_project

Create a new n8n project for organizing workflows and credentials.

update_project

Update an n8n project name.

delete_project

Delete an n8n project by ID.

list_tags

List all n8n tags. Returns paginated results for organizing workflows.

get_tag

Get a specific n8n tag by ID.

create_tag

Create a new n8n tag for organizing workflows.

update_tag

Update an existing n8n tag name.

delete_tag

Delete an n8n tag by ID. Returns success status.

list_users

List n8n users. Only available to instance owner. Returns paginated results.

get_user

Get an n8n user by ID or email. Only available to instance owner.

create_user

Create a new n8n user. Only available to instance owner.

delete_user

Delete an n8n user by ID. Only available to instance owner.

change_user_role

Change an n8n user's global role. Only available to instance owner.

validate_credential

Validate n8n credentials. Verifies credentials during setup.

list_variables

List n8n environment variables. Requires Pro or Enterprise plan. Returns paginated results.

create_variable

Create a new n8n environment variable. Requires Pro or Enterprise plan. Use list_variables to get the created variable's ID.

update_variable

Update an n8n environment variable. Requires Pro or Enterprise plan.

delete_variable

Delete an n8n environment variable by ID. Requires Pro or Enterprise plan.

list_workflows

List n8n workflows with optional filters for active status, tags, name, and project. Returns paginated results with cursor for next page.

get_workflow

Get a specific n8n workflow by ID. Returns full workflow definition including nodes, connections, and settings.

create_workflow

Create a new n8n workflow with nodes and connections. Returns the created workflow with assigned ID.

update_workflow

Update an existing n8n workflow. Fetches current workflow and merges changes. Returns updated workflow.

delete_workflow

Delete an n8n workflow by ID. Returns success status.

activate_workflow

Activate an n8n workflow to enable trigger-based execution. Returns updated workflow.

deactivate_workflow

Deactivate an n8n workflow to stop trigger-based execution. Returns updated workflow.

View all tools by creating a free accountSee more tools

How to set up Merge Agent Handler

In an mcp.json file, add the configuration below, and restart Cursor.

Learn more in the official documentation ↗

1{
2  "mcpServers": {
3    "agent-handler": {
4      "url": "https://ah-api-develop.merge.dev/api/v1/tool-packs/{TOOL_PACK_ID}/registered-users/{REGISTERED_USER_ID}/mcp",
5      "headers": {
6        "Authorization": "Bearer yMt*****"
7      }
8    }
9  }
10}
11
Copy Code

Open your Claude Desktop configuration file and add the server configuration below. You'll also need to restart the application for the changes to take effect.

Make sure Claude is using the Node v20+.

Learn more in the official documentation ↗

1{
2  "mcpServers": {
3    "agent-handler": {
4      "command": "npx",
5      "args": [
6        "-y",
7        "mcp-remote@latest",
8        "https://ah-api-develop.merge.dev/api/v1/tool-packs/{TOOL_PACK_ID}/registered-users/{REGISTERED_USER_ID}/mcp",
9        "--header",
10        "Authorization: Bearer ${AUTH_TOKEN}"
11      ],
12      "env": {
13        "AUTH_TOKEN": "yMt*****"
14      }
15    }
16  }
17}
Copy Code
Copied!

Open your Windsurf MCP configuration file and add the server configuration below.
Click on the refresh button in the top right of the Manage MCP server page or in the top right of the chat box in the box icon.

Learn more in the official documentation ↗

1{
2    "mcpServers": {
3      "agent-handler": {
4        "command": "npx",
5        "args": [
6          "-y",
7          "mcp-remote@latest",
8          "https://ah-api.merge.dev/api/v1/tool-packs/<tool-pack-id>/registered-users/<registered-user-id>/mcp",
9          "--header",
10          "Authorization: Bearer ${AUTH_TOKEN}"
11        ],
12        "env": {
13          "AUTH_TOKEN": "<ah-production-access-key>"
14        }
15      }
16    }
17  }
Copy Code

In Command Palette (Cmd+Shift+P on macOS, Ctrl+Shift+P on Windows), run "MCP: Open User Configuration".

You can then add the configuration below and press "start" right under servers. Enter the auth token when prompted.

Learn more in the official documentation ↗

1{
2  "inputs": [
3    {
4      "type": "promptString",
5      "id": "agent-handler-auth",
6      "description": "Agent Handler AUTH_TOKEN", // "yMt*****" when prompt
7      "password": true
8    }
9  ],
10  "servers": {
11    "agent-handler": {
12      "type": "stdio",
13      "command": "npx",
14      "args": [
15        "-y",
16        "mcp-remote@latest",
17        "https://ah-api-develop.merge.dev/api/v1/tool-packs/{TOOL_PACK_ID}/registered-users/{REGISTERED_USER_ID}/mcp",
18        "--header",
19        "Authorization: Bearer ${input:agent-handler-auth}"
20      ]
21    }
22  }
23}
Copy Code

FAQs on using Merge's n8n  MCP server

FAQs on using Merge's n8n  MCP server

What is an n8n MCP?

It's an MCP server that connects your agents to n8n via tools. Your agents can invoke these tools to activate and deactivate workflows, monitor execution history, provision new workflows, and manage credentials, and more.

n8n offers an official MCP server, but you can also use one from a third-party platform, like Merge Agent Handler.

How can I use the n8n MCP server?

The use cases naturally depend on the agent you've built, but here are a few common ones:

  • Conditional workflow activation: When a new customer account is created in your CRM, an agent calls <code class="blog_inline-code">activate_workflow</code> to turn on the corresponding onboarding automation in n8n, scoped to that customer's environment
  • Failed execution response: An agent polls <code class="blog_inline-code">list_executions</code> for error states, calls <code class="blog_inline-code">get_execution</code> to retrieve the failure details, posts a structured alert to Slack, and calls <code class="blog_inline-code">retry_execution</code> if the error is transient
  • Workflow provisioning for new tenants: When a new team is onboarded, an agent calls <code class="blog_inline-code">create_workflow</code> to provision a standard set of automations in their n8n instance, pulling from a template library rather than requiring manual setup each time
  • Execution audit for compliance: An agent calls <code class="blog_inline-code">list_executions</code> filtered by workflow and date range, compiles a structured report of what ran, when, and with what outcome, and delivers it to a finance or compliance stakeholder on a scheduled cadence

What are popular tools for n8n's MCP server?

Here are some of the most commonly used tools:

  • <code class="blog_inline-code">list_workflows</code> returns all workflows in an n8n instance along with their active status. Good for agents that need to audit what automations exist before making changes or generating a summary
  • <code class="blog_inline-code">activate_workflow</code> turns on a specific workflow so it begins responding to its trigger. Use this when an agent needs to enable an automation in response to an external event, like a new customer signup or a project kickoff
  • <code class="blog_inline-code">deactivate_workflow</code> stops a workflow from executing without deleting it. Helpful when an agent needs to pause an automation during maintenance, a freeze period, or after detecting unexpected behavior
  • <code class="blog_inline-code">list_executions</code> retrieves the execution history for workflows, filterable by status and time range. Call this when an agent needs to check whether automations are running successfully or surface failures for review
  • <code class="blog_inline-code">get_execution</code> fetches the full details of a single workflow execution, including input, output, and error data. Useful for agents diagnosing why a specific run failed before deciding whether to retry or escalate
  • <code class="blog_inline-code">create_workflow</code> adds a new workflow to an n8n instance from a provided definition. Use this when an agent is provisioning automations programmatically, such as during customer onboarding or environment setup

What makes Merge Agent Handler's n8n MCP server better than alternative n8n MCP servers?

Several things distinguish Merge Agent Handler's n8n MCP server:

  • Enterprise-grade security and DLP: Merge Agent Handler includes built-in data loss prevention controls that let you block or redact sensitive fields before they reach an agent. For n8n, this means you can prevent workflow credentials, API keys embedded in configurations, and execution payloads containing PII from being exposed even when the agent has broad read access
  • Managed authentication and credentials: Merge stores and refreshes n8n credentials on your behalf. You never hand raw API tokens to an agent or rewire authentication when n8n credentials rotate
  • Real-time observability and audit trail: Every tool call made against n8n is logged with timestamp, tool name, input parameters, and response metadata. You can audit exactly which workflows an agent activated, modified, or queried without adding any instrumentation yourself
  • Tool Packs and controlled access: Tool Packs let you bundle specific n8n tools with tools from other connectors into a single MCP endpoint, scoped to a specific use case. An agent gets exactly the tools it needs, nothing more

How can I start using Merge Agent Handler's n8n MCP server?

You can take the following steps:

1. Create or log into your Merge Agent Handler account and navigate to Tool Packs (collections of connector tools scoped to a specific use case).

2. Create a new Tool Pack, then find and enable the n8n connector. Choose which tools to include; enable read tools like <code class="blog_inline-code">list_workflows</code> and <code class="blog_inline-code">list_executions</code> for monitoring use cases, or add write tools like <code class="blog_inline-code">activate_workflow</code> and <code class="blog_inline-code">create_workflow</code> if your agent needs to control or provision automations.

3. Add a Registered User inside the Tool Pack. This is the identity context under which your agent operates. Merge generates a unique MCP URL scoped to this user once it's created.

4. From the Registered User detail page, authenticate n8n by completing the credential flow. Merge stores and manages the credentials going forward.

5. Copy the MCP URL from the Tool Pack detail page and generate an API key from Settings. You'll need both to connect your agent.

6. Add the MCP server to your agent or IDE using the MCP URL and API key. Your n8n tools are now accessible through that endpoint.

Explore other MCP servers built and managed by Merge

zohocrm
Zoho CRM
zohodesk
Zoho Desk
zoom
Zoom
zoominfo
ZoomInfo

Ready to try it out?

Whether you're an engineer experimenting with agents or a product manager looking to add tools, you can get started for free now