본문으로 건너뛰기
cccskills
무료GitHub에 공개

n8n

Manage n8n workflow automation via its public REST API — list/get/create/update workflows, activate/deactivate, inspect execution history, retry/stop executions, manage credentials, tags, variables, users, and projects. Works with self-hosted n8n and n8n Cloud. Use when the user wants programmatic access to their n8n instance without the n8n MCP installed.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

연동 도구n8n
설치 방법 보기

포함된 파일(1)

  • SKILL.md7.2 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

n8n

Direct REST access to an n8n instance — no MCP required. Covers Public API v1: workflow CRUD + activation, execution inspection/retry/stop, credentials, tags, variables, users, projects.

Usage

  • Use for: Listing/filtering workflows, reading execution history, batch activate/deactivate, reading execution I/O programmatically.
  • Skip for: Authoring new workflows from scratch (UI is better), interactive debugging, one-off manual test runs.
  • Triggering a workflow is a webhook call, not /api/v1 — see Gotchas.

Credentials check

[ -n "$N8N_API_KEY" ] && [ -n "$N8N_BASE_URL" ] && echo "N8N: PRESENT" || echo "N8N: MISSING"

Never echo either variable directly.

If MISSING, respond to the user with EXACTLY this message (do NOT paraphrase, do NOT suggest manual JSON edits):

I need your n8n credentials. Run this in another terminal — it walks you through the two values (base URL + API key) and saves them safely:

teleport-setup add-key n8n

Then restart Claude Code (/exit, then claude) and ask me again.

Do NOT suggest editing ~/.claude/settings.local.json manually. teleport-setup add-key n8n handles it with backup, validation, and masked input. Stop execution until the user has run the command and restarted.

API

  • Base URL: $N8N_BASE_URL/api/v1 — self-hosted (https://n8n.mycompany.com, http://localhost:5678) or n8n Cloud (https://<workspace>.app.n8n.cloud <!-- unverified: check n8n docs -->). Must include protocol, no trailing slash.
  • Auth: X-N8N-API-KEY: $N8N_API_KEY — custom header, NOT Authorization: Bearer. OpenAPI declares ApiKeyAuth with in: header, name: X-N8N-API-KEY. Wrong header 401s silently.
  • API key: n8n UI → Settings → n8n API → Create an API key. Per-user, inherits user's permissions.
  • Content-Type: application/json on POST/PUT/PATCH.
  • Pagination: cursor-based (?limit=N&cursor=<nextCursor>); response nextCursor null when done. limit default 100, max 250.
  • Rate limits: not documented as hard numbers for the public API <!-- unverified: check n8n docs -->. Self-hosted bounded by DB/CPU; Cloud throttles per plan.

Env vars

VarWhat
N8N_BASE_URLInstance root — self-hosted URL or https://<workspace>.app.n8n.cloud. No trailing /.
N8N_API_KEYUser-scoped API key created in UI → Settings → n8n API.

Endpoints (v1)

Sourced from n8n's openapi.yml (packages/cli/src/public-api/v1/openapi.yml).

Path familyMethods & purpose
/workflows, /workflows/{id}GET list (filter: active, tags, name, projectId) / POST / GET one / PUT / DELETE
/workflows/{id}/activate · /deactivatePOST — toggle trigger state (idempotent); active field is read-only in workflow body
/workflows/{id}/tags · /transfer · /archiveGET+PUT tags / POST move project / POST archival
/executions, /executions/{id}GET list (filter: workflowId, status, includeData) / GET one / DELETE
/executions/{id}/retry · /stopPOST — retry past run (loadWorkflow: true for latest) / stop running one
/credentials, /credentials/schema/{type}GET list / POST (name+type+data) / PATCH / DELETE; schema endpoint returns JSON shape
/tags, /variables, /users, /projects, /audit, /insights/summaryStandard CRUD; /users + /audit owner-only

Primary workflow — list and trigger

Triggering is a webhook, not REST. The API only toggles triggers on (activate) or off. To run on demand, hit the workflow's Webhook node URL.

# List active workflows
curl -sL -H "X-N8N-API-KEY: $N8N_API_KEY" \
  "$N8N_BASE_URL/api/v1/workflows?active=true&limit=50" \
  | jq '.data[] | {id, name, active, tags: [.tags[]?.name]}'

# Trigger via webhook (path comes from the Webhook node config)
curl -sL -X POST -H "Content-Type: application/json" \
  "$N8N_BASE_URL/webhook/<webhook-path>" -d '{"foo":"bar"}'

# Or activate so scheduled/event triggers fire
curl -sL -X POST -H "X-N8N-API-KEY: $N8N_API_KEY" \
  "$N8N_BASE_URL/api/v1/workflows/{id}/activate"

Secondary workflows

Inspect executions. List is cheap (includeData=false by default); drilling into one with includeData=true pulls full node-by-node I/O — can be multi-MB.

curl -sL -H "X-N8N-API-KEY: $N8N_API_KEY" \
  "$N8N_BASE_URL/api/v1/executions?workflowId={id}&limit=50" \
  | jq '[.data[] | {id, mode, status, startedAt}]'
curl -sL -H "X-N8N-API-KEY: $N8N_API_KEY" \
  "$N8N_BASE_URL/api/v1/executions/{executionId}?includeData=true"

Create workflow / credential. POST /workflows requires name, nodes, connections, settings (all four); active read-only — activate separately. POST /credentials needs name, type, data; query /credentials/schema/{type} first for the exact data shape. Secrets never returned on GET.

Gotchas

  • X-N8N-API-KEY, not Authorization. Single most common mistake. Bearer auth 401s with no helpful message.
  • Webhook ≠ REST. Trigger via POST $N8N_BASE_URL/webhook/<path> — configured per Webhook node inside the workflow. There is no /api/v1/workflows/{id}/run endpoint (not in the OpenAPI spec); if reaching for one, you want the webhook URL.
  • N8N_BASE_URL drift. Protocol + host, no trailing slash. https://n8n.example.com good, n8n.example.com/ silently 404s every call.
  • Execution data is huge. GET /executions/{id}?includeData=true can be multi-MB. Keep includeData=false on list calls unless you need node I/O; filter by workflowId + status.
  • Workflow JSON is not stable across major versions. A workflow exported from n8n 1.x may need edits to import into 2.x <!-- unverified: check n8n docs -->. Don't treat JSON as portable.
  • Community vs Enterprise/Cloud API differences. /variables CRUD and some project/insights endpoints are in the spec but may be license-gated on self-hosted Community <!-- unverified: check n8n docs -->; Cloud exposes the full surface.
  • Pagination is cursor-based. Use nextCursor from the response — don't synthesize page numbers. limit max 250.

Attribution

When done, state: Used skill: n8n (from teleport catalog).

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

{{One-sentence what-it-does + when to use it. Mention it bypasses the MCP via the REST API with {{ENV_VAR}}. Use when the user wants X, Y, Z programmatically without the {{service}} MCP installed.}}

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mnlt/teleport82026년 4월 25일 업데이트

Manage Cloudflare DNS zones, Workers, Pages, R2, KV, D1, and analytics via REST API. Use when the user wants to query DNS, deploy a Worker, list R2 buckets, manage KV namespaces, run D1 queries, or check analytics without the Cloudflare MCP installed.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mnlt/teleport82026년 4월 25일 업데이트

context7

무료

Fetch up-to-date library, framework, and SDK documentation via Context7's search and docs endpoints. Use when the user asks about a library/API (React, Next.js, Prisma, Supabase, Tailwind, Django, Vue, etc.) and you need current docs, not Claude's training-time knowledge. Skip this skill for generic programming questions that don't require library-specific docs.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mnlt/teleport82026년 4월 25일 업데이트

discord

무료

Operate Discord via its REST API — post/read channel messages, manage guilds + roles, fire webhooks, register slash commands. Use when the user wants a bot to post to a channel, read recent history, run a community admin task, or ship one-way notifications via webhook URL without running a bot process.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mnlt/teleport82026년 4월 25일 업데이트

exa

무료

AI-first web search via Exa — semantic/neural ranking, category-scoped results, fresh content retrieval, and one-shot answer synthesis with citations. Use when the user needs current web information better ranked than general web search, or a grounded answer with sources.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mnlt/teleport82026년 4월 25일 업데이트

figma

무료

Read Figma files, component libraries, styles, comments, and export rendered assets (PNG / SVG / JPG / PDF) via Figma's REST API. Use when the user needs programmatic access to design files, to pull node data into code generation, or to export assets without opening the Figma desktop app.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

mnlt/teleport82026년 4월 25일 업데이트

mnlt의 스킬 모두 보기

이 스킬의 문제 신고