Provides comprehensive workflow management capabilities for n8n automation platform, including creating, reading, updating, and deleting workflows, managing workflow nodes and connections, and filtering workflows by tags and active status.
n8n MCP Server
Model Context Protocol (MCP) server for n8n workflow automation platform. This server provides AI models with comprehensive access to n8n workflows through a standardized MCP interface.
Quick Start
Prerequisites
n8n instance running (local or remote)
n8n API key (how to get API key)
Node.js 22.10.0 or higher
Installation
Install and run directly using npx (no local clone required):
Using with Claude Desktop
Add this configuration to your Claude Desktop config file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
After saving, restart Claude Desktop. You can now ask Claude to manage your n8n workflows!
Example prompts:
"List all my n8n workflows"
"Create a new workflow called 'Email Automation'"
"Show me the details of workflow ID abc123"
"Update workflow xyz456 to add a new node"
Features
Complete Workflow Management: Create, read, update, and delete n8n workflows
Optimized Responses: Context-efficient data structures for AI model consumption
Flexible Authentication: API key-based authentication
Dual Transport Support: stdio and HTTP transports
Comprehensive Error Handling: Structured error responses with meaningful messages
Configuration
CLI Options
Environment Variables
Alternatively, you can use environment variables:
Development
If you want to develop or contribute to this project:
Available MCP Tools
1. list_workflows
List n8n workflows with optional filtering.
Parameters:
active(boolean, optional): Filter by active statustags(array of strings, optional): Filter by tagslimit(number, optional): Maximum number of workflows to return (1-100)offset(number, optional): Number of workflows to skip
Example:
2. get_workflow
Get detailed information about a specific workflow.
Parameters:
id(string, required): Workflow ID
Example:
3. create_workflow
Create a new workflow.
Parameters:
name(string, required): Workflow namenodes(array, optional): Workflow nodesconnections(object, optional): Node connectionsactive(boolean, optional): Whether workflow is activetags(array of strings, optional): Workflow tags
Example:
4. update_workflow
Update an existing workflow.
Parameters:
id(string, required): Workflow IDname(string, optional): New workflow namenodes(array, optional): Updated workflow nodesconnections(object, optional): Updated node connectionsactive(boolean, optional): Updated active statustags(array of strings, optional): Updated workflow tags
Example:
5. delete_workflow
Delete a workflow.
Parameters:
id(string, required): Workflow ID
Example:
Usage Examples
Using with Claude Desktop
Add to your Claude Desktop configuration:
Using with other MCP clients
The server supports both stdio and HTTP transports:
Development
Project Structure
Scripts
Testing
Error Handling
The server provides structured error responses:
Common error scenarios:
Authentication failures: Invalid API key or n8n instance unreachable
Workflow not found: Invalid workflow ID
Validation errors: Invalid parameters or workflow structure
Network errors: Connection timeouts or API unavailability
Response Optimization
The server optimizes responses for AI model consumption:
Minimized context: Removes unnecessary fields and metadata
Essential information: Preserves critical workflow data
Pagination support: Handles large datasets efficiently
Structured format: Consistent JSON responses
Contributing
Fork the repository
Create a feature branch
Make your changes
Run type checking and build
Submit a pull request
License
MIT License - see LICENSE file for details.