n8n-MCP and n8n-Skills: Build n8n Workflows With Claude

Learn how to connect n8n-MCP and n8n-Skills to Claude so it can build, validate, and deploy n8n workflows, with setup steps and common pitfalls.

Illustration for the guide: n8n-MCP and n8n-Skills: Build n8n Workflows With Claude

A few months ago I asked Claude for an n8n workflow. I wanted a webhook that reads rows from Google Sheets and sends a summary to Slack. The JSON looked clean, so I pasted it into n8n and got a stream of errors. Nodes that did not exist, made-up parameter names, and broken connections.

In short: n8n-MCP gives Claude live access to n8n's node documentation, and n8n-Skills teaches it the rules for building workflows that hold up in production. Together, they let Claude build, validate, and deploy workflows to your own n8n instance. Both projects are open source under the MIT license.

Key takeaways

  • n8n-MCP covers 2,175 nodes: 827 core nodes and 1,348 community nodes.
  • The server includes a library of 2,352 ready-made workflow templates.
  • The server has 7 core tools that work without any connection to your n8n instance, and 16 management tools that need N8N_API_URL and N8N_API_KEY.
  • n8n-Skills includes 14 complementary skills, plus a routing skill and a hook-based enforcement layer.
  • The managed version's free tier allows 100 tool calls per day.
  • Webhook data sits under $json.body, not $json.

Why do AI-generated n8n workflows fail?

They fail because the model does not have exact knowledge of n8n. n8n changes every week, has thousands of nodes, and each node has its own schema and versions. When the model is unsure, it fills the gaps with reasonable guesses, and a reasonable guess in n8n JSON is the same as an error.

The fix is not a better prompt. The fix is to give the model real access to the documentation, working rules that require validation, and a direct connection to your n8n instance. Three layers do this, and all three are open source projects from the same developer, Romuald Członkowski. This guide sets up all three.

What is n8n-MCP?

n8n-MCP is an MCP server that gives AI assistants comprehensive access to the documentation for n8n nodes, their properties, and their operations. Instead of letting Claude guess what a node looks like, it fetches the actual schema before writing a line.

The project includes these figures for the current version:

  • 2,175 nodes: 827 core and 1,348 community
  • 99% coverage of node properties and 87% coverage of documentation from the official docs
  • 265 node variants that can be used as AI tools
  • A template library of 2,352 ready-made workflows

The repository has more than 22,000 stars on GitHub and uses the MIT license. You can find it at github.com/czlonkowski/n8n-mcp.

Which tools does the server expose?

The server groups its tools into two sets. The first set has seven core tools. They work without any connection to your n8n instance, so they act as pure knowledge.

GroupToolsNeeds your n8n connection?
Core knowledge (7)tools_documentation, search_nodes, get_node, validate_node, validate_workflow, search_templates, get_templateNo
Management (16)n8n_create_workflow, n8n_update_partial_workflow, n8n_validate_workflow, n8n_autofix_workflow, n8n_test_workflow, plus version management with rollback, credentials management, and an instance security auditYes: N8N_API_URL and N8N_API_KEY

The management tools let Claude build, validate, and upload workflows. You approve the result. Claude does the work. You confirm.

What is n8n-Skills?

n8n-Skills is a set of 14 complementary skills for Claude Code. It also includes an always-on routing skill and an enforcement layer built from hooks. Together, they teach the model to build production-grade workflows on top of n8n-MCP.

MCP supplies knowledge, but it does not supply discipline. Claude can fetch the correct schema and still rely on default values that fail at runtime. The skills close that gap.

The skills are written as a catalog of real failures, not as theory. Some examples from the package:

  • Expression syntax, including the critical trap that webhook data sits under $json.body
  • Correct use of MCP tools, covering which tool fits which task, the difference between nodeType formats, and validation profiles
  • Workflow patterns, five proven architectural patterns: webhook processing, API, database, AI, and scheduled
  • Code node in JavaScript, the five common error patterns that explain more than 62% of failures
  • Error handling, wiring error outputs, using retryOnFail for flaky network calls, and the trap that responseCode defaults to 200
  • AI agents, the insight that tool names and their descriptions are effectively the agent's prompt

The repository is at github.com/czlonkowski/n8n-skills.

What makes this a system and not a folder of documents?

The enforcement layer is the strongest part. The routing skill loads in every session through a SessionStart hook. It reloads after resume, clear, or compact, so it survives context compression.

PreToolUse hooks also show a focused reminder before sensitive calls. A PostToolUse hook runs after validate_workflow and routes Claude to the skills that handle any remaining risks. The reminder is clear that a passing validation is a necessary condition, not a sufficient one.

One note: the hooks only run when the plugin is installed in Claude Code or Codex. On Claude.ai, the skills still activate based on their descriptions, but without the proactive prompts.

The same idea, knowledge loaded only when needed, also works for books and documents. The book-to-skill tool turns a technical book or a documentation folder into a skill of this kind.

How do you install n8n-MCP and n8n-Skills?

Connect n8n-MCP first, then install the skills, then connect your n8n instance. The fastest path is the managed version, which needs no installation or configuration.

Step 1: Connect n8n-MCP

  1. Sign up on the dashboard at dashboard.n8n-mcp.com.
  2. Get your API key.
  3. Connect your MCP client.

The free tier allows 100 tool calls per day.

If you want full control, the self-hosting guide in the repository covers npx, Docker, Railway, and local installation. There are also dedicated connection guides for Claude Code, VS Code, Cursor, Windsurf, Codex, and Antigravity.

Step 2: Install the skills

In Claude Code, the recommended method is the plugin install:

/plugin install czlonkowski/n8n-skills

You can also add the marketplace and then pick n8n-mcp-skills from the list:

/plugin marketplace add czlonkowski/n8n-skills

Or clone the repository manually and copy the skills/ folder to ~/.claude/skills/.

In Claude.ai, download the skill folders and compress each one into a zip file. You can also use the latest ready-made zip from the releases page. Then upload them through Settings, then Capabilities, then Skills.

The prerequisite for both methods is a working n8n-mcp server with a valid .mcp.json file.

Step 3: Connect your n8n instance

This step turns Claude from a JSON generator into a system that talks to your n8n.

  1. In n8n, go to Settings, then API, and create an API key.
  2. Set N8N_API_URL to your instance URL.
  3. Set N8N_API_KEY to the key you created.

When both values are set, the 16 management tools become available.

If your n8n sits behind Cloudflare Access, you also need N8N_CF_CLIENT_ID and N8N_CF_CLIENT_SECRET. These are sent as the CF-Access-Client-Id and CF-Access-Client-Secret headers on API calls.

Step 4: Set the right working order for Claude

Most people skip this step, and it is the step that makes the biggest difference in results. The repository provides system instructions for a Claude Project, and they set this process:

  1. Start with tools_documentation().
  2. Search for an existing template first. There are 2,352 of them. Search by keyword, by task, by node, or by metadata such as complexity level and target audience.
  3. Only if no suitable template exists, search for nodes. Show the architecture to the user for approval before continuing.
  4. Configure each node with get_node at an appropriate level of detail.
  5. Validate in stages: validate_node in minimal mode, then full mode, then validate_workflow on the complete workflow.
  6. Only after all errors are fixed, deploy with n8n_create_workflow.

It also helps to adopt two principles from the instructions. Run tools quietly, without commentary between calls. Run independent actions in parallel. This saves a lot of time and tokens.

What are the five pitfalls that break a workflow?

The five most common pitfalls are default values, connection syntax, IF node branching, webhook data location, and overuse of the Code node. Check each one before you deploy.

  1. Defaults. Default values cause more runtime failures than anything else. Set every parameter that affects how a node behaves. A Slack call with only {resource, operation, text} will fail. It also needs explicit select and channelId values.
  1. Connection syntax. The addConnection operation requires four separate string parameters: source, target, sourcePort, and targetPort. Mistakes here produce misleading error messages.
  1. IF node branching. An IF node has two outputs. Without an explicit branch parameter, both connections can land on the same output and break your logic.
  1. Webhook data. Webhook data is not in $json. It is under $json.body. This is often the error that takes the longest to debug.
  1. Code node as the first choice. Prefer standard nodes and use the Code node only as a last resort. It is more fragile. In Python, external libraries are not available, so there is no requests, pandas, or numpy.

How do you keep AI away from production workflows?

Do not let AI edit production workflows directly. Copy the workflow first, test it in a development environment, export a backup, and verify changes before you deploy. AI results can be unpredictable.

The README puts this warning at the top, and I repeat it here. Make a copy before any change, check the change in a development environment, and keep a backup you can restore.

Organizations have two more layers of protection:

  • Read-only deployment. The DISABLED_TOOLS variable fully turns off write and destructive tools. This includes credential management and data tables. Data tables are removed completely, because even reading from them can expose sensitive material.
  • Partial blocking. DISABLED_TOOL_OPERATIONS blocks only specific operations and leaves list and get active.

For defense in depth, combine these settings with an n8n API key that has read-only permissions.

If you manage several instances, verify which instance you are working on before you write credentials. The server fails safe in ambiguous cases. An explicit switch to the wrong instance can still write a secret without warning you. If a call returns NOT_FOUND, the usual cause is the wrong instance, not a deletion.

What does this change in practice?

The main benefit is not saving time on dragging nodes around. The benefit is a change in how big a project you are willing to start.

When a workflow takes 40 minutes to build, you only build automations that are almost certain to pay off. When it takes 4 minutes, you also build the small automation that might work, and the ones that surprise you in a good way. You move from managing a stock of automations to managing a portfolio of experiments.

This is also where you need to stay level-headed. This system builds fast, but it does not always build correctly. Validation, backups, and separate environments are not bureaucracy. They are what let you move quickly.

Bottom line

n8n-MCP gives Claude the documentation, and n8n-Skills gives it the working rules. Connect both to your own n8n instance, follow the build order, and validate every workflow before it goes live.

Questions people ask

What is n8n-MCP?

n8n-MCP is an MCP server that gives AI assistants access to documentation for n8n nodes, their properties, and their operations. Instead of guessing what a node looks like, the assistant pulls the real schema before it writes anything. The project is open source under the MIT license and has over 22,000 stars on GitHub.

What is n8n-Skills and how is it different from n8n-MCP?

n8n-Skills is a set of 14 complementary skills for Claude Code, plus an always-on routing skill and a hook-based enforcement layer. n8n-MCP supplies knowledge, while n8n-Skills adds the rules that teach the model to build production-grade workflows on top of it. It is also MIT licensed and has almost 6,000 stars.

How do I install n8n-Skills in Claude Code?

The recommended way is to run /plugin install czlonkowski/n8n-skills inside Claude Code. You can also add the marketplace with /plugin marketplace add czlonkowski/n8n-skills and then select n8n-mcp-skills from the list. Both methods require that the n8n-mcp server is installed and configured with a valid .mcp.json file.

What are the most common reasons an AI-generated n8n workflow fails?

Default parameter values are the number one cause of runtime failures. Webhook data is under $json.body, not $json, which is often the error that takes the longest to debug. Connection syntax mistakes and IF nodes without an explicit branch parameter also break workflows.

How can I keep AI from damaging a production n8n workflow?

Never edit production workflows directly with AI. Make a copy first, test in a development environment, export a backup, and verify changes before deployment. In organizational settings, the DISABLED_TOOLS variable turns off write and destructive tools, and DISABLED_TOOL_OPERATIONS can block specific operations while keeping list and get active.

n8nMCPClaude CodeAI automationworkflow automation
I rest. The agents work. A relaxed panda on a beanbag while a small robot carries its paperwork

One email a week. One agent you can copy.

Every week I send the setup I actually used: the tools, the prompts and the steps. Short enough to read on your phone.

No spam. Unsubscribe with one click.