n8n-mcp-server is a community-driven, open-source Multi-Command Platform (MCP) server designed to facilitate seamless interaction with the n8n workflow automation API. It enables developers and AI assistants (such as VS Code extensions or desktop apps) to manage, execute, and automate n8n workflows through a unified interface.
List all workflows available in the n8n instance.
Get detailed information of a specific workflow by its ID.
Create a new workflow in the n8n instance.
Update an existing workflow with new configuration or nodes.
Delete a workflow from the n8n instance.
Activate a workflow to make it ready for execution.
Deactivate a workflow to stop it from running.
Execute a workflow via the n8n API.
Execute a workflow via a webhook endpoint with optional data payload.
Get details of a specific workflow execution by its ID.
List all executions for a specific workflow.
Stop a currently running workflow execution.
{
"mcpServers": {
// Give your server a unique name
"n8n-local": {
// Use 'node' to execute the built JavaScript file
"command": "node",
// Provide the *absolute path* to the built index.js file
"args": [
"/path/to/your/cloned/n8n-mcp-server/build/index.js"
// On Windows, use double backslashes:
// "C:\\path\\to\\your\\cloned\\n8n-mcp-server\\build\\index.js"
],
// Environment variables needed by the server
"env": {
"N8N_API_URL": "http://your-n8n-instance:5678/api/v1", // Replace with your n8n URL
"N8N_API_KEY": "YOUR_N8N_API_KEY", // Replace with your key
// Add webhook credentials only if you plan to use webhook tools
// "N8N_WEBHOOK_USERNAME": "your_webhook_user",
// "N8N_WEBHOOK_PASSWORD": "your_webhook_password"
},
// Ensure the server is enabled
"disabled": false,
// Default autoApprove settings
"autoApprove": []
}
// ... other servers might be configured here
}
}