본문으로 건너뛰기
Skillpedia
에이전트48k · #5274

n8n-multi-instance

하는 일

이 도구는 n8n이 실행 중인 여러 환경(운영, 스테이징, 고객별 환경 등)을 관리하고 그 사이를 전환하도록 해 줍니다. 특히 접근 정보를 다룰 때, 중요한 변경을 하기 전에 올바른 곳에 있는지 확인하도록 보장합니다.

사용하는 경우

  • ✓특정 n8n 환경(예: 운영 환경 대 스테이징 환경)의 데이터를 접근하거나 수정해야 할 때.
  • ✓접근 정보(자격 증명)를 추가, 수정, 삭제하기 전에 올바른 곳으로 가는지 확인할 때.
  • ✓잘못된 n8n 환경에 연결되어 있다고 의심되고 결과가 맞지 않을 때.

스킬 링크

https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/n8n-multi-instance/SKILL.md

복사해서 AI(Claude, ChatGPT, Cursor)에 붙여넣고 지침을 따르도록 요청하세요.

사용 방법

가장 쉬운 방법입니다. 메시지를 복사해 AI에 붙여넣으세요. AI가 스킬을 읽고 지침을 따릅니다.

바로 붙여넣을 수 있는 메시지

Use this skill to help me: https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/n8n-multi-instance/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
AI가 이런 스킬을 알아서 찾아 쓰길 원하시나요?무료 Skillpedia MCP를 설치하세요. 한 줄이면 작업마다 스킬 15,000+개 중에서 검색합니다.1분 만에 설치 →

AI에게 요청하는 예시

“n8n 운영 환경으로 전환하고 싶습니다.”

매주 새 스킬 5개. 읽는 데 1분.

작동 방식

명령을 사용해 사용 가능한 환경을 나열하고, 작업할 환경을 선택합니다. 민감한 작업을 하기 전에 도구가 현재 활성화된 환경을 다시 확인해 오류를 방지합니다.

기술 내용 (원본 SKILL.md)

작성자의 영어 원문을 GitHub에서 그대로 가져왔습니다.

Working with multiple n8n instances over MCP

When to Use

Use this skill whenever one MCP connection can target multiple n8n instances, before instance-specific reads or writes, and whenever results suggest the session is aimed at the wrong environment.

Resolve the target by stable instance ID, verify it with a read-only health check, and state the resolved environment before mutations. Require explicit confirmation for credential create/update/delete operations, never print secret values, and stop on ambiguous targeting rather than guessing.

When the n8n_instances tool is available, the user has multi-instance mode on: one MCP connection can reach several n8n instances (e.g. prod, staging, or one per client/team). Every other n8n tool (n8n_get_workflow, n8n_list_workflows, n8n_update_partial_workflow, n8n_manage_datatable, n8n_manage_credentials, n8n_executions, n8n_test_workflow, …) runs against whichever instance this session is currently targeting. There is no per-call instance argument: you change the target only by switching. Target the wrong instance and a read returns the wrong data and a write lands in the wrong place — usually with no error (the one exception is an ambiguous credential write, which fails closed; see below). So target deliberately.

If the n8n_instances tool is not present, the account is single-instance: ignore this skill and use the n8n tools directly.

Golden rules

Six rules. Each prevents a class of silent misroute.

  1. Discover first. Call n8n_instances({mode:"list"}) before acting so you know the instance names and which one is current.
  2. Switch by name to your target before doing work on a non-default instance: n8n_instances({mode:"switch", name:"<instance name>"}). The match is case-insensitive.
  3. Switch in its own turn. Never put a switch and a dependent operation in the same parallel tool-call batch. Calls in one batch have no guaranteed order, so the dependent call can be resolved against the previous instance before the switch's session state is visible. Switch, let it return, then operate.
  4. Verify before high-stakes ops. Immediately before creating/updating/deleting credentials (and before destructive workflow edits), confirm current is the instance you intend — primary check is n8n_instances({mode:"list"}). The system fail-closes only the ambiguous credential case (rule 6); an explicit switch to the wrong instance still writes there silently, so this check is on you.
  5. An unexpected NOT_FOUND is almost always a wrong-instance misroute, not a deletion. Don't recreate the object. Re-check the current instance and retry (see Recovery).
  6. On INSTANCE_AMBIGUOUS, switch on this session, then retry. The system is refusing to write a secret because this session never picked a target itself. Comply — run switch here to confirm the instance, then retry the write. Don't work around it or retry blindly.

Core workflow

1. n8n_instances({mode:"list"})                      # see available[] + current + default
2. n8n_instances({mode:"switch", name:"prod"})       # bind THIS session to "prod"
   → returns { previous, current }; confirm current.name == "prod"
3. (do your work) n8n_list_workflows / n8n_get_workflow / n8n_manage_datatable / ...
4. Before a credential write or a delete:
   n8n_instances({mode:"list"})  → re-confirm current, THEN n8n_manage_credentials({action:"create", ...})

To move to another instance, just switch again. The whole session follows the switch.

The n8n_instances tool

Two modes (mode is required and enum-validated):

  • {mode:"list"} → { current, default, available }, no side effects.
    • current and default are each one instance { id, name, url, isDefault } (or null).
    • available is every instance, each with an extra isCurrent boolean. Match by name; never hard-code id.
  • {mode:"switch", name:"<name>"} → { previous, current }, and binds this session to the named instance. name is case-insensitive.

Error envelope (from the n8n_instances tool)

Every error returns { error: "<CODE>", message, … }. The ones you'll actually hit:

Code When What to do
UNKNOWN_INSTANCE name matches no instance Pick a name from the available list in the error payload and retry.

…

자주 묻는 질문

잘못된 환경에서 자격 증명을 수정하려 하면 어떻게 되나요?

환경이 분명하지 않으면 도구가 작업을 차단해 접근 정보가 잘못된 곳에 저장되지 않도록 합니다. 계속하기 전에 환경을 명시적으로 확인해야 합니다.

내가 어떤 n8n 환경에 연결되어 있는지 어떻게 아나요?

사용 가능한 모든 환경과 현재 활성화된 환경을 나열하도록 요청할 수 있습니다. 도구는 중요한 작업을 수행하기 전에 항상 현재 환경을 보여 줍니다.

n8n 환경이 하나뿐이어도 이 도구를 쓸 수 있나요?

아니요. 이 도구는 여러 환경이 설정되어 있고 그 사이를 전환해야 할 때만 유용합니다. 환경이 하나뿐이라면 다른 n8n 도구를 직접 사용하면 됩니다.

상세 정보

작성자의 원본 설명

Select, verify, and safely switch n8n MCP instances across production, staging, teams, or clients, especially before credential writes.

repo: sickn33/agentic-awesome-skills

인기도

GitHub 스타
48k
순위
#5274
라이선스
MIT
업데이트
2026. 10. 15.

이 스킬이 유용한가요?

0

로그인 투표하려면 로그인하세요.

댓글

  • …

이 저장소의 다른 스킬

비슷한 스킬