n8n MCP Server
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 MCP Serverlist all active workflows"
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 MCP Server
A Model Context Protocol (MCP) server for managing n8n workflows. This server enables AI assistants to interact with your n8n instance to create, update, delete, monitor, and control workflows and executions.
Features
Workflow Management
List workflows - Get all workflows with optional filtering by active status
Get workflow - Retrieve detailed information about a specific workflow
Create workflow - Create new workflows programmatically
Update workflow - Modify existing workflow configurations
Delete workflow - Remove workflows from your n8n instance
Workflow Control
Activate workflow - Enable a workflow to run on triggers
Deactivate workflow - Disable a workflow
Workflow Execution
Execute workflow - Manually trigger a workflow execution
List executions - View execution history with optional workflow filtering
Get execution - Retrieve detailed execution information including results
Delete execution - Remove execution records
Prerequisites
Node.js 18 or higher
n8n instance (self-hosted or cloud)
n8n API key
Installation
Clone this repository:
git clone <repository-url>
cd n8n-mcpInstall dependencies:
npm installBuild the server:
npm run buildConfiguration
Generate n8n API Key
Log in to your n8n instance
Go to Settings > n8n API
Click Create an API Key
Copy the generated API key
Environment Variables
Set the following environment variables:
export N8N_BASE_URL="https://your-n8n-instance.com"
export N8N_API_KEY="your-api-key-here"For n8n cloud:
export N8N_BASE_URL="https://your-instance.app.n8n.cloud"For self-hosted:
export N8N_BASE_URL="http://localhost:5678"Usage with Claude Desktop
Add this server to your Claude Desktop configuration file:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"n8n": {
"command": "node",
"args": ["/absolute/path/to/n8n-mcp/build/index.js"],
"env": {
"N8N_BASE_URL": "https://your-n8n-instance.com",
"N8N_API_KEY": "your-api-key-here"
}
}
}
}Available Tools
Workflow Management
list_workflows
List all workflows with optional active status filter.
Parameters:
active(boolean, optional): Filter by active status
Example:
List all active workflowsget_workflow
Get detailed information about a specific workflow.
Parameters:
id(string, required): Workflow ID
Example:
Get workflow with ID "123"create_workflow
Create a new workflow.
Parameters:
name(string, required): Workflow namenodes(array, required): Workflow nodes configurationconnections(object, optional): Node connectionssettings(object, optional): Workflow settings
Example:
Create a simple workflow named "Test Workflow"update_workflow
Update an existing workflow.
Parameters:
id(string, required): Workflow IDname(string, optional): New workflow namenodes(array, optional): Updated nodesconnections(object, optional): Updated connectionssettings(object, optional): Updated settings
delete_workflow
Delete a workflow.
Parameters:
id(string, required): Workflow ID
Workflow Control
activate_workflow
Activate a workflow to enable trigger-based execution.
Parameters:
id(string, required): Workflow ID
deactivate_workflow
Deactivate a workflow.
Parameters:
id(string, required): Workflow ID
Execution Management
execute_workflow
Manually execute a workflow.
Parameters:
id(string, required): Workflow ID
list_executions
List workflow executions.
Parameters:
workflowId(string, optional): Filter by workflow ID
get_execution
Get detailed execution information.
Parameters:
id(string, required): Execution ID
delete_execution
Delete an execution record.
Parameters:
id(string, required): Execution ID
Development
Watch mode
npm run watchBuild
npm run buildTroubleshooting
API Key Issues
Ensure your API key is valid and has the necessary permissions
For n8n Cloud, you need a paid plan to use the API
Connection Issues
Verify the
N8N_BASE_URLis correct and accessibleCheck that your n8n instance is running
Ensure there are no firewall issues blocking the connection
MCP Server Not Showing
Restart Claude Desktop after configuration changes
Check the Claude Desktop logs for errors
Verify the path to
index.jsis absolute and correct
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- 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/JBrightmanAI/n8n-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server