TINO NAFIOU

Automation

n8n and MCP: Connect Claude, ChatGPT and Your AI Agents to Your Tools

Updated 7 min
Tino Nafiou

In short: n8n speaks MCP (Model Context Protocol, the standard that lets an AI use your tools) in three ways. The instance MCP server lets Claude, ChatGPT or Codex search, run and even build your workflows. The MCP Server Trigger node turns a workflow into a tool any compatible agent can call. The MCP Client Tool node gives an AI agent built in n8n the tools of an external MCP server. This guide explains when to use each one, how to set them up and the mistakes to avoid.

MCP in Two Minutes

An AI model can reason and write, but on its own it can't read your CRM, create a ticket or send an email. For a long time, every connection between an AI and a tool required custom development.

MCP, launched by Anthropic in late 2024, solves this with a shared standard, often compared to a USB-C port for AI:

  • the MCP server is plugged into a tool and describes what it can do (its "tools");
  • the MCP client is the AI application (Claude, ChatGPT, an n8n agent) that discovers those tools and calls them;
  • the protocol defines how the two talk to each other.

A server written once works with every compatible client. In December 2025, Anthropic handed MCP over to the Agentic AI Foundation, a foundation hosted by the Linux Foundation and co-founded with Block and OpenAI: the protocol no longer belongs to a single vendor. According to Anthropic, there were more than 10,000 public MCP servers at the time.

The Three Ways to Use MCP With n8n

Optionn8n's roleWhat it enablesWho calls it
Instance MCP serverServerSearch, run, test and build your workflows from an AIClaude, ChatGPT, Claude Code, Codex, Cursor…
MCP Server Trigger nodeServerExpose one specific workflow as a toolAny MCP client
MCP Client Tool nodeClientGive an n8n agent the tools of an external MCP serverThe AI agent in your workflow

All three work on n8n Cloud and on self-hosted instances. You can combine them: an n8n agent that uses external tools can itself be exposed to Claude.

Connect Claude, ChatGPT or Codex to n8n: The Instance MCP Server

This is the simplest way to drive n8n from an AI. It's built into n8n, with no node to add.

  1. Turn on access: in Settings > Instance-level MCP, click Enable MCP access. You need to be the instance owner or an admin.
  2. Choose which workflows are visible: access is granted workflow by workflow, with the Available in MCP option in the workflow settings, from the workflows list, or in bulk per project or folder. Nothing is exposed by default.
  3. Connect the client: open Connect a client and follow the OAuth flow (an authorization you can revoke at any time), or generate a personal access token.
  4. Test it: ask Claude, for example, "list my available n8n workflows" then "run the invoice reminder workflow".

What the AI can then do:

  • search your workflows (just a preview for the ones you haven't enabled);
  • run and test enabled workflows, in their published version by default;
  • build and edit workflows and data tables, since n8n 2.13.0: you describe the automation, the AI creates the nodes and tests it.

Clients listed in n8n's documentation: Claude.ai, ChatGPT and Mistral Vibe on the web; Claude Code, Codex and Gemini CLI on the command line; Cursor, VS Code and Windsurf in the editor.

Expose a Workflow as a Tool: The MCP Server Trigger Node

This node turns n8n into an MCP server for one specific use. It doesn't pass data to the next nodes: it only connects to tool nodes, which clients can list and call.

  1. Create a workflow and add the MCP Server Trigger.
  2. Connect tool nodes to it (Google Sheets, HTTP Request, Notion…) or a full workflow through the Custom n8n Workflow Tool node.
  3. Give each tool a name and a clear description: that's what the AI reads to decide when to use it.
  4. Choose authentication: None, Bearer auth or Header auth. In production, never use None.
  5. Publish the workflow and copy the production URL into your MCP client.
TopicDetails
TransportsSSE and streamable HTTP (no stdio)
Test URLActive while listening in the editor, calls show up live
Production URLActive once the workflow is published, calls show up in the Executions tab
PathRandomly generated by default, customizable

For Claude Desktop, n8n's documentation uses the mcp-remote tool, with the server URL and the token in an Authorization header. On claude.ai, you just add a custom connector with the URL.

Give External Tools to an n8n Agent: The MCP Client Tool Node

Here it's the other way around: n8n is the client. The node plugs into an AI Agent node and gives it access to the tools of an external MCP server (a CRM, a database, a search service…).

  • Endpoint: the MCP server's SSE address.
  • Authentication: Bearer, generic header, Multiple Headers Auth or OAuth2, or none.
  • Tools to Include: All (every tool on the server), Selected (a selection) or All Except (all but some).

Good habit: only give the agent the tools it needs. The fewer it has, the better it chooses, and the less damage it can do. For services already in n8n's MCP server registry, you connect straight from the nodes panel, without creating credentials by hand.

Which Option Should You Choose?

Your needThe right option
Drive all your workflows from Claude or ChatGPTInstance MCP server
Have an AI build workflows for youInstance MCP server (n8n 2.13.0 or later)
Offer one specific tool to an outside agent, with its own URL and keyMCP Server Trigger
Give an n8n agent access to a service that has an MCP serverMCP Client Tool
Help a coding AI know every n8n nodeThe community n8n-mcp project (open source, independent from n8n)

5 Concrete Use Cases

1. Project Management in One Sentence

"Create an urgent ticket for the payment bug, assign it to the backend team and let the lead know on Slack." The agent creates the ticket in Linear or Jira, assigns it, then sends the Slack message with context.

2. Expense Report

"Compare this month's spending with the budget and send the analysis to the CFO." A workflow exposed through the MCP Server Trigger pulls the transactions, calculates the gaps and sends a formatted report.

3. Screening Applications

"Summarize the last five applications for the developer role and offer an interview to the top three." The agent reads the resumes in the recruiting tool, ranks them and sends the invitations.

4. Customer Support

"This customer has a recurring billing issue: analyze their history and suggest a fix." The agent cross-checks the CRM, past tickets and invoices, then drafts a reply the team approves.

5. Employee Onboarding

"New marketing hire starting on the 15th: set up their access." The workflow creates the account, opens access to the tools, schedules training and notifies the manager.

Security: The Rules to Follow

  • Expose only what's needed: on the instance server, enable workflows one by one and leave auto-exposure of new workflows turned off.
  • Prefer OAuth to tokens: each client keeps its own permissions, revocable at any time.
  • Protect every MCP Server Trigger with Bearer or header authentication.
  • Require human approval for sensitive actions: payments, deletions, bulk sends.
  • Watch the Executions tab to keep a record of every call.
  • Be wary of content the agent reads: an email or a web page can contain hidden instructions. Limit the available tools when the agent handles outside data.

Common Problems and Fixes

ProblemLikely causeFix
The client connects but calls no toolTool names or descriptions too vagueDescribe precisely what each tool does and when to use it
Works in testing, not in productionThe client uses the test URLPublish the workflow and use the production URL
Connections drop in queue modeSeveral webhook replicasRoute all /mcp requests to a single replica
Responses stuck behind a proxyProxy bufferingTurn off buffering (and compression) on the MCP endpoint
claude.ai asks you to sign in even with authentication set to NoneSpecific to claude.ai connectorsExpected: it's the only client known to do this
The AI can't see a workflowWorkflow not enabled for MCPTurn on "Available in MCP" for that workflow

Up to date as of October 18, 2026. Sources: official n8n documentation (docs.n8n.io: instance MCP server, MCP Server Trigger and MCP Client Tool nodes), Anthropic's Agentic AI Foundation announcement (December 2025) and the protocol specification (modelcontextprotocol.io).

To go further with n8n, read the guide to AI workflows with n8n too.

Want to connect your tools to an AI agent with n8n and MCP? Book a 30-minute call to talk it through.

Frequently asked questions

What is MCP in n8n?

MCP (Model Context Protocol) is the standard that lets an AI use tools. In n8n, it works both ways: n8n can be an MCP server (Claude or ChatGPT then use your workflows) or an MCP client (an n8n agent uses the tools of an external server).

What's the difference between the instance MCP server and the MCP Server Trigger node?

The instance server gives access to every workflow you enable, with search, execution and workflow building. The MCP Server Trigger exposes one specific set of tools, with its own URL and its own authentication.

Can Claude create n8n workflows?

Yes. Since n8n 2.13.0, a client connected to the instance MCP server can build and edit workflows and data tables, then test them.

Is MCP available on self-hosted n8n?

Yes. The instance MCP server and the MCP nodes work on n8n Cloud and on self-hosted instances. On self-hosted, the module can also be turned off entirely.

Which clients can connect to n8n's MCP server?

n8n's documentation lists Claude.ai, ChatGPT and Mistral Vibe on the web, Claude Code, Codex and Gemini CLI on the command line, and Cursor, VS Code and Windsurf in the editor, as well as Claude Desktop.

Which transports does the MCP Server Trigger support?

SSE and streamable HTTP. The stdio transport isn't supported: for Claude Desktop, you go through the mcp-remote tool.

Why can't my agent find my MCP tools?

Most often, the tool names and descriptions are too vague, the client uses the test URL instead of the production URL, or the workflow isn't enabled for MCP.

Is n8n's MCP secure?

Yes, if you configure it well: workflows exposed one by one, revocable OAuth connections, authentication on every MCP Server Trigger, and human approval for sensitive actions.

  • n8n
  • MCP
  • AI Agent
  • Claude
  • Anthropic
  • Integration

Need help implementing these solutions?

I design and build the SaaS, AI agents and automations covered in this article, end to end, and you own the result.

Book a free audit

30 minutes · 100% free · no commitment

30 days of support and adjustments included after every delivery