n8n MCP Server
Enables full workflow automation management in n8n through 40+ tools covering workflows, executions, credentials, tags, variables, projects, users, and source control operations.
README
n8n MCP Server
A comprehensive MCP (Model Context Protocol) server for n8n workflow automation. This connector provides Claude Desktop with ALL available n8n API operations, enabling full workflow management directly from Claude.
Features
Unlike the limited default connector, this server includes 40+ tools covering:
Workflow Management
n8n_list_workflows- List all workflows with filteringn8n_get_workflow- Get full workflow details including nodes and connectionsn8n_create_workflow- Create new workflows with nodes and connectionsn8n_update_workflow- Update existing workflowsn8n_delete_workflow- Delete workflowsn8n_activate_workflow- Activate a workflown8n_deactivate_workflow- Deactivate a workflown8n_run_workflow- Execute a workflow manuallyn8n_update_workflow_tags- Update workflow tag associationsn8n_duplicate_workflow- Create a copy of a workflown8n_export_workflow- Export workflow as JSONn8n_import_workflow- Import workflow from JSONn8n_transfer_workflow- Transfer workflow to another project
Execution Management
n8n_list_executions- List workflow executions with filteringn8n_get_execution- Get detailed execution informationn8n_delete_execution- Delete a single executionn8n_delete_executions- Bulk delete executionsn8n_stop_execution- Stop a running executionn8n_retry_execution- Retry a failed execution
Credential Management
n8n_list_credentials- List all credentialsn8n_get_credential- Get credential detailsn8n_create_credential- Create new credentialsn8n_update_credential- Update existing credentialsn8n_delete_credential- Delete credentialsn8n_get_credential_schema- Get required fields for credential typen8n_transfer_credential- Transfer credential to another project
Tag Management
n8n_list_tags- List all tagsn8n_get_tag- Get tag detailsn8n_create_tag- Create new tagsn8n_update_tag- Rename tagsn8n_delete_tag- Delete tags
Variable Management
n8n_list_variables- List all environment variablesn8n_get_variable- Get variable detailsn8n_create_variable- Create new variablesn8n_update_variable- Update variablesn8n_delete_variable- Delete variables
Project Management
n8n_list_projects- List all projectsn8n_get_project- Get project detailsn8n_create_project- Create new projectsn8n_update_project- Rename projectsn8n_delete_project- Delete projects
User Management
n8n_list_users- List all usersn8n_get_user- Get user detailsn8n_get_current_user- Get current authenticated user
Source Control (Git)
n8n_source_control_status- Get Git statusn8n_source_control_pull- Pull changes from remoten8n_source_control_push- Push changes to remoten8n_source_control_disconnect- Disconnect Git integration
Security & Utilities
n8n_check_connection- Test API connectionn8n_generate_audit- Generate security audit reportn8n_get_node_types- List available node typesn8n_get_active_webhooks- List active webhooks
Installation
Prerequisites
- Node.js 18 or later
- n8n instance with API access enabled
- n8n API key (generate in n8n Settings → API)
Setup
-
Clone or download this project:
git clone git@github.com:DrBalls/n8n-mcp-server-v2.git cd n8n-mcp-server-v2 -
Install dependencies:
npm install -
Build the project:
npm run build -
Configure Claude Desktop:
Add to your Claude Desktop configuration file:
macOS:
~/Library/Application Support/Claude/claude_desktop_config.jsonWindows:%APPDATA%\Claude\claude_desktop_config.json{ "mcpServers": { "n8n": { "command": "node", "args": ["/absolute/path/to/n8n-mcp-server-v2/dist/index.js"], "env": { "N8N_URL": "http://localhost:5678", "N8N_API_KEY": "your-api-key-here" } } } } -
Restart Claude Desktop
Configuration
Environment Variables
| Variable | Description | Default |
|---|---|---|
N8N_URL |
Base URL of your n8n instance | http://localhost:5678 |
N8N_API_KEY |
Your n8n API key | (required) |
Getting an API Key
- Open your n8n instance
- Go to Settings → API
- Click Create API Key
- Copy the generated key
Usage Examples
Create a Simple Workflow
Create a new n8n workflow called "Hello World" with:
1. A manual trigger node
2. A Set node that outputs {"message": "Hello, World!"}
List and Filter Workflows
Show me all active workflows tagged with "production"
Run a Workflow with Input
Execute workflow ID abc123 with input data: {"email": "test@example.com"}
Manage Credentials
List all Slack credentials and show me the schema for creating new ones
Check Execution Status
Show me the last 10 failed executions and their error messages
Source Control
What's the current Git status? Are there any unpushed changes?
Common Node Types
When creating workflows, use these node type identifiers:
| Node | Type String |
|---|---|
| Manual Trigger | n8n-nodes-base.manualTrigger |
| Schedule Trigger | n8n-nodes-base.scheduleTrigger |
| Webhook | n8n-nodes-base.webhook |
| HTTP Request | n8n-nodes-base.httpRequest |
| Code (JavaScript) | n8n-nodes-base.code |
| Set | n8n-nodes-base.set |
| IF | n8n-nodes-base.if |
| Switch | n8n-nodes-base.switch |
| Merge | n8n-nodes-base.merge |
| Split In Batches | n8n-nodes-base.splitInBatches |
| Wait | n8n-nodes-base.wait |
| No Operation | n8n-nodes-base.noOp |
Troubleshooting
Connection Failed
- Verify your
N8N_URLis correct and accessible - Check that your API key is valid
- Ensure n8n API access is enabled in settings
Permission Denied
- Your API key may not have sufficient permissions
- Check if the API user has access to the requested resource
Workflow Not Found
- Verify the workflow ID is correct
- Check if the workflow exists in the specified project
Development
Building
npm run build
Testing Connection
After building, test the connection:
N8N_URL=http://localhost:5678 N8N_API_KEY=your-key node dist/index.js
License
MIT
Contributing
Contributions are welcome! Please feel free to submit issues or pull requests.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。