C
Cody
MCP Integrations

n8n MCP: Connect n8n to AI via Model Context Protocol

·5 min read

If you're searching for "n8n MCP", you're asking one of two things: does n8n have an MCP server? or how do I connect n8n to an AI assistant via the Model Context Protocol?

n8n has an official MCP server. Details in the setup section below.

What Is MCP?

Model Context Protocol (MCP) is an open standard developed by Anthropic that lets AI assistants — like Claude — connect to external tools, APIs, and data sources in a standardised way.

Before MCP, every AI integration required bespoke tooling: custom prompts, custom API wrappers, and custom glue code to pass context back and forth. MCP replaces that with a common interface: the AI asks the MCP server for data or actions, the server returns structured results, and the AI uses them to answer your question or complete a task.

In plain terms: MCP is how you give an AI assistant live access to n8n — not just knowledge about it, but real, up-to-date data from your account.

What a n8n MCP Integration Does

Once n8n is connected via MCP, your AI assistant can:

  • Read live data — pull records, metrics, activity, and status directly from n8n
  • Take actions — create, update, or log records based on your instructions
  • Cross-reference context — combine n8n data with other connected tools mid-conversation

The key difference from a standard chatbot: the assistant is not working from training data or memory. It is reading your actual n8n instance, in real time.

Practical n8n MCP Use Cases

Trigger and inspect automations from chat

Ask the assistant to list recent workflow runs in n8n, identify failures, and explain what went wrong — so you can debug faster.

Workflow creation from description

Describe what you want to automate; the assistant drafts the workflow structure and, via MCP, creates or updates it in n8n.

AI steps inside your existing workflows

Use n8n to trigger the AI step — via MCP — and get structured outputs (classifications, summaries, extracted fields) back into your automation flow.

How to Connect n8n via MCP

There are two main paths:

Option A: Use n8n's official MCP server

n8n maintains an official n8n MCP server. This is the recommended starting point — it's built and maintained by the n8n team, so it stays up to date with API changes.

Note: n8n exposes a built-in MCP server at the instance level — AI assistants can trigger and query your n8n workflows directly. n8n also works the other way: you can build MCP servers using n8n's MCP Trigger node.

What the server exposes:

  • workflow execution
  • trigger workflows
  • read workflow status
  • instance management

What you'll need:

  • An MCP-compatible client (Claude Desktop, OpenClaw, or another host)
  • n8n credentials configured per the server's setup guide

This path gives you the most control but requires you to handle client configuration and credential management yourself.

Option B: Use Cody (OpenClaw-based, managed)

Cody is built on OpenClaw and supports MCP-compatible integrations out of the box. You connect n8n once from the Cody dashboard — no server to run, no code to write — and Cody handles authentication, context passing, and write-back actions with appropriate guardrails.

Cody works where your team already operates: Slack, Telegram, or the web chat. The n8n connection is available to your entire team without each person setting up their own MCP client.

Want n8n Connected to AI Without Running Your Own MCP Server?

Cody provides built-in integrations that don't require n8n as a middleware layer. For teams who want managed AI assistance without self-hosting complexity, Cody is the simpler path.

Get started with Cody →

MCP vs Other AI Integration Patterns

Approach What it is Tradeoff
MCP Standardised protocol for live tool access Requires an MCP server; most powerful when set up correctly
RAG (retrieval) Pre-index n8n content and retrieve it Good for static docs; not suitable for live/transactional data
Manual copy-paste Paste n8n output into ChatGPT/Claude Fast to start; breaks for anything recurring or at scale
Custom API wrappers Bespoke integration code per tool Full control; high maintenance overhead

MCP wins when you need live data from n8n and want to avoid rebuilding integrations as APIs change.

Common Mistakes

  • Using training data when live data is needed — if the AI doesn't have an MCP connection, it will answer from memory, which is often outdated or wrong for account-specific questions
  • No write-back guardrails — MCP can write to n8n, so it's worth adding an approval step for any action that modifies records
  • Too many tools exposed at once — give the AI access to the n8n actions it actually needs; a scoped connection is easier to reason about and audit
  • Skipping structured outputs — ask the AI to return structured JSON or clear fields when writing back to n8n; free-form output is harder to validate

Related MCP Guides


Want the full workflow picture? See: n8n AI Automation and How to Connect n8n to OpenClaw.