Supports version control workflows and Git-based project management for n8n workflow development, with documentation mentioning Git workflow guidelines and best practices.
Provides enhanced workflow automation capabilities for n8n, including creating, managing, and deploying workflows, extracting code from nodes for better editing, automatic documentation, and intelligent project organization with built-in templates for common workflow patterns.
McFlow - MCP Server for n8n Workflow Automation
McFlow is a Model Context Protocol (MCP) server that provides enhanced context and automation capabilities for creating and managing n8n workflows. It streamlines workflow development with code extraction, automatic documentation, and intelligent project organization.
Features
- Workflow Management: Create, read, update, and deploy n8n workflows
- Code Extraction: Extract code/SQL/prompts from nodes into separate files for better editing
- Automatic Deployment: Smart injection of file content back into nodes during deployment
- Template Generation: Built-in templates for common workflow patterns
- Multi-Project Support: Handle simple or complex repository structures
- Workflow Analysis: Analyze dependencies, validate structure, and optimize performance
- Auto-Documentation: Automatically maintain workflow documentation
Quick Start
Prerequisites
- Node.js 18+ installed
- n8n instance running (local or remote)
- MCP-compatible client (Claude Desktop, Continue.dev, etc.)
Installation
Configuration
For Claude Desktop
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json
):
For Continue.dev
Add to your Continue configuration:
Basic Usage
Once configured, McFlow provides these commands through your MCP client:
Key Concepts
Code Extraction System
McFlow separates code from workflow JSON for better development:
- Extract: Pull code/SQL/prompts from nodes into
workflows/nodes/
directory - Edit: Use your IDE with full syntax highlighting and tooling
- Deploy: Automatically inject code back into nodes when deploying
Project Structure
McFlow adapts to your repository structure:
Workflow Templates
Built-in templates for common patterns:
webhook-api
- REST API endpoint workflowscheduled-report
- Scheduled data reportsdata-sync
- Database synchronizationerror-handler
- Error handling workflowapproval-flow
- Multi-step approval process
Available Tools
Core Workflow Operations
list
- List all workflows in projectread
- Read workflow JSONcreate
- Create new workflowupdate
- Update existing workflowdelete
- Remove workflow
Deployment & Execution
deploy
- Deploy workflows to n8n (with code injection)export
- Export workflows from n8nexecute
- Run a workflowdeployed
- List deployed workflowsactivate
- Activate/deactivate workflows
Code Management
extract_code
- Extract node content to fileslist_code
- List extracted code filescreate_module
- Create shared code modules
Analysis & Validation
analyze
- Analyze workflow structurevalidate
- Check for common issuesstatus
- Show deployment statuscredentials
- Analyze credential requirements
Development
Troubleshooting
Common Issues
- Workflows not deploying: Ensure you're using
mcflow deploy
, not n8n CLI directly - Code not injecting: Check that extracted files exist in
workflows/nodes/
- Connection errors: Verify n8n is running and accessible
- Missing credentials: Use
mcflow credentials analyze
to check requirements
Debug Mode
Enable debug logging:
Documentation
Getting Started
- Overview - Introduction to McFlow concepts and benefits
- Architecture - Technical architecture and design patterns
- Integration Guide - Setting up with different MCP clients
Development
- Node Reference - Real n8n nodes reference and best practices
- Git Workflow - Version control guidelines and best practices
- Troubleshooting - Common issues and solutions
Operations
- Credentials - Credential security and management
- Common Issues - n8n-specific issues and fixes
AI Agent Documentation
- AI Instructions - Critical instructions for AI agents
- Workflow Guidelines - Workflow creation instructions for AI
- LLM Configuration - LLM parameters for AI nodes
Contributing
Contributions are welcome! Please read our contributing guidelines and submit PRs to the main repository.
License
MIT License - see LICENSE file for details
Support
- GitHub Issues: mcflow-mcp/issues
- Documentation: Check the
docs/
folder for detailed guides
For AI Agents: See docs/ai/instructions.md for critical usage instructions
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
Enables creation, management, and deployment of n8n workflows with enhanced context and automation capabilities. Features code extraction, automatic documentation, template generation, and intelligent project organization for streamlined workflow development.