n8n Automation MCP Server
Provides comprehensive tools for automating n8n instances, including workflow management, execution diagnostics and retries, credential management, environment variables, tags, and user administration.
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@n8n Automation MCP ServerCreate an n8n workflow that sends a Slack message on new webhook."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
⚡ n8n Automation MCP Server
Enterprise-Grade Model Context Protocol (MCP) Server for Complete n8n Instance Automation
n8n Automation MCP Server turns Large Language Models (LLMs) in Claude Desktop, Cursor AI, Windsurf, and VS Code into full-stack n8n automation engineers.
With 34 production-ready tools, this MCP server empowers AI agents to autonomously build workflows, debug failed executions, manage credentials, configure environment variables, manage tags, and monitor self-hosted or cloud n8n instances in real time.
🎯 High-Rank Keywords & SEO Overview
Keywords:
n8n MCP server,n8n REST API automation,Model Context Protocol,Claude Desktop n8n tool,Cursor AI n8n workflow builder,n8n execution debugger,AI workflow orchestrator,self-hosted n8n management,n8n credential manager,n8n workflow export import.
Related MCP server: n8n Workflow Builder
✨ Key Features
Feature | Description |
🤖 34 Dedicated MCP Tools | Complete coverage of the n8n REST API v1 for Workflows, Executions, Credentials, Tags, Variables, and Users. |
💡 Node Templates & Snippets | Built-in |
📦 Export & Import Workflows | Backup, share, or version-control workflows seamlessly between local and cloud n8n instances. |
⚡ Execution Diagnostics & Retries | Filter error logs, inspect node input/output payloads, stop stuck runs, or trigger single-click execution retries ( |
🔒 Enterprise Security & Clean Logs | Sensitive credential payloads are automatically masked in responses. Zero unhandled server crashes on startup. |
🚀 Lightning-Fast Builds | Built with |
📐 Architecture
flowchart LR
subgraph AI Clients
A[Claude Desktop]
B[Cursor AI]
C[Windsurf / VS Code]
end
subgraph MCP Protocol
D[n8n Automation MCP Server]
end
subgraph n8n Ecosystem
E[(n8n Self-Hosted / Cloud)]
F[Workflows Engine]
G[Executions Log]
H[Credentials Store]
I[Instance Variables]
end
A <-->|stdio Transport| D
B <-->|stdio Transport| D
C <-->|stdio Transport| D
D <-->|n8n v1 REST API / X-N8N-API-KEY| E
E --> F
E --> G
E --> H
E --> I🚀 Quick Start
1. Prerequisites
Node.js:
v18.0.0or highern8n Instance: Self-hosted (
http://localhost:5678) or n8n Cloud (https://your-instance.app.n8n.cloud)n8n API Key: Get it from n8n > Settings > API > Create API Key
2. Clone & Install
git clone https://github.com/SohailShabbir867/n8n_mcp.git
cd n8n_mcp
npm install3. Environment Setup
Create a .env file in the project root:
N8N_BASE_URL=http://localhost:5678
N8N_API_KEY=your_n8n_api_key_here4. Build
npm run build💻 Claude Desktop & Cursor Setup
⚙️ Claude Desktop Configuration
Add the server entry to your %APPDATA%\Claude\claude_desktop_config.json (Windows) or ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):
{
"mcpServers": {
"n8n-automation": {
"command": "node",
"args": ["C:/path/to/n8n_mcp/dist/index.js"],
"env": {
"N8N_BASE_URL": "http://localhost:5678",
"N8N_API_KEY": "your_n8n_api_key_here"
}
}
}
}⚡ Cursor / Windsurf Configuration
Navigate to Cursor Settings > Features > MCP Servers and click Add New MCP Server:
Name:
n8n-automationType:
commandCommand:
node C:/path/to/n8n_mcp/dist/index.js
🛠️ Tool Reference (34 Complete Tools)
📦 Workflows (11 Tools)
Tool Name | Description | Key Parameters |
| List workflows with filtering by status, name, tags |
|
| Get node graph, connections, and settings by ID |
|
| Create a new workflow graph with nodes |
|
| Update workflow graph, nodes, tags, or settings |
|
| Permanently delete a workflow |
|
| Enable auto-trigger execution |
|
| Pause auto-trigger execution |
|
| Create an exact copy of a workflow |
|
| Export workflow as formatted JSON structure |
|
| Import workflow graph from JSON definition |
|
| Get JSON templates for Webhook, OpenAI, Slack, etc. |
|
⚡ Executions (6 Tools)
Tool Name | Description | Key Parameters |
| Search execution logs by status & workflow ID |
|
| Inspect node-by-node payload inputs & outputs |
|
| Remove an execution record |
|
| Manually trigger execution with payload |
|
| Retry a failed execution run |
|
| Stop or cancel an active running execution |
|
🔑 Credentials (6 Tools)
Tool Name | Description | Key Parameters |
| List saved auth credential metadata |
|
| Inspect credential type & dates (secrets masked) |
|
| Save a new credential object |
|
| Update name, type, or data of a credential |
|
| Delete a saved credential |
|
| Search available credential types ( |
|
🌐 Instance Variables (4 Tools)
Tool Name | Description | Key Parameters |
| List custom environment variables |
|
| Create a key-value instance variable |
|
| Update variable key or value |
|
| Delete an environment variable |
|
🏷️ Tags (4 Tools)
Tool Name | Description | Key Parameters |
| List all workflow tags |
|
| Create a new tag |
|
| Rename an existing tag |
|
| Delete a tag |
|
🛡️ System & Users (3 Tools)
Tool Name | Description | Key Parameters |
| Test connection latency & API authentication | None |
| List registered n8n users |
|
| View user profile details by ID |
|
💡 Example AI Prompts
Try asking Claude or Cursor AI these automation tasks:
"Test connection to my n8n server and report API latency.""Create an active workflow named 'Daily AI Summary' with a Schedule Trigger running at 9am and an OpenAI node.""Find all failed executions from today, inspect node errors, and retry the failed run.""Export workflow ID 'wK82x9L' to a JSON string so I can save it.""Create an n8n variable named 'ENVIRONMENT' with value 'production'."🔍 Troubleshooting & FAQ
🤝 Contributing
Contributions, feature suggestions, and pull requests are warmly welcome!
Fork the Project
Create your Feature Branch (
git checkout -b feature/AmazingFeature)Commit your Changes (
git commit -m 'Add some AmazingFeature')Push to the Branch (
git push origin feature/AmazingFeature)Open a Pull Request
📜 License
Distributed under the MIT License. See LICENSE for more information.
Made with ❤️ by Sohail Shabbir
⭐ Star this repository if you find it helpful!
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- -license-quality-maintenanceProvides seamless integration between MCP-compatible AI assistants and n8n workflow automation, enabling intelligent management and automation of n8n workflows through natural language.5
- Alicense-qualityDmaintenanceEnables AI assistants to manage n8n automation workflows through natural language commands, including creating, executing, monitoring, and organizing workflows with full CRUD operations and execution management.1122MIT
- Alicense-qualityDmaintenanceProvides AI assistants with direct access to the n8n automation platform to manage and execute workflows, variables, and credentials. It features 18 integrated tools that allow for seamless automation management via the Model Context Protocol.1593MIT
- AlicenseBqualityDmaintenanceA comprehensive MCP server that provides full control over n8n automation workflows through natural language. It offers 43 tools for managing workflows, executions, credentials, and data tables, with safety features like write-mode protection and double-validated workflow creation.431MIT
Related MCP Connectors
Free public MCP for AI agents — 193 tools, 44 workflows. No API key.
Create, browse, remix, collaborate on, and run durable AI workflow nodes from MCP hosts.
Self-hosted MCP gateway: turn any API, database or MCP server into AI connectors — no code.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/SohailShabbir867/n8n_mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server