mcpField
C
cli-anything-n8n

cli-anything-n8n

github.com/hkudsProductivity57.6k531 installsUpdated 5w ago
Repository

About cli-anything-n8n

cli-anything-n8n is a command-line tool for managing n8n workflows and related objects, for workflow automation and AI agent use. It exposes commands for workflows, executions, credentials, variables, and tags through the n8n API, with structured JSON output.

Key features

  1. 01Create, update, and activate workflows
  2. 02List, delete, and retry executions
  3. 03Create, delete, and transfer credentials
  4. 04Manage variables and tags
  5. 05Configure API connection
  6. 06Structured JSON output

Use cases

  1. 01Maintain n8n workflows from the command line
  2. 02Inspect or retry workflow executions
  3. 03Manage variables, tags, and credentials

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/hkuds/cli-anything --skill cli-anything-n8n

After installing, type/cli-anything-n8nin Claude Code to confirm it loaded.

Details

From the project README

cli-anything-n8n

CLI harness for n8n workflow automation — built with the CLI-Anything pattern. Verified against n8n OpenAPI spec v1.1.1.

Installation

pip install cli-anything-n8n

Configuration

cli-anything-n8n config set base_url https://your-n8n-instance.com
cli-anything-n8n config set api_key your-api-key

# Or environment variables
export N8N_BASE_URL=https://your-n8n-instance.com
export N8N_API_KEY=your-api-key
export N8N_TIMEOUT=60  # optional, default 30s

Command Groups

GroupCommands
workflowlist, get, create, update, delete, activate, deactivate, tags, set-tags, transfer
executionlist, get, delete, retry
credentialcreate, delete, schema, transfer
variablelist, create, update, delete
taglist, get, create, update, delete
configshow, set

For AI Agents

  • Always use --json flag for structured output
  • Use @file.json to pass complex JSON from files
  • Check return codes: 0 = success, non-zero = error
  • All IDs are strings, not integers
  • API key is always masked in config show output
  • Not available in public API: data tables, credential listing, execution stop

Comments

Markdown supported