Nokto

n8n and MCP: server, client, instance access and n8n-mcp

By Abdellah El KharrazePublished 5 min read

In short

MCP (Model Context Protocol) is a protocol that lets an AI assistant use external tools. In n8n, it works both ways: the MCP Server Trigger node exposes workflows as tools for Claude or other MCP clients, and the MCP Client node lets an n8n agent use the tools of an external MCP server. n8n also offers MCP access to the instance, and the community project n8n-mcp helps assistants build workflows.

Key takeaways

  • MCP standardizes how an AI model discovers and calls tools.
  • MCP Server Trigger: your n8n workflows become tools for Claude, ChatGPT or an IDE.
  • MCP Client Tool: your n8n agent uses the tools of an external MCP server.
  • A tool exposed through MCP is a door into your systems: authentication, least privilege and monitoring are a must.

MCP has been one of the most searched terms around n8n since 2025, and for good reason: it changes how AI assistants and workflows work together. But “n8n MCP” actually covers four different things. This article untangles them, explains what each one is for, and what you need to secure before plugging an AI assistant into your automations.

MCP in two minutes

The Model Context Protocol is an open protocol that standardizes the connection between an AI model and tools. Before MCP, every assistant had its own way of declaring “functions”; with MCP, a server describes its tools (name, description, parameters) and a client (Claude, ChatGPT, an IDE, an agent) discovers and calls them as needed. The same MCP server works with every compatible client.

For n8n, it is a natural fit: a workflow is already a tool that takes parameters and returns a result. MCP makes it usable by any assistant, and conversely gives n8n agents access to the ecosystem of MCP servers.

The four faces of “n8n MCP”

What it isDirectionTypical use
MCP Server TriggerA trigger node that turns a workflow into an MCP serverAssistant → n8nClaude creates a quote or checks stock through your workflows
MCP Client ToolA tool node that connects an n8n agent to an external MCP servern8n → MCP serverYour n8n agent uses the tools of a CRM, a database, a third-party service
Instance MCP accessAn n8n instance feature that makes workflows available to MCP clientsAssistant → n8nExpose a selection of workflows without building a dedicated server
n8n-mcpA community project that documents n8n nodes for an assistantAssistant → knowledge of n8nHave Claude build and validate workflows

1. Exposing workflows with MCP Server Trigger

The MCP Server Trigger node provides an MCP server URL. The tools you attach to it (app nodes, the “Call n8n Workflow” node pointing to sub-workflows) become MCP tools, with their description and parameters. An MCP client connected to that URL can list and call them. The node works over HTTP (SSE or streamable HTTP), not standard input/output; since these connections are persistent, in queue mode with several webhook processes you have to route the MCP path to a single instance.

Example: a sales assistant

  • “find_customer” tool: a sub-workflow that queries the CRM by name or email;
  • “product_stock” tool: a sub-workflow that reads stock in the ERP;
  • “create_quote” tool: a sub-workflow that generates a draft quote, never sent automatically.

In Claude, the sales rep writes “prepare a quote for company X, 20 units of product Y if stock allows”: Claude chains the three tools and returns the draft. The business rules stay in n8n, where they are visible, versioned and tested.

Best practices

  • A precise description for each tool: that is what the model reads to decide whether to call it.
  • Typed parameters, validated at the start of the sub-workflow.
  • Read-only tools by default; tools that write produce drafts or ask for human approval.
  • Authentication on the MCP server (header or token), never an open public URL.

2. Using MCP tools in an n8n agent

In a workflow with an AI Agent node, the MCP Client Tool sub-node connects to an external MCP server and gives the agent access to its tools, optionally filtered. It is the fastest way to give an n8n agent tools that don't exist as nodes, or that a software vendor maintains itself as an MCP server.

To call a specific MCP tool outside an agent, in a regular workflow, n8n also offers the MCP Client node (non-agent), which runs a chosen tool with fixed parameters.

Watch the cost: an agent with thirty tools receives their thirty descriptions on every model call, which increases tokens consumed, and it has more chances to pick the wrong tool or loop. Only give the agent the tools it needs.

3. Instance MCP access

Recent n8n versions let you turn on MCP access at the instance level, then make available, workflow by workflow, the ones MCP clients can use. It is simpler than building a server with MCP Server Trigger when you just want to expose a few existing workflows. n8n has kept expanding this feature across 2.x versions: check the documentation for your version for the exact settings.

4. n8n-mcp: having an assistant build workflows

n8n-mcp is an open source community project, independent from the vendor, very popular with users of Claude and AI-assisted IDEs. It gives the model structured knowledge of n8n nodes (properties, operations, examples) and tools to validate a workflow before creating it. The result: the assistant produces workflows that import and work on the first try more often.

It is an excellent accelerator for building. It is not a guarantee of reliability in production: a workflow generated by an assistant must go through the same checklist as a template (see n8n templates), and be monitored the same way.

Risks to control

Plugging an AI assistant into workflows means giving a model the ability to act on your systems. Three risks:

  • Model error: it calls the wrong tool, with the wrong parameters, or several times.
  • Injection: content read by the assistant (an email, a web page) contains instructions that push it to call a tool.
  • Cost and load: a looping assistant can trigger hundreds of executions.

The countermeasures: read-only tools by default, least privilege on credentials, human approval for anything that writes or sends, rate limits, and logging. Also monitor the execution volume of exposed workflows: a sudden spike is a sign of an assistant running away.

In Nokto, a workflow exposed through MCP is a flow like any other: its volume, failures and durations are tracked, and a failure, a silence or a drop in executions triggers an alert; the 24-hour volume also shows a runaway at a glance. For an n8n agent using MCP tools, tool calls per execution and cost are tracked in the AI agents screen.

Frequently asked questions

What is MCP?

The Model Context Protocol is an open protocol, launched by Anthropic in late 2024 and since adopted by many vendors, that standardizes how an AI assistant connects to tools and data sources. An MCP server exposes tools; an MCP client (Claude, an IDE, an agent) discovers and calls them.

How do I connect Claude to n8n?

Create a workflow that starts with the MCP Server Trigger node, attach the tools to expose (nodes or sub-workflows), activate it, then add the MCP server URL to the connector settings of Claude or your MCP client, with the authentication you set up. Claude can then call those workflows as tools.

What is n8n-mcp?

n8n-mcp is an open source community project, separate from n8n, that gives an AI assistant the documentation and properties of n8n nodes, plus tools to create or validate workflows. It is used to have an assistant like Claude build n8n workflows with fewer errors.

Is MCP safe?

MCP is a protocol; its safety depends on what you expose. An MCP tool that writes to your CRM or sends emails can be called by a model that makes a mistake or has been manipulated by malicious content. Authenticate the server, only expose the tools you need with minimal permissions, and log the calls.

Sources

Try Nokto for free