1
Add it to Claude Code
claude mcp add -e "N8N_URL=${N8N_URL}" -e "N8N_API_KEY=${N8N_API_KEY}" n8n-management -- npx -y @node2flow/n8n-management-mcpRequired:
N8N_URLN8N_API_KEY+ 1 optionalEnvironment Variables
Set these before running n8n Management.
VariableDescriptionRequired
N8N_URLURL of your n8n instanceYesN8N_API_KEYn8n API key for authenticationYesPORTPort for HTTP server (default: 3000)NoAvailable Tools (31)
Once configured, n8n Management gives your AI agent access to:
n8n_list_workflowsList all workflows with status and tagsn8n_get_workflowGet workflow details including nodes and connectionsn8n_create_workflowCreate a new workflown8n_update_workflowUpdate workflow structuren8n_delete_workflowPermanently delete a workflown8n_activate_workflowActivate workflow triggersn8n_deactivate_workflowDeactivate workflow triggersn8n_execute_workflowExecute a workflow with input datan8n_get_workflow_tagsGet tags assigned to a workflown8n_update_workflow_tagsUpdate workflow tagsn8n_list_executionsList execution history filtered by workflown8n_get_executionGet execution details with node outputsn8n_delete_executionDelete an execution recordn8n_retry_executionRetry a failed executionn8n_create_credentialStore API credentialsn8n_update_credentialUpdate credential datan8n_delete_credentialDelete a credentialn8n_get_credential_schemaGet required fields for a credential typen8n_list_tagsList all tagsn8n_get_tagGet tag detailsn8n_create_tagCreate a new tagn8n_update_tagRename a tagn8n_delete_tagDelete a tagn8n_list_variablesList all environment variablesn8n_create_variableCreate a global variablen8n_update_variableUpdate a variable valuen8n_delete_variableDelete a variablen8n_list_usersList all usersn8n_get_userGet user detailsn8n_delete_userDelete a usern8n_update_user_roleChange user roleTry It Out
After setup, try these prompts with your AI agent:
→List all my active workflows and tell me which ones have failed in the last 24 hours.
→Find the workflow named 'Lead Generation' and trigger it with this JSON payload.
→Check the execution history for the 'Data Sync' workflow and retry the last failed execution.
→List all global variables currently defined in my n8n instance.
→Create a new tag called 'Production' and assign it to the 'Main API' workflow.
Prerequisites & system requirements
- An MCP-compatible client (Claude Code, Cursor, Windsurf, Claude Desktop, or Codex)
- Node.js 18+ with npm/npx installed
N8N_URL— URL of your n8n instanceN8N_API_KEY— n8n API key for authentication
Alternative installation methods
HTTP Mode
N8N_URL=https://your-n8n.com N8N_API_KEY=your_key npx @node2flow/n8n-management-mcp --httpKeep this setup from going cold
Save the docs, env vars, and workflow around n8n Management in Conare so Claude Code, Codex, and Cursor remember it next time.