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:
- 📚 532 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
⚠️ 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.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
- Linux:
~/.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).
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.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
- Linux:
~/.config/Claude/claude_desktop_config.json
Restart Claude Desktop after updating configuration - That's it! 🎉
💖 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
.env
file (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 Railway Deployment Guide
Configuration file locations:
- macOS:
~/Library/Application Support/Claude/claude_desktop_config.json
- Windows:
%APPDATA%\Claude\claude_desktop_config.json
- Linux:
~/.config/Claude/claude_desktop_config.json
Restart Claude Desktop after updating configuration - That's it! 🎉
💻 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.
🤖 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 comprehensive validation.
🚨 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 (NEW in v2.4.0)
- 🎯 Task Templates: Pre-configured settings for common automation tasks
- ✅ Config Validation: Validate node configurations before deployment
- 🔗 Dependency Analysis: Understand property relationships and conditions
- 💡 Working Examples: Real-world examples for immediate use
- ⚡ 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 with examples (10-20 properties instead of 200+)search_nodes
- Full-text search across all node documentationsearch_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
Advanced Tools
get_node_for_task
- Pre-configured node settings for common taskslist_tasks
- Discover available task templatesvalidate_node_operation
- Validate node configurations (operation-aware, profiles support)validate_node_minimal
- Quick validation for just required fieldsvalidate_workflow
- Complete workflow validation including AI tool connectionsvalidate_workflow_connections
- Check workflow structure and AI tool connectionsvalidate_workflow_expressions
- Validate n8n expressions including $fromAI()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)
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.103.2):
- ✅ 532/532 nodes loaded (100%)
- ✅ 525 nodes with properties (98.7%)
- ✅ 470 nodes with documentation (88%)
- ✅ 267 AI-capable tools detected
- ✅ 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:
📦 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
👏 Acknowledgments
- n8n team for the workflow automation platform
- Anthropic for the Model Context Protocol
- All contributors and users of this project
This server cannot be installed
A Model Context Protocol server that provides AI assistants with comprehensive access to n8n node documentation, properties, and operations for effective workflow automation.
- Overview
- ⚠️ Important Safety Warning
- 🚀 Quick Start
- 💖 Support This Project
- 💻 Connect your IDE
- 🤖 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
- 📦 License
- 🤝 Contributing
- 👏 Acknowledgments