← Back to n8n Management

Install n8n Management

Pick your client, copy the command, done.

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-mcp
Required:N8N_URLN8N_API_KEY+ 1 optional

Environment Variables

Set these before running n8n Management.

VariableDescriptionRequired
N8N_URLURL of your n8n instanceYes
N8N_API_KEYn8n API key for authenticationYes
PORTPort for HTTP server (default: 3000)No

Available Tools (31)

Once configured, n8n Management gives your AI agent access to:

n8n_list_workflowsList all workflows with status and tags
n8n_get_workflowGet workflow details including nodes and connections
n8n_create_workflowCreate a new workflow
n8n_update_workflowUpdate workflow structure
n8n_delete_workflowPermanently delete a workflow
n8n_activate_workflowActivate workflow triggers
n8n_deactivate_workflowDeactivate workflow triggers
n8n_execute_workflowExecute a workflow with input data
n8n_get_workflow_tagsGet tags assigned to a workflow
n8n_update_workflow_tagsUpdate workflow tags
n8n_list_executionsList execution history filtered by workflow
n8n_get_executionGet execution details with node outputs
n8n_delete_executionDelete an execution record
n8n_retry_executionRetry a failed execution
n8n_create_credentialStore API credentials
n8n_update_credentialUpdate credential data
n8n_delete_credentialDelete a credential
n8n_get_credential_schemaGet required fields for a credential type
n8n_list_tagsList all tags
n8n_get_tagGet tag details
n8n_create_tagCreate a new tag
n8n_update_tagRename a tag
n8n_delete_tagDelete a tag
n8n_list_variablesList all environment variables
n8n_create_variableCreate a global variable
n8n_update_variableUpdate a variable value
n8n_delete_variableDelete a variable
n8n_list_usersList all users
n8n_get_userGet user details
n8n_delete_userDelete a user
n8n_update_user_roleChange user role

Try 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 instance
  • N8N_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 --http

Keep 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.

Remember this setup