The n8n-MCP server enhances AI assistants' ability to interact with n8n by providing comprehensive access to node documentation, workflow management, and validation capabilities.
Node Information & Discovery: Search nodes by keywords, category, or package; list AI-capable nodes; retrieve detailed or essential node documentation and properties; and get pre-configured settings for common tasks.
Workflow Design & Validation: Validate individual node configurations (required fields, operations, types) and complete workflows (structure, connections, expressions) to catch errors before deployment.
n8n Instance Management: Directly interact with n8n instances to create, retrieve, update, and delete workflows; trigger webhooks; manage executions; and perform API health checks.
Utilities: Access comprehensive tool documentation, view database statistics, search community workflow templates, and get guidance on using nodes as AI tools.
Supports access to LangChain nodes within n8n, providing documentation and configuration assistance for AI-powered workflow automation using LangChain components.
Provides comprehensive access to n8n's workflow automation platform, including node documentation, properties validation, and workflow management capabilities. Enables AI assistants to understand, create, and manage workflows with over 530 automation nodes.
n8n-MCP
A Model Context Protocol (MCP) server that provides AI assistants with comprehensive access to n8n node documentation, properties, and operations. Deploy in minutes to give Claude and other AI assistants deep knowledge about n8n's 1,084 workflow automation nodes (537 core + 547 community).
Overview
n8n-MCP serves as a bridge between n8n's workflow automation platform and AI models, enabling them to understand and work with n8n nodes effectively. It provides structured access to:
๐ 1,084 n8n nodes - 537 core nodes + 547 community nodes (301 verified)
๐ง Node properties - 99% coverage with detailed schemas
โก Node operations - 63.6% coverage of available actions
๐ Documentation - 87% coverage from official n8n docs (including AI nodes)
๐ค AI tools - 265 AI-capable tool variants detected with full documentation
๐ก Real-world examples - 2,646 pre-extracted configurations from popular templates
๐ฏ Template library - 2,709 workflow templates with 100% metadata coverage
๐ Community nodes - Search verified community integrations with
sourcefilter (NEW!)
Related MCP server: n8n MCP Tools
โ ๏ธ Important Safety Warning
NEVER edit your production workflows directly with AI! Always:
๐ Make a copy of your workflow before using AI tools
๐งช Test in development environment first
๐พ Export backups of important workflows
โก Validate changes before deploying to production
AI results can be unpredictable. Protect your work!
๐ Quick Start
Option 1: Hosted Service (Easiest - No Setup!) โ๏ธ
The fastest way to try n8n-MCP - no installation, no configuration:
โ Free tier: 100 tool calls/day
โ Instant access: Start building workflows immediately
โ Always up-to-date: Latest n8n nodes and templates
โ No infrastructure: We handle everything
Just sign up, get your API key, and connect your MCP client.
๐ Self-Hosting Options
Prefer to run n8n-MCP yourself? Choose your deployment method:
Option A: npx (Quick Local Setup) ๐
Get n8n-MCP running in minutes:
![]()
Prerequisites: Node.js installed on your system
Add to Claude Desktop config:
โ ๏ธ Important: The
MCP_MODE: "stdio"environment variable is required for Claude Desktop. Without it, you will see JSON parsing errors like"Unexpected token..."in the UI. This variable ensures that only JSON-RPC messages are sent to stdout, preventing debug logs from interfering with the protocol.
Basic configuration (documentation tools only):
Full configuration (with n8n management tools):
Note: npx will download and run the latest version automatically. The package includes a pre-built database with all n8n node information.
Configuration file locations:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Restart Claude Desktop after updating configuration - That's it! ๐
Option B: Docker (Isolated & Reproducible) ๐ณ
Prerequisites: Docker installed on your system
macOS:
Linux (Ubuntu/Debian):
Windows:
Verify installation:
โก Ultra-optimized: Our Docker image is 82% smaller than typical n8n images because it contains NO n8n dependencies - just the runtime MCP server with a pre-built database!
Add to Claude Desktop config:
Basic configuration (documentation tools only):
Full configuration (with n8n management tools):
๐ก Tip: If you're running n8n locally on the same machine (e.g., via Docker), use http://host.docker.internal:5678 as the N8N_API_URL.
Note: The n8n API credentials are optional. Without them, you'll have access to all documentation and validation tools. With them, you'll additionally get workflow management capabilities (create, update, execute workflows).
๐ Local n8n Instance Configuration
If you're running n8n locally (e.g., http://localhost:5678 or Docker), you need to allow localhost webhooks:
โ ๏ธ Important: Set
WEBHOOK_SECURITY_MODE=moderateto allow webhooks to your local n8n instance. This is safe for local development while still blocking private networks and cloud metadata.
Important: The -i flag is required for MCP stdio communication.
๐ง If you encounter any issues with Docker, check our Docker Troubleshooting Guide.
Configuration file locations:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Restart Claude Desktop after updating configuration - That's it! ๐
๐ Privacy & Telemetry
n8n-mcp collects anonymous usage statistics to improve the tool. View our privacy policy.
Opting Out
For npx users:
For Docker users: Add the following environment variable to your Docker configuration:
Example in Claude Desktop config:
For docker-compose users: Set in your environment file or docker-compose.yml:
โ๏ธ Database & Memory Configuration
Database Adapters
n8n-mcp uses SQLite for storing node documentation. Two adapters are available:
better-sqlite3 (Default in Docker)
Native C++ bindings for best performance
Direct disk writes (no memory overhead)
Now enabled by default in Docker images (v2.20.2+)
Memory usage: ~100-120 MB stable
sql.js (Fallback)
Pure JavaScript implementation
In-memory database with periodic saves
Used when better-sqlite3 compilation fails
Memory usage: ~150-200 MB stable
Memory Optimization (sql.js)
If using sql.js fallback, you can configure the save interval to balance between data safety and memory efficiency:
Environment Variable:
Usage:
Controls how long to wait after database changes before saving to disk
Lower values = more frequent saves = higher memory churn
Higher values = less frequent saves = lower memory usage
Minimum: 100ms
Recommended: 5000-10000ms for production
Docker Configuration:
docker-compose:
๐ Support This Project
n8n-mcp started as a personal tool but now helps tens of thousands of developers automate their workflows efficiently. Maintaining and developing this project competes with my paid work.
Your sponsorship helps me:
๐ Dedicate focused time to new features
๐ Respond quickly to issues
๐ Keep documentation up-to-date
๐ Ensure compatibility with latest n8n releases
Every sponsorship directly translates to hours invested in making n8n-mcp better for everyone. Become a sponsor โ
Option C: Local Installation (For Development)
Prerequisites: Node.js installed on your system
Add to Claude Desktop config:
Basic configuration (documentation tools only):
Full configuration (with n8n management tools):
Note: The n8n API credentials can be configured either in a
.envfile (create from.env.example) or directly in the Claude config as shown above.
๐ก Tip: If youโre running n8n locally on the same machine (e.g., via Docker), use http://host.docker.internal:5678 as the N8N_API_URL.
Option D: Railway Cloud Deployment (One-Click Deploy) โ๏ธ
Prerequisites: Railway account (free tier available)
Deploy n8n-MCP to Railway's cloud platform with zero configuration:
Benefits:
โ๏ธ Instant cloud hosting - No server setup required
๐ Secure by default - HTTPS included, auth token warnings
๐ Global access - Connect from any Claude Desktop
โก Auto-scaling - Railway handles the infrastructure
๐ Built-in monitoring - Logs and metrics included
Quick Setup:
Click the "Deploy on Railway" button above
Sign in to Railway (or create a free account)
Configure your deployment (project name, region)
Click "Deploy" and wait ~2-3 minutes
Copy your deployment URL and auth token
Add to Claude Desktop config using the HTTPS URL
๐ For detailed setup instructions, troubleshooting, and configuration examples, see our
Configuration file locations:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:
%APPDATA%\Claude\claude_desktop_config.jsonLinux:
~/.config/Claude/claude_desktop_config.json
Restart Claude Desktop after updating configuration - That's it! ๐
๐ง n8n Integration
Want to use n8n-MCP with your n8n instance? Check out our comprehensive n8n Deployment Guide for:
Local testing with the MCP Client Tool node
Production deployment with Docker Compose
Cloud deployment on Hetzner, AWS, and other providers
Troubleshooting and security best practices
๐ป Connect your IDE
n8n-MCP works with multiple AI-powered IDEs and tools. Choose your preferred development environment:
Claude Code
Quick setup for Claude Code CLI - just type "add this mcp server" and paste the config.
Visual Studio Code
Full setup guide for VS Code with GitHub Copilot integration and MCP support.
Cursor
Step-by-step tutorial for connecting n8n-MCP to Cursor IDE with custom rules.
Windsurf
Complete guide for integrating n8n-MCP with Windsurf using project rules.
Codex
Complete guide for integrating n8n-MCP with Codex.
Antigravity
Complete guide for integrating n8n-MCP with Antigravity.
๐ Add Claude Skills (Optional)
Supercharge your n8n workflow building with specialized skills that teach AI how to build production-ready workflows!

Learn more: n8n-skills repository
๐ค Claude Project Setup
For the best results when using n8n-MCP with Claude Projects, use these enhanced system instructions:
Save these instructions in your Claude Project for optimal n8n workflow assistance with intelligent template discovery.
๐จ Important: Sharing Guidelines
This project is MIT licensed and free for everyone to use. However:
โ DO: Share this repository freely with proper attribution
โ DO: Include a direct link to https://github.com/czlonkowski/n8n-mcp in your first post/video
โ DON'T: Gate this free tool behind engagement requirements (likes, follows, comments)
โ DON'T: Use this project for engagement farming on social media
This tool was created to benefit everyone in the n8n community without friction. Please respect the MIT license spirit by keeping it accessible to all.
Features
๐ Smart Node Search: Find nodes by name, category, or functionality
๐ Essential Properties: Get only the 10-20 properties that matter
๐ก Real-World Examples: 2,646 pre-extracted configurations from popular templates
โ Config Validation: Validate node configurations before deployment
๐ค AI Workflow Validation: Comprehensive validation for AI Agent workflows (NEW in v2.17.0!)
Missing language model detection
AI tool connection validation
Streaming mode constraints
Memory and output parser checks
๐ Dependency Analysis: Understand property relationships and conditions
๐ฏ Template Discovery: 2,500+ workflow templates with smart filtering
โก Fast Response: Average query time ~12ms with optimized SQLite
๐ Universal Compatibility: Works with any Node.js version
๐ฌ Why n8n-MCP? A Testimonial from Claude
"Before MCP, I was translating. Now I'm composing. And that changes everything about how we can build automation."
When Claude, Anthropic's AI assistant, tested n8n-MCP, the results were transformative:
Without MCP: "I was basically playing a guessing game. 'Is it scheduleTrigger or schedule? Does it take interval or rule?' I'd write what seemed logical, but n8n has its own conventions that you can't just intuit. I made six different configuration errors in a simple HackerNews scraper."
With MCP: "Everything just... worked. Instead of guessing, I could ask get_node() and get exactly what I needed - not a 100KB JSON dump, but the actual properties that matter. What took 45 minutes now takes 3 minutes."
The Real Value: "It's about confidence. When you're building automation workflows, uncertainty is expensive. One wrong parameter and your workflow fails at 3 AM. With MCP, I could validate my configuration before deployment. That's not just time saved - that's peace of mind."
๐ก Available MCP Tools
Once connected, Claude can use these powerful tools:
Core Tools (7 tools)
tools_documentation- Get documentation for any MCP tool (START HERE!)search_nodes- Full-text search across all nodes. Usesource: 'community'|'verified'for community nodes,includeExamples: truefor configsget_node- Unified node information tool with multiple modes (v2.26.0):Info mode (default):
detail: 'minimal'|'standard'|'full',includeExamples: trueDocs mode:
mode: 'docs'- Human-readable markdown documentationProperty search:
mode: 'search_properties',propertyQuery: 'auth'Versions:
mode: 'versions'|'compare'|'breaking'|'migrations'
validate_node- Unified node validation (v2.26.0):mode: 'minimal'- Quick required fields check (<100ms)mode: 'full'- Comprehensive validation with profiles (minimal, runtime, ai-friendly, strict)
validate_workflow- Complete workflow validation including AI Agent validationsearch_templates- Unified template search (v2.26.0):searchMode: 'keyword'(default) - Text search withqueryparametersearchMode: 'by_nodes'- Find templates using specificnodeTypessearchMode: 'by_task'- Curated templates for commontasktypessearchMode: 'by_metadata'- Filter bycomplexity,requiredService,targetAudience
get_template- Get complete workflow JSON (modes: nodes_only, structure, full)
n8n Management Tools (13 tools - Requires API Configuration)
These tools require N8N_API_URL and N8N_API_KEY in your configuration.
Workflow Management
n8n_create_workflow- Create new workflows with nodes and connectionsn8n_get_workflow- Unified workflow retrieval (v2.26.0):mode: 'full'(default) - Complete workflow JSONmode: 'details'- Include execution statisticsmode: 'structure'- Nodes and connections topology onlymode: 'minimal'- Just ID, name, active status
n8n_update_full_workflow- Update entire workflow (complete replacement)n8n_update_partial_workflow- Update workflow using diff operationsn8n_delete_workflow- Delete workflows permanentlyn8n_list_workflows- List workflows with filtering and paginationn8n_validate_workflow- Validate workflows in n8n by IDn8n_autofix_workflow- Automatically fix common workflow errorsn8n_workflow_versions- Manage version history and rollbackn8n_deploy_template- Deploy templates from n8n.io directly to your instance with auto-fix
Execution Management
n8n_test_workflow- Test/trigger workflow execution:Auto-detects trigger type (webhook, form, chat) from workflow
Supports custom data, headers, and HTTP methods for webhooks
Chat triggers support message and sessionId for conversations
n8n_executions- Unified execution management (v2.26.0):action: 'list'- List executions with status filteringaction: 'get'- Get execution details by IDaction: 'delete'- Delete execution records
System Tools
n8n_health_check- Check n8n API connectivity and features
Example Usage
๐ป Local Development Setup
For contributors and advanced users:
Prerequisites:
Node.js (any version - automatic fallback if needed)
npm or yarn
Git
Development Commands
๐ Documentation
Setup Guides
Installation Guide - Comprehensive installation instructions
Claude Desktop Setup - Detailed Claude configuration
Docker Guide - Advanced Docker deployment options
MCP Quick Start - Get started quickly with n8n-MCP
Feature Documentation
Workflow Diff Operations - Token-efficient workflow updates (NEW!)
Transactional Updates - Two-pass workflow editing
MCP Essentials - AI-optimized tools guide
Validation System - Smart validation profiles
Development & Deployment
Railway Deployment - One-click cloud deployment guide
HTTP Deployment - Remote server setup guide
Dependency Management - Keeping n8n packages in sync
Claude's Interview - Real-world impact of n8n-MCP
Project Information
Change Log - Complete version history
Claude Instructions - AI guidance for this codebase
MCP Tools Reference - Complete list of available tools
๐ Metrics & Coverage
Current database coverage (n8n v2.2.3):
โ 1,084 total nodes - 537 core + 547 community
โ 301 verified community nodes from n8n Strapi API
โ 246 popular npm community packages indexed
โ 470 nodes with documentation (87% core coverage)
โ 265 AI-capable tool variants detected
โ 2,646 pre-extracted template configurations
โ 2,709 workflow templates available (100% metadata coverage)
โ AI Agent & LangChain nodes fully documented
โก Average response time: ~12ms
๐พ Database size: ~70MB (includes templates and community nodes)
๐ Recent Updates
See CHANGELOG.md for complete version history and recent changes.
๐งช Testing
The project includes a comprehensive test suite with 2,883 tests ensuring code quality and reliability:
Test Suite Overview
Total Tests: 2,883 (100% passing)
Unit Tests: 2,526 tests across 99 files
Integration Tests: 357 tests across 20 files
Execution Time: ~2.5 minutes in CI
Test Framework: Vitest (for speed and TypeScript support)
Mocking: MSW for API mocking, custom mocks for databases
Coverage & Quality
Coverage Reports: Generated in
./coveragedirectoryCI/CD: Automated testing on all PRs with GitHub Actions
Performance: Environment-aware thresholds for CI vs local
Parallel Execution: Configurable thread pool for faster runs
Testing Architecture
Total: 3,336 tests across unit and integration test suites
Unit Tests (2,766 tests): Isolated component testing with mocks
Services layer: Enhanced validation, property filtering, workflow validation
Parsers: Node parsing, property extraction, documentation mapping
Database: Repositories, adapters, migrations, FTS5 search
MCP tools: Tool definitions, documentation system
HTTP server: Multi-tenant support, security, configuration
Integration Tests (570 tests): Full system behavior validation
n8n API Integration (172 tests): All 18 MCP handler tools tested against real n8n instance
Workflow management: Create, read, update, delete, list, validate, autofix
Execution management: Trigger, retrieve, list, delete
System tools: Health check, tool listing, diagnostics
MCP Protocol (119 tests): Protocol compliance, session management, error handling
Database (226 tests): Repository operations, transactions, performance, FTS5 search
Templates (35 tests): Template fetching, storage, metadata operations
Docker (18 tests): Configuration, entrypoint, security validation
For detailed testing documentation, see Testing Architecture.
๐ฆ License
MIT License - see LICENSE for details.
Attribution appreciated! If you use n8n-MCP, consider:
โญ Starring this repository
๐ฌ Mentioning it in your project
๐ Linking back to this repo
๐ค Contributing
Contributions are welcome! Please:
Fork the repository
Create a feature branch
Run tests (
npm test)Submit a pull request
๐ For Maintainers: Automated Releases
This project uses automated releases triggered by version changes:
The system automatically handles:
๐ท๏ธ GitHub releases with changelog content
๐ฆ NPM package publishing
๐ณ Multi-platform Docker images
๐ Documentation updates
See Automated Release Guide for complete details.
๐ Acknowledgments
n8n team for the workflow automation platform
Anthropic for the Model Context Protocol
All contributors and users of this project
Template Attribution
All workflow templates in this project are fetched from n8n's public template gallery at n8n.io/workflows. Each template includes:
Full attribution to the original creator (name and username)
Direct link to the source template on n8n.io
Original workflow ID for reference
The AI agent instructions in this project contain mandatory attribution requirements. When using any template, the AI will automatically:
Share the template author's name and username
Provide a direct link to the original template on n8n.io
Display attribution in the format: "This workflow is based on a template by [author] (@[username]). View the original at: [url]"
Template creators retain all rights to their workflows. This project indexes templates to improve discoverability through AI assistants. If you're a template creator and have concerns about your template being indexed, please open an issue.
Special thanks to the prolific template contributors whose work helps thousands of users automate their workflows, including: David Ashby (@cfomodz), Yaron Been (@yaron-nofluff), Jimleuk (@jimleuk), Davide (@n3witalia), David Olusola (@dae221), Ranjan Dailata (@ranjancse), Airtop (@cesar-at-airtop), Joseph LePage (@joe), Don Jayamaha Jr (@don-the-gem-dealer), Angel Menendez (@djangelic), and the entire n8n community of creators!