Skip to content
About 8 min read0% read

n8n MCP server guide: connect Claude to your workflows

Otomatzia editorial team · Last verified

Short answer

Yes, n8n can serve as an MCP server. In n8n, open Settings > Instance-level MCP, enable access, copy the Server URL and add it to Claude as a custom connector. Claude can then search and run the workflows you expose and, on recent versions, build and edit them too.

Key facts
TopicDetail
What it isn8n's built-in MCP server lets clients such as Claude Desktop connect to your instance (n8n docs)
Server URLEnds in `/mcp-server/http`, copied from Settings > Instance-level MCP > Connect a client (n8n docs)
Who can switch it onInstance owner or admin (n8n docs)
PlansWorks on all n8n plans including Community, version 2.18.3 or higher (n8n)
Sign-in optionsOAuth (recommended) or an API key bearer token (n8n docs)
Default exposureEach workflow must be enabled for MCP one by one, except search previews (n8n docs)

Three ways n8n works with MCP

MCP (Model Context Protocol) is an open standard for connecting AI applications such as Claude to outside data, tools and workflows. n8n is a workflow tool, so the two are not rivals: n8n sits on either side of the protocol. If you are new to the tool, start with what n8n is; the n8n profile and the n8n provider page list who builds with it.

The table compares the three pieces. For most people the first row is the one you want, because it lets Claude work with your whole instance through one connection.

n8n's three MCP features (from n8n's documentation)
FeatureDirectionWhat it exposesPick it when
Instance-level MCP serverClaude calls n8nWorkflows you enable across the instance, plus tools to search, run, test, create and edit themYou want Claude to find, run or build workflows on one connection
MCP Server Trigger nodeClaude calls n8nOnly the tools attached to that one workflowYou want to design one custom MCP server inside a single workflow
MCP Client Tool noden8n calls outside serversTools from an external MCP server, used by your n8n AI agentsYour agent needs tools that live in another MCP server

Connect Claude Desktop in five steps

These steps follow n8n's instance-level MCP page and its client examples. We have not run them on our own instance, so treat the screen names as n8n's description and check them against your version. You need to be an instance owner or admin for the first step.

OAuth is the sign-in method n8n recommends. n8n's own MCP page also lists n8n as an official Claude connector, so you may be able to add it from the connector directory instead.

  1. In n8n, go to Settings > Instance-level MCP and select Enable MCP access.
  2. Select Connect to open the Connect a client dialog and copy the Server URL. It ends in `/mcp-server/http`. Do not paste the address from your browser's address bar, which is the editor.
  3. In Claude Desktop, go to Settings > Connectors and choose Add custom connector.
  4. Name it anything (n8n's example is `n8n MCP`), paste the Server URL as the Remote MCP Server URL and save.
  5. When Claude prompts you, approve access on the n8n page it opens. Then ask Claude to search your workflows to confirm the link works.

Connect Claude Code or another coding agent

n8n's docs suggest coding agents such as Claude Code rather than chat clients when you want the AI to build workflows. This is the command from the client examples. Replace the placeholder with your own domain, without the https prefix.

After you add it, run `/mcp` inside Claude Code and select n8n to finish the OAuth sign-in. The same page gives equivalent commands for other clients, shown below. Use `http://` instead of `https://` if your instance serves plain HTTP, for example a local install.

Add the n8n MCP server to Claude Code with OAuth (n8n docs)
bash
claude mcp add --transport http n8n https://<your-n8n-domain>/mcp-server/http

Config for API key sign-in and other clients

If OAuth is not an option, open the API key tab in the Connect a client dialog. n8n generates a personal access token tied to your user account, and shows it in full only while you stay on that tab. Copy it then, because you can only replace it later by rotating it, which revokes the old token.

This is the Claude Code entry for API key sign-in, taken from the client examples. Other clients use their own format: Codex has `codex mcp add n8n --url ...`, Gemini CLI has `gemini mcp add --transport http n8n ...`, and Cursor and VS Code each have a one-click setup in the same dialog.

Claude Code config with an API key bearer token (n8n docs, replace both placeholders)
json
{
  "mcpServers": {
    "n8n-mcp": {
      "type": "http",
      "url": "https://<your-n8n-domain>/mcp-server/http",
      "headers": {
        "Authorization": "Bearer <YOUR_N8N_MCP_TOKEN>"
      }
    }
  }
}

Decide what Claude can touch

The server does not hand Claude your whole instance. n8n's docs say you enable MCP at the instance level and then enable each workflow individually. There is one exception: `search_workflows` can return previews of every workflow your user can view, but not full workflow data.

You can enable a workflow from the Workflows enabled page, from the workflow's settings (Available in MCP) or from the workflow list. From n8n 2.24.0 you can switch a whole project or folder at once. An Auto-expose new workflows setting is rolling out gradually from n8n 2.36.0 and is off by default, so a new workflow is not exposed unless you turn it on.

Two limits matter for client work. Access is not scoped per client: every client you connect sees every workflow you enabled. And each connected client only holds the permissions you approved when it connected, which you can review or revoke under Connected clients. Clients using an API key do not appear in that list, because they sign in with a bearer token.

Owners and admins can also set Allowed callback URLs to Only trusted URLs. By default n8n allows any callback URL, which n8n itself calls less secure.

What Claude can do once connected

The instance server exposes tools for workflow management, execution, workflow building, agents, user preferences and data tables, listed in the tools reference. The tool names that matter first are `search_workflows`, `get_workflow_details`, `execute_workflow` and `test_workflow`.

`execute_workflow` starts a run and returns an execution ID straight away, so Claude has to call `get_workflow_execution` to see the result. It defaults to production mode, which runs the published version of a workflow, and it also has a `manual` mode that runs the current unpublished version. Production mode supports workflows that start from a Webhook, Chat Trigger, Form Trigger or Schedule Trigger node.

`test_workflow` runs a workflow against pin data, so trigger nodes, nodes with credentials and HTTP Request nodes use simulated data instead of calling real services. It is available from n8n 2.15.0 and is the safer way to let Claude try a change. n8n describes the usual build loop as generate, validate, fix, run and read the error if it fails. It also says each workflow keeps a version history, so you can roll back an edit.

Failure modes and fixes

These are the problems n8n's own documentation lists, with the fix it gives. We have not reproduced them ourselves, so we state them as documented rather than as our test results.

Documented n8n MCP problems and fixes
What you seeCause (per n8n docs)Fix
Client cannot connect after you paste the editor addressThe editor URL is not the MCP endpointUse the Server URL from the Connect a client dialog, which ends in `/mcp-server/http` (client examples)
"You do not have sufficient permissions to authorize this request"n8n says MCP access is likely disabled for the instanceAsk an owner or admin to enable it, then connect again (MCP page)
A cloud client cannot reach a local n8nCloud-based clients need a publicly accessible instanceExpose the instance publicly or use a client that runs on your machine (MCP page)
Connects but nothing is listed to runThe workflow is not marked Available in MCPEnable it from the Workflows enabled page or the workflow settings (MCP page)
Connection fails behind a reverse proxy or firewallThe proxy does not pass the MCP headersAllow `MCP-Protocol-Version`, `Mcp-Method` and `Mcp-Name` through (MCP page)
`execute_workflow` returns an error listing trigger namesThe workflow has several eligible triggers, or its trigger needs inputPass `triggerNodeName`, available from n8n 2.36.0 (tools reference)
A workflow with a multi-step form or approval will not runHuman-in-the-loop interaction is not supportedRun it from n8n itself, or split the human step out (tools reference)
Token lostn8n shows the full token only onceRotate it in the API key tab and update every client (MCP page)

The single-workflow route: MCP Server Trigger

If you want a narrow server instead of the whole instance, use the MCP Server Trigger node. It exposes only the tools you attach to it, and workflows join the server through the Custom n8n Workflow Tool node. Authentication can be None, n8n User Auth (OAuth2), Bearer or Header, and the node supports SSE and streamable HTTP but not stdio.

Claude Desktop reaches it through a gateway that turns SSE into stdio. The config below is n8n's example, and `mcp-remote` is the gateway it names. The node has three documented traps. Behind nginx you must turn off proxy buffering for the MCP path. With several webhook replicas in queue mode, all `/mcp*` requests have to go to one dedicated replica or connections break. And claude.ai custom connectors ask you to sign in to n8n even when Authentication is None.

Claude Desktop config for an MCP Server Trigger node (n8n docs, replace both placeholders)
json
{
  "mcpServers": {
    "n8n": {
      "command": "npx",
      "args": [
        "mcp-remote",
        "<MCP_URL>",
        "--header",
        "Authorization: Bearer ${AUTH_TOKEN}"
      ],
      "env": {
        "AUTH_TOKEN": "<MCP_BEARER_TOKEN>"
      }
    }
  }
}

Versions and what we checked

We read n8n's documentation and its MCP page on 2 December 2026. The docs say the building and editing tools arrived in n8n 2.13.0, the per-client Connect a client dialog in 2.33.0, and the MCP page says the server needs version 2.18.3 or higher. n8n's GitHub page showed release 3.4.1 as the latest on 26 November 2026, so most new installs will be past all of these. Check your own version before you follow any step here.

Questions people ask about n8n and MCP

Short answers, checked against the n8n and MCP documentation in December 2026.

Can n8n serve as an MCP?

Yes. n8n has a built-in instance-level MCP server that lets clients such as Claude Desktop search and run enabled workflows, and a separate MCP Server Trigger node that serves the tools of one workflow.

What is n8n vs MCP?

n8n is a workflow automation platform. MCP is an open standard that lets AI applications connect to outside tools and data. n8n can act as an MCP server so AI apps call your workflows, or as an MCP client so your n8n agents call other servers through the MCP Client Tool node.

Does anyone use n8n anymore?

Yes. n8n's GitHub repository showed about 212.8k stars and a release dated 26 November 2026 when we checked on 2 December 2026, so it is still actively developed. Stars and releases show interest, not the number of production users.

Is MCP just JSON?

Not only. MCP messages must follow the JSON-RPC 2.0 specification, so the format is JSON. The protocol also defines the request types, the transports that carry them and an authorization framework for HTTP.

Want n8n and Claude working on a real process

If you want an agent that builds or runs workflows against your own systems, send us the process and we will tell you whether the instance server or a single-workflow server fits. For pricing questions first, see n8n pricing and Cloud versus self-hosted. For Claude itself see the Claude profile.

Sources

Vendor features and prices change. Confirm details on the linked official pages before you rely on them.

Keep reading

More in this topic: n8n

All guides