MCP 助手
- 作者仓库星标 0
- 作者仓库 skills-registry
/n8n-cli-from-mcp — MCP / Skill → n8n Workflow
Take an MCP server config or a Claude Code skill and generate an n8n workflow that does the same thing without needing an agent at runtime.
Procedure
Identify the source:
- MCP server: ask for the server name, command, and tools it exposes (or read from
~/.config/claude/mcp.jsonstyle config) - Claude Code skill: ask for the skill name or path to its SKILL.md
- MCP server: ask for the server name, command, and tools it exposes (or read from
Read the source's actual capabilities:
- For an MCP server: list the tools, their input schemas, what they return
- For a skill: read the procedure section, identify what commands/APIs it calls
Map MCP tools / skill steps to n8n nodes:
- HTTP API call → HTTP Request node
- Slack post → Slack node
- Notion read/write → Notion node
- File read/write → Read/Write Files node
- Code execution → Code node (JS or Python)
- LLM call → OpenAI / Anthropic node
- Branching logic → IF / Switch node
Identify what the workflow's trigger should be:
- If the original MCP/skill was invoked by an agent on demand → Manual Trigger or Webhook
- If it was meant to run on a schedule → Schedule Trigger
- If it was reactive to events → Webhook Trigger or specific event trigger node
Build the workflow JSON:
- Start with the trigger
- Chain the mapped nodes
- Add credentials where needed (use existing instance credentials, not new ones)
- Add error handling for any external API calls
Show the proposed workflow before importing:
- Print the node-by-node plan
- Highlight any places where the mapping is approximate ("MCP tool X has no direct n8n equivalent — using Code node with the same logic")
Import (only after user approval):
n8n-cli wf import /tmp/from-mcp.json(don't activate)- Walk the user through testing it manually first
- Then activate
Output format
- Show the source's tools/steps as a numbered list
- Show the mapped n8n nodes as a parallel numbered list
- Highlight any mappings that need user judgment
- Confirm before importing
Tips
- The most natural conversions are MCP servers that just call HTTP APIs or run scripts — those map 1:1 to HTTP Request or Code nodes.
- MCP servers with deep state (like memory MCPs) don't map well — n8n is stateless between runs unless you wire up a database. Surface this limitation up front.
- Some Claude Code skills are pure prompts (e.g. "summarize this") — those need an LLM node in the n8n workflow, which means a credential and per-run cost.
- For complex MCPs (browser automation, etc.), suggest keeping them as MCPs and having n8n call out to them via HTTP if exposed, rather than rebuilding them.
- Document the resulting n8n workflow with /n8n-cli-document so the team can maintain it without referring back to the original MCP.
<!-- tomevault:4.0:skill_md:2026-05-23 -->Source: 8Dvibes/n8n-cli — distributed by TomeVault.
- 流狐分类
- AI 智能
- 作者声明 Agent
- 未找到明确声明;不据此推断已兼容或已测试
- 静态检查
- 88 / 100 · 启发式扫描,不代表运行安全
- 作者 / 版本 / 许可
- @tomevault-io · 未声明 license
- 流狐 Token 估算
- 低消耗
- 流狐接入估算
- 需简单配置
- 是否需要外部 API Key
- 未发现要求
- 检测到的系统要求
- macOS · Linux · Windows
- 底层运行要求
- Node.js · Python
- 检测到的文件与系统行为
-
- 只读
- 允许写入 / 修改
- Shell 执行
- 检测到的网络行为
- 允许外网请求
- 安装命令数
- 无(仅作为资料)
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
作者没有在当前 SKILL.md 中定义固定输出样例。 Identify the source: MCP server: ask for the server name, command, and tools it exposes (or read from ~/.config/claude/mcp.json style config) Claude Code skill: ask for the skill name or path to its SKILL.md
Show the source's tools/steps as a numbered list Show the mapped n8n nodes as a parallel numbered list Highlight any mappings that need user judgment
The most natural conversions are MCP servers that just call HTTP APIs or run scripts — those map 1:1 to HTTP Request or Code nodes. MCP servers with deep state (like memory MCPs) don't map well — n8n is stateless between runs unless you wire up a database.…
# /n8n-cli-from-mcp — MCP / Skill → n8n Workflow
Take an MCP server config or a Claude Code skill and generate an n8n workflow that does the same thing without needing an agent at runtime.
## Procedure
1. **Identify the source**:
- **MCP server**: ask for the server name, command, and tools it exposes (or read from `~/.config/claude/mcp.json` style config)
- **Claude Code skill**: ask for the skill name or path to its SKILL.md
2. **Read the source's actual capabilities**:
- For an MCP server: list the tools, their input schemas, what they return
- For a skill: read the procedure section, identify what commands/APIs it calls
3. **Map MCP tools / skill steps to n8n nodes**:
- HTTP API call → HTTP Request node
- Slack post → Slack node
- Notion read/write → Notion node
- File read/write → Read/Write Files node
- Code execution → Code node (JS or Python)
- LLM call → OpenAI / Anthropic node
- Branching logic → IF / Switch node
4. **Identify what the workflow's trigger should be**:
- If the original MCP/skill was invoked by an agent on demand → Manual Trigger or Webhook
- If it was meant to run on a schedule → Schedule Trigger
- If it was reactive to events → Webhook Trigger or specific event trigger node
5. **Build the workflow JSON**:
- Start with the trigger
- Chain the mapped nodes
- Add credentials where needed (use existing instance credentials, not new ones)
- Add error handling for any external API calls
6. **Show the proposed workflow** before importing:
- Print the node-by-node plan
- Highlight any places where the mapping is approximate ("MCP tool X has no direct n8n equivalent — using Code node with the same logic")
7. **Import** (only after user approval):
… 作者原文负责流程事实;流狐只索引当前章节、要点、文件与命令。
章节 -> Procedure → Output format → Tips
要点 -> Identify the source · MCP server · Claude Code skill · Read the source's actual capabilities · Map MCP tools / skill steps to n8n nodes · Identify what the workflow's trigger should be · Build the workflow JSON · Show the proposed workflow
文件/命令 -> ~/.config/claude/mcp.json · n8n-cli wf import /tmp/from-mcp.json · .config/claude/mcp.json · commands/APIs · read/write · Read/Write · MCP/skill · tmp/from-mcp.json
内容 SHA-256 -> c36e5ba797ce
原文结构
适用与边界
原文中的明确线索
~/.config/claude/mcp.json、n8n-cli wf import /tmp/from-mcp.json、.config/claude/mcp.json、commands/APIs、read/write、Read/Write、MCP/skill、tmp/from-mcp.json