AI/TLDR

n8n-MCP

An MCP server that teaches coding assistants n8n — every node, schema, doc page and template — so they can build workflows that actually validate

Workflow AutomationOpen source
Language
TypeScript
License
MIT
$npx n8n-mcp

Overview

An AI assistant asked to build an n8n workflow has to guess at node names, parameter shapes and defaults, and it guesses badly. n8n-MCP closes that gap: it is a Model Context Protocol server that hands the assistant structured, queryable knowledge about n8n itself — 2,755 nodes (832 core plus 1,923 community, 1,591 of them verified), node properties at 99% schema coverage, operations at 66.5%, and documentation at 86% coverage pulled from the official n8n docs.

It also carries the material that makes a generated workflow plausible rather than merely syntactically valid: 267 AI-capable tool variants with full documentation, 156 ranked real-world configurations extracted from popular templates, and a library of 2,352 workflow templates with 99.96% AI-metadata coverage. Templates can be searched by metadata, by task, by node type or by plain keyword, which is why the project's recommended system prompt tells the assistant to check templates before building anything from scratch, and to run a minimal-then-full node validation followed by a whole-workflow validation.

There are two ways to run it. The hosted dashboard needs no installation and has a free tier of 100 tool calls a day; self-hosting is a plain npx, Docker, Railway or local install. Adding an n8n API URL and key unlocks the management tools that talk to your own instance, and there is separate support for instance-level MCP, Cloudflare Access service tokens and deployment inside n8n itself via the MCP Client Tool node. Setup guides ship for Claude Code, VS Code with Copilot, Cursor, Windsurf, Codex and Antigravity.

The project is MIT-licensed TypeScript, tracks n8n releases closely (the README badge pins the n8n version it is built against), and carries a blunt safety warning worth repeating: never point it at production workflows directly. Copy the workflow, test in development, export backups and validate before deploying.

What it does

  • 2,755 n8n nodes indexed — 832 core and 1,923 community (1,591 verified) — with 99% property-schema coverage and 86% documentation coverage
  • 2,352 workflow templates searchable by metadata, task, node type or keyword, plus 156 ranked real-world node configurations
  • 267 AI-capable tool variants detected and documented, so assistants can wire n8n's AI nodes correctly
  • Multi-level validation: validate_node (minimal, then full) followed by validate_workflow before anything is deployed
  • Optional management tools against your own n8n instance via N8N_API_URL / N8N_API_KEY, including Cloudflare Access service-token auth
  • Hosted service with a 100-call/day free tier, or self-host via npx, Docker, Railway or a local install
  • Documented setup for Claude Code, VS Code + Copilot, Cursor, Windsurf, Codex and Antigravity

Getting started

The fastest route is the hosted dashboard at dashboard.n8n-mcp.com — sign up, take the API key, point your MCP client at it. To self-host, you only need Node.js installed; the npm package ships a pre-built database of all the node information.

Run the server

No installation step — npx fetches and runs the current version.

bashbash
npx n8n-mcp

Register it with your MCP client

MCP_MODE: "stdio" is required for Claude Desktop — without it, debug logs reach stdout and you get JSON parsing errors in the UI.

jsonjson
{
  "mcpServers": {
    "n8n-mcp": {
      "command": "npx",
      "args": ["n8n-mcp"],
      "env": {
        "MCP_MODE": "stdio",
        "LOG_LEVEL": "error",
        "DISABLE_CONSOLE_OUTPUT": "true"
      }
    }
  }
}

Add your own n8n instance (optional)

Supplying the API URL and key turns on the workflow-management tools on top of the documentation tools.

jsonjson
{
  "mcpServers": {
    "n8n-mcp": {
      "command": "npx",
      "args": ["n8n-mcp"],
      "env": {
        "MCP_MODE": "stdio",
        "LOG_LEVEL": "error",
        "DISABLE_CONSOLE_OUTPUT": "true",
        "N8N_API_URL": "https://your-n8n-instance.com",
        "N8N_API_KEY": "your-api-key"
      }
    }
  }
}

Work templates first, then validate

The project's recommended assistant instructions start every job by reading the tool documentation and searching the 2,352 templates before building from scratch.

texttext
tools_documentation()
search_templates({searchMode: 'by_task', task: 'webhook_processing'})
validate_node(mode='minimal') -> validate_node(mode='full') -> validate_workflow

Commands and code are distilled from the project's own documentation — always check the official repo for the latest.

When to use it

  • Letting Claude Code, Cursor or Windsurf assemble an n8n workflow from a description without inventing node names or parameters
  • Finding an existing template for a task instead of generating a workflow from zero
  • Validating a generated workflow node-by-node before it ever reaches an n8n instance
  • Giving an agent read and management access to your own n8n deployment, behind Cloudflare Access if you use it

How n8n-MCP compares

n8n-MCP alongside other open-source workflow automation tools AI/TLDR tracks, ranked by GitHub stars.

ToolStarsWhat it does
n8n★ 205kA self-hostable workflow automation tool with a visual node editor that connects 400+ apps and APIs and adds native AI steps, letting technical teams build automations without writing most of the glue code.
Huginn★ 50kA self-hosted system of "agents" that watch websites, feeds, and events and take automated actions on your behalf, similar to a private IFTTT.
GitHub MCP Server★ 33kGitHub's official MCP server, hosted or self-run, that gives an agent scoped toolsets for repositories, issues, pull requests, Actions runs and code-security alerts.
gws (Google Workspace CLI)★ 31kA command-line tool for every Google Workspace API, built at runtime from Google’s Discovery Service, returning structured JSON and shipping 40+ agent skills. Not an officially supported Google product.
Kestra★ 28.1kAn event-driven orchestration platform that defines data, AI, and infrastructure pipelines as declarative YAML and runs them through a web UI.
Activepieces★ 24.5kAn open-source Zapier alternative where you build automations from reusable TypeScript "pieces", with support for AI agents and self-hosting.
n8n-MCP★ 22.9kAn MCP server that teaches coding assistants n8n — every node, schema, doc page and template — so they can build workflows that actually validate
Trigger.dev★ 16.3kAn open-source TypeScript platform for durable background tasks and AI agents — no timeouts, with retries, queues, waitpoints for human approval, realtime streaming and per-run tracing.