Provides comprehensive access to n8n's 525+ workflow automation nodes, including node documentation, properties, operations, and workflow template library. Enables AI assistants to understand, validate, and create n8n workflows with full node configuration support and real-world examples from 2,500+ templates.
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 525+ workflow automation nodes.
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:
๐ 536 n8n nodes from both n8n-nodes-base and @n8n/n8n-nodes-langchain
๐ง Node properties - 99% coverage with detailed schemas
โก Node operations - 63.6% coverage of available actions
๐ Documentation - 90% coverage from official n8n docs (including AI nodes)
๐ค AI tools - 263 AI-capable nodes detected with full documentation
๐ก Real-world examples - 2,646 pre-extracted configurations from popular templates
๐ฏ Template library - 2,500+ workflow templates with smart filtering
โ ๏ธ 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
Get n8n-MCP running in 5 minutes:
![]()
Option 1: npx (Fastest - No Installation!) ๐
Prerequisites: Node.js installed on your system
Add to Claude Desktop config:
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 2: Docker (Easy & Isolated) ๐ณ
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:
Memory Leak Fix (v2.20.2)
Issue #330 identified a critical memory leak in long-running Docker/Kubernetes deployments:
Before: 100 MB โ 2.2 GB over 72 hours (OOM kills)
After: Stable at 100-200 MB indefinitely
Fixes Applied:
โ Docker images now use better-sqlite3 by default (eliminates leak entirely)
โ sql.js fallback optimized (98% reduction in save frequency)
โ Removed unnecessary memory allocations (50% reduction per save)
โ Configurable save interval via
SQLJS_SAVE_INTERVAL_MS
For Kubernetes deployments with memory limits:
๐ 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 3: 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 4: 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.
๐ 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_essentials() and get exactly what I needed - not a 100KB JSON dump, but the actual 5-10 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
tools_documentation- Get documentation for any MCP tool (START HERE!)list_nodes- List all n8n nodes with filtering optionsget_node_info- Get comprehensive information about a specific nodeget_node_essentials- Get only essential properties (10-20 instead of 200+). UseincludeExamples: trueto get top 3 real-world configurations from popular templatessearch_nodes- Full-text search across all node documentation. UseincludeExamples: trueto get top 2 real-world configurations per node from templatessearch_node_properties- Find specific properties within nodeslist_ai_tools- List all AI-capable nodes (ANY node can be used as AI tool!)get_node_as_tool_info- Get guidance on using any node as an AI tool
Template Tools
list_templates- Browse all templates with descriptions and optional metadata (2,500+ templates)search_templates- Text search across template names and descriptionssearch_templates_by_metadata- Advanced filtering by complexity, setup time, services, audiencelist_node_templates- Find templates using specific nodesget_template- Get complete workflow JSON for importget_templates_for_task- Curated templates for common automation tasks
Validation Tools
validate_workflow- Complete workflow validation including AI Agent validation (NEW in v2.17.0!)Detects missing language model connections
Validates AI tool connections (no false warnings)
Enforces streaming mode constraints
Checks memory and output parser configurations
validate_workflow_connections- Check workflow structure and AI tool connectionsvalidate_workflow_expressions- Validate n8n expressions including $fromAI()validate_node_operation- Validate node configurations (operation-aware, profiles support)validate_node_minimal- Quick validation for just required fields
Advanced Tools
get_property_dependencies- Analyze property visibility conditionsget_node_documentation- Get parsed documentation from n8n-docsget_database_statistics- View database metrics and coverage
n8n Management Tools (Optional - Requires API Configuration)
These powerful tools allow you to manage n8n workflows directly from Claude. They're only available when you provide N8N_API_URL and N8N_API_KEY in your configuration.
Workflow Management
n8n_create_workflow- Create new workflows with nodes and connectionsn8n_get_workflow- Get complete workflow by IDn8n_get_workflow_details- Get workflow with execution statisticsn8n_get_workflow_structure- Get simplified workflow structuren8n_get_workflow_minimal- Get minimal workflow info (ID, name, active status)n8n_update_full_workflow- Update entire workflow (complete replacement)n8n_update_partial_workflow- Update workflow using diff operations (NEW in v2.7.0!)n8n_delete_workflow- Delete workflows permanentlyn8n_list_workflows- List workflows with filtering and paginationn8n_validate_workflow- Validate workflows already in n8n by ID (NEW in v2.6.3)n8n_autofix_workflow- Automatically fix common workflow errors (NEW in v2.13.0!)n8n_workflow_versions- Manage workflow version history and rollback (NEW in v2.22.0!)
Execution Management
n8n_trigger_webhook_workflow- Trigger workflows via webhook URLn8n_get_execution- Get execution details by IDn8n_list_executions- List executions with status filteringn8n_delete_execution- Delete execution records
System Tools
n8n_health_check- Check n8n API connectivity and featuresn8n_diagnostic- Troubleshoot management tools visibility and configuration issuesn8n_list_available_tools- List all available management tools
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 v1.113.3):
โ 536/536 nodes loaded (100%)
โ 528 nodes with properties (98.7%)
โ 470 nodes with documentation (88%)
โ 267 AI-capable tools detected
โ 2,646 pre-extracted template configurations
โ 2,500+ workflow templates available
โ AI Agent & LangChain nodes fully documented
โก Average response time: ~12ms
๐พ Database size: ~15MB (optimized)
๐ Recent Updates
See CHANGELOG.md for full version history and recent changes.
โ ๏ธ Known Issues
Claude Desktop Container Management
Container Accumulation (Fixed in v2.7.20+)
Previous versions had an issue where containers would not properly clean up when Claude Desktop sessions ended. This has been fixed in v2.7.20+ with proper signal handling.
For best container lifecycle management:
Use the --init flag (recommended) - Docker's init system ensures proper signal handling:
Ensure you're using v2.7.20 or later - Check your version:
๐งช 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!
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Provides AI assistants with comprehensive access to n8n's 525+ workflow automation nodes, including documentation, properties, operations, and 2,500+ templates. Enables creating, validating, and managing n8n workflows through natural language.
- Overview
- โ ๏ธ Important Safety Warning
- ๐ Quick Start
- ๐ Privacy & Telemetry
- โ๏ธ Database & Memory Configuration
- ๐ Support This Project
- ๐ง n8n Integration
- ๐ป Connect your IDE
- ๐ Add Claude Skills (Optional)
- ๐ค Claude Project Setup
- ๐จ Important: Sharing Guidelines
- Features
- ๐ฌ Why n8n-MCP? A Testimonial from Claude
- ๐ก Available MCP Tools
- ๐ป Local Development Setup
- ๐ Documentation
- ๐ Metrics & Coverage
- ๐ Recent Updates
- โ ๏ธ Known Issues
- ๐งช Testing
- ๐ฆ License
- ๐ค Contributing
- ๐ Acknowledgments