mcp-n8n
v1.5.0Operate and build n8n: 61 tools, 560-node catalog, validation, autofix, snapshots and backups.
Values you need
| Variable | What it is | |
|---|---|---|
N8N_BASE_URL | required | Base URL of the n8n instance (e.g. https://your-n8n-instance.com) |
N8N_API_KEY | required secret | n8n API key (Settings -> n8n API) |
N8N_TOOLSETS | optional | Comma-separated toolsets to expose: core, builder, admin (default: all) |
npm (npx) discovery passed
Requires Node.js 18+
Run in a terminal
claude mcp add mcp-n8n -e 'N8N_API_KEY=<N8N_API_KEY>' -e 'N8N_BASE_URL=<N8N_BASE_URL>' -- npx -y mcp-n8n@1.5.0Add to
claude_desktop_config.json{
"mcpServers": {
"mcp-n8n": {
"args": [
"-y",
"mcp-n8n@1.5.0"
],
"command": "npx",
"env": {
"N8N_API_KEY": "<N8N_API_KEY>",
"N8N_BASE_URL": "<N8N_BASE_URL>"
}
}
}
}Add to
~/.cursor/mcp.json{
"mcpServers": {
"mcp-n8n": {
"args": [
"-y",
"mcp-n8n@1.5.0"
],
"command": "npx",
"env": {
"N8N_API_KEY": "<N8N_API_KEY>",
"N8N_BASE_URL": "<N8N_BASE_URL>"
}
}
}
}Add to
.vscode/mcp.json{
"inputs": [
{
"description": "N8N_API_KEY",
"id": "n8n-api-key",
"password": true,
"type": "promptString"
},
{
"description": "N8N_BASE_URL",
"id": "n8n-base-url",
"password": true,
"type": "promptString"
}
],
"servers": {
"mcp-n8n": {
"args": [
"-y",
"mcp-n8n@1.5.0"
],
"command": "npx",
"env": {
"N8N_API_KEY": "${input:n8n-api-key}",
"N8N_BASE_URL": "${input:n8n-base-url}"
},
"type": "stdio"
}
}
}Add to
~/.codex/config.toml[mcp_servers.mcp-n8n]
command = "npx"
args = ["-y", "mcp-n8n@1.5.0"]
env = { "N8N_API_KEY" = "<N8N_API_KEY>", "N8N_BASE_URL" = "<N8N_BASE_URL>" }For AI agents
- Ask the user for: N8N_BASE_URL, N8N_API_KEY. Never invent or guess these values; secrets go into the client config, not into chat logs.
- Pick the user's MCP client and apply the matching config from the first install method (it is the one verified by the smoke test when available).
- Restart or reload the client so it starts the server.
- Verify: the server should expose these tools: n8n_create_workflow, n8n_list_workflows, n8n_list_workflows_summary, n8n_get_workflow, n8n_update_workflow, n8n_delete_workflow, n8n_activate_workflow, n8n_deactivate_workflow, ….
- If it fails, check that the required runtime is installed (Node.js 18+) and that the values above are set.
Machine-readable: install.md · manifest.json