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가 스킬을 읽고 지침을 따릅니다.
바로 붙여넣을 수 있는 메시지
Claude Code, Codex, Cursor용입니다. 프로젝트 폴더에서 실행하면 스킬이 설치됩니다.
SKILL.md를 다운로드해 에이전트의 스킬 폴더에 넣으세요.
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.
- Discover first. Call
n8n_instances({mode:"list"})before acting so you know the instance names and which one iscurrent. - 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. - Switch in its own turn. Never put a
switchand 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. - Verify before high-stakes ops. Immediately before creating/updating/deleting credentials
(and before destructive workflow edits), confirm
currentis the instance you intend — primary check isn8n_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. - An unexpected
NOT_FOUNDis almost always a wrong-instance misroute, not a deletion. Don't recreate the object. Re-check the current instance and retry (see Recovery). - 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 — runswitchhere 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.currentanddefaultare each one instance{ id, name, url, isDefault }(ornull).availableis every instance, each with an extraisCurrentboolean. Match byname; never hard-codeid.
{mode:"switch", name:"<name>"}→{ previous, current }, and binds this session to the named instance.nameis 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.
인기도
- GitHub 스타
- 48k
- 순위
- #5274
- 라이선스
- MIT
- 업데이트
- 2026. 10. 15.
댓글
- …
이 저장소의 다른 스킬
00-andruia-consultant
48k에이전트가 AI 프로젝트를 시작하거나 개선할 수 있도록 코드를 분석하고 스페인어로 실행 계획을 세워 줍니다.
007
48k에이전트가 보안 감사와 위협 모델링을 수행해 공격과 취약점으로부터 프로젝트를 보호하도록 돕습니다.
10-andruia-skill-smith
48k에이전트가 AI 도구의 작동 방식을 정의하고 문서를 쓰며 구조를 검증하도록 돕습니다.
20-andruia-niche-intelligence
48k에이전트가 신뢰할 수 있는 자료를 바탕으로 특정 산업의 맥락, 규칙, 사용 패턴, 위험을 정리한 요약을 만들도록 돕습니다.
비슷한 스킬
add-model-provider
394k에이전트가 안전한 설정 명령으로 새 AI 모델 제공자를 OpenClaw에 연결하고, API 키를 평문으로 두지 않으며, 실시간 테스트를 실행하도록 돕습니다.
acp-router
394k에이전트가 OpenClaw를 통해 Claude Code나 Cursor 같은 코딩 도우미에 작업을 전달해, 작업이 그 도구에서 실행되도록 돕습니다.
browser-automation
394k에이전트가 로그인, 탭, 페이지 응답이 멈췄을 때의 복구를 포함해 웹 페이지를 단계별로 조작하도록 가르칩니다.