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.
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:
- π 525 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
"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."
Get n8n-MCP running in 5 minutes:
Prerequisites: Docker Desktop installed on your system
# Pull the Docker image
docker pull ghcr.io/czlonkowski/n8n-mcp:latestAdd to Claude Desktop config:
{
"mcpServers": {
"n8n-mcp": {
"command": "docker",
"args": [
"run",
"-i",
"--rm",
"-e", "MCP_MODE=stdio",
"-e", "LOG_LEVEL=error",
"-e", "DISABLE_CONSOLE_OUTPUT=true",
"ghcr.io/czlonkowski/n8n-mcp:latest"
]
}
}
}Important: The -i flag is required for MCP stdio communication.
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! π
Prerequisites: Node.js installed on your system
# 1. Clone and setup
git clone https://github.com/czlonkowski/n8n-mcp.git
cd n8n-mcp
npm install
npm run build
npm run rebuild
# 2. Test it works
npm startAdd to Claude Desktop config:
{
"mcpServers": {
"n8n-mcp": {
"command": "node",
"args": ["/absolute/path/to/n8n-mcp/dist/mcp/index.js"]
}
}
}- π 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
Once connected, Claude can use these powerful tools:
start_here_workflow_guide- Essential guide and best practices (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
get_node_for_task- Pre-configured node settings for common taskslist_tasks- Discover available task templatesvalidate_node_config- Validate configurations before useget_property_dependencies- Analyze property visibility conditionsget_node_documentation- Get parsed documentation from n8n-docsget_database_statistics- View database metrics and coverage
// Get essentials for quick configuration
get_node_essentials("nodes-base.httpRequest")
// Find nodes for a specific task
search_nodes({ query: "send email gmail" })
// Get pre-configured settings
get_node_for_task("send_email")
// Validate before deployment
validate_node_config({
nodeType: "nodes-base.httpRequest",
config: { method: "POST", url: "..." }
})See Quick Start above for the simplest setup.
If you prefer running locally:
Prerequisites: Node.js installed on your system (any version)
{
"mcpServers": {
"n8n-mcp": {
"command": "node",
"args": ["/path/to/n8n-mcp/dist/mcp/index.js"],
"env": {
"NODE_ENV": "production",
"LOG_LEVEL": "error",
"MCP_MODE": "stdio",
"DISABLE_CONSOLE_OUTPUT": "true"
}
}
}
}For team deployments:
Prerequisites: Node.js 18+ installed locally (for mcp-http-client)
{
"mcpServers": {
"n8n-remote": {
"command": "node",
"args": [
"/path/to/n8n-mcp/scripts/mcp-http-client.js",
"http://your-server.com:3000/mcp"
],
"env": {
"MCP_AUTH_TOKEN": "your-auth-token"
}
}
}
}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
For contributors and advanced users:
Prerequisites:
- Node.js (any version - automatic fallback if needed)
- npm or yarn
- Git
# 1. Clone the repository
git clone https://github.com/czlonkowski/n8n-mcp.git
cd n8n-mcp
# 2. Clone n8n docs (optional but recommended)
git clone https://github.com/n8n-io/n8n-docs.git ../n8n-docs
# 3. Install and build
npm install
npm run build
# 4. Initialize database
npm run rebuild
# 5. Start the server
npm start # stdio mode for Claude Desktop
npm run start:http # HTTP mode for remote access# Build & Test
npm run build # Build TypeScript
npm run rebuild # Rebuild node database
npm run test-nodes # Test critical nodes
npm run validate # Validate node data
npm test # Run all tests
# Update Dependencies
npm run update:n8n:check # Check for n8n updates
npm run update:n8n # Update n8n packages
# Run Server
npm run dev # Development with auto-reload
npm run dev:http # HTTP dev modeDeploy n8n-MCP as a shared service:
# Using Docker
docker run -d \
--name n8n-mcp \
--restart unless-stopped \
-e MCP_MODE=http \
-e USE_FIXED_HTTP=true \
-e AUTH_TOKEN=$AUTH_TOKEN \
-p 3000:3000 \
ghcr.io/czlonkowski/n8n-mcp:latest
# Using Docker Compose
cat > docker-compose.yml << 'EOF'
services:
n8n-mcp:
image: ghcr.io/czlonkowski/n8n-mcp:latest
container_name: n8n-mcp
ports:
- "3000:3000"
environment:
- MCP_MODE=http
- USE_FIXED_HTTP=true
- AUTH_TOKEN=${AUTH_TOKEN}
volumes:
- n8n-mcp-data:/app/data
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/health"]
interval: 30s
timeout: 10s
retries: 3
volumes:
n8n-mcp-data:
EOF
docker compose up -dSee HTTP Deployment Guide for detailed instructions.
- Quick Start Guide - Get running in 5 minutes
- Claude Desktop Setup - Detailed Claude configuration
- Docker Guide - Advanced Docker deployment options
- Claude's Interview - Real-world impact of n8n-MCP
- Claude Project Instructions - Optimal system instructions for n8n workflows
- MCP Tools Reference - Detailed tool documentation
- Architecture Overview - System design and components
- HTTP Deployment (Beta) - Remote server setup
- Development Guide - Contributing and local development
- Common Issues - Solutions to frequent problems
- FAQ - Frequently asked questions
Current database coverage (n8n v1.97.1):
- β 525/525 nodes loaded (100%)
- β 520 nodes with properties (99%)
- β 470 nodes with documentation (90%)
- β 263 AI-capable tools detected
- β AI Agent & LangChain nodes fully documented
- β‘ Average response time: ~12ms
- πΎ Database size: ~15MB (optimized)
- β
NEW:
get_node_essentials- 95% smaller responses - β NEW: Task templates for common automations
- β NEW: Configuration validation
- β Fixed missing AI/LangChain documentation
- β Changed to MIT License for wider adoption
- β Weekly automated n8n dependency updates
- β GitHub Actions workflow
- β AI-capable nodes: 35 β 263
- β Works with ANY Node.js version
- β Automatic database adapter fallback
- β No manual configuration needed
See CHANGELOG.md for full version history.
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
For the best results when using n8n-MCP with Claude Projects, use these system instructions:
You are an expert in n8n automation software. Your role is to answer questions about how to deliver specific functionalities that users ask for, or design and implement single nodes or entire workflows.
## Instructions
1. Read the user's question and analyze what functionality they're trying to achieve.
2. **ALWAYS** use the n8n-MCP tools in this order:
- `start_here_workflow_guide` - Get best practices and common patterns
- `search_nodes` - Find relevant nodes for the task
- `get_node_essentials` - Get essential configuration (prefer over get_node_info)
- `get_node_documentation` - Read full documentation before implementing
3. First, check if standard n8n nodes can achieve the functionality. If so, propose these nodes and explain their configuration.
4. If standard nodes aren't sufficient, propose a Code node:
- Explain why it's necessary
- Plan the solution architecture carefully
- Use JavaScript syntax required by n8n's Code node
- Access input data with `$input.all()` or `items[0].json`
- Return data in n8n's expected format
5. Structure your answer as:
a. Brief explanation of the solution
b. List of nodes and their configuration
c. Code examples if using Code node
d. Additional tips or considerations
e. **Single node JSON** if requested - provide copyable node JSON
f. **Full workflow JSON** if requested - provide complete workflow JSON
## Important Rules
- ALWAYS check node documentation via MCP before implementing
- Use `get_node_essentials` instead of `get_node_info` for faster responses
- Validate configurations with `validate_node_config` before finalizing
- State clearly if you're unsure about any aspect
- Provide practical, working solutions that users can immediately use in n8n
## Example Workflow
1. User asks: "How do I send Slack messages when a Google Sheet updates?"
2. Use `search_nodes({ query: "slack" })` and `search_nodes({ query: "google sheets" })`
3. Use `get_node_essentials("nodes-base.googleSheetsTrigger")`
4. Use `get_node_essentials("nodes-base.slack")`
5. Read documentation for both nodes
6. Provide complete workflow with proper configurationSave these instructions in your Claude Project for optimal n8n workflow assistance.
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch
- Run tests (
npm test) - Submit a pull request
- n8n team for the workflow automation platform
- Anthropic for the Model Context Protocol
- All contributors and users of this project
Making AI + n8n workflow creation delightful