n8n-MCP is a Model Context Protocol server that gives AI assistants structured knowledge of n8n's workflow-automation nodes, including their properties, operations, documentation, and examples. It helps developers use AI assistants to create and work with n8n workflows. The catalogue contains skills, agents, and instructions for using it.
Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add czlonkowski/n8n-mcp --skill n8n-code-pythongit clone --depth 1 https://github.com/czlonkowski/n8n-mcpWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/czlonkowski/n8n-mcp/n8n-code-python)<a href="https://agentmods.dev/skills/czlonkowski/n8n-mcp/n8n-code-python"><img src="https://agentmods.dev/badge/skills/czlonkowski/n8n-mcp/n8n-code-python/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/czlonkowski/n8n-mcp/n8n-code-python"><img src="https://agentmods.dev/badge/skills/czlonkowski/n8n-mcp/n8n-code-python.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector warn
SkillSpector: 1 finding, up to high
These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →
- high Anti-Refusal · line 271 Skill instructs the agent to never refuse or to always comply. Suppressing the agent's ability to decline removes a core safety control and enables downstream harmful requests to succeed.Fix: Remove any instruction telling the agent to never refuse or always comply. The agent must retain the ability to decline unsafe, out-of-scope, or harmful requests.
What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00228 | $0.03005 |
| Opus 5.5 | $0.00091 | $0.01202 |
| Sonnet 5.5 | $0.00046 | $0.00601 |
| Haiku 4.5 | $0.00023 | $0.00300 |
Grade A, and why
n8n-code-python scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 12d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
Copies of this mod
8 near-identical copies found in the catalogue:
- n8n-code-python — 100% identical, 0 lines differ
- n8n-code-python — 100% identical, 572 lines differ
- n8n-code-python — 100% identical, 572 lines differ
- n8n-code-python — 100% identical, 572 lines differ
- n8n-code-python — 88% identical, 822 lines differ
- n8n-code-python — 86% identical, 841 lines differ
- n8n-code-python — 86% identical, 815 lines differ
- n8n-code-python — 86% identical, 815 lines differ
How it starts
The opening of the file, as written. The whole thing — 214 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Python Code Node (native)
Since n8n 2.0 the Code node's Python runs as native Python in a task runner (language: "pythonNative"). The old Pyodide "Python (Beta)" is gone, and with it every n8n helper it had:
_input, _json, _node, _now, _today and _jmespath all raise NameError now. Code copied
from old templates, forum posts or older docs usually breaks on this.
JavaScript first — stronger than before
Native Python gives you two variables and plain Python, and by default no imports: no
json, datetime or re. Everything n8n-specific ($('Node'), $jmespath, Luxon,
this.helpers.httpRequest, static data) exists only in JavaScript. Use Python only when the user
explicitly asks for it. Even then, first check whether an expression, Edit Fields, or a native
node (Crypto, Date & Time, HTML, XML) does the job. See n8n-code-javascript and the transform
gatekeeper in n8n-expression-syntax.
Quick start
# Run Once for All Items (default mode)
return [
{"json": {"name": it["json"]["name"], "revenue": it["json"]["revenue"]}}
for it in _items
if it["json"].get("active")
]
# Run Once for Each Item
row = _item["json"]
return {"json": {**row, "name_upper": (row.get("name") or "").upper()}}
Node config: {"language": "pythonNative", "mode": "runOnceForAllItems" | "runOnceForEachItem", "pythonCode": "..."} on n8n-nodes-base.code typeVersion 2.
The only inputs: _items and _item
| Mode | Variable | Shape |
|---|---|---|
| Run Once for All Items | _items |
list of plain dicts {"json": {...}, "pairedItem": {...}} |
| Run Once for Each Item | _item |
one plain dict {"json": {...}, "pairedItem": {...}} |
- Each variable exists only in its own mode.
_itemsin each-item mode (or_itemin all-items mode) raisesNameError. - Dict access only.
it["json"]["name"]orit["json"].get("name").it.json.nameraisesAttributeError: 'dict' object has no attribute 'json'. - No other nodes. There is no
_node/$('Node')equivalent. If you need data from another branch, bring it in with Merge first, or read it in JavaScript. - Webhook payloads are under
["body"]:_items[0]["json"].get("body", {}).get("email"). - Binary data isn't covered here. Read and write binary in JavaScript (see n8n-binary-and-data).
- pairedItem: returning
_items/_itemkeeps it. When you build new dicts and downstream uses$('Node').item, add"pairedItem": {"item": i}to each returned item. That isn't verified on native Python yet, so test-run before relying on it. - Missing keys: prefer
.get(key, default).row["missing"]raisesKeyError.
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 12d ago Changed · -288 lines · +71 tokens per session scan C → A 887c1cd022d6
- 3mo ago First seen · 502 lines · 157 tokens per session scan C cae740351f90
n8n-code-python is a skill published in the GitHub repository czlonkowski/n8n-mcp (23,331 stars, last pushed yesterday), licensed MIT. It adds 228 tokens to every session and 3,005 once invoked, about $0.0009 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
n8n-code-python compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| n8n-code-pythonczlonkowski/n8n-mcp | Skill | 23k | yesterday | MIT | A | 228 | Claude Code, Codex |
| idapythonmrexodia/ida-pro-mcp | Skill | 14k | 19d ago | MIT | A | 77 | Claude Code |
| vibeuekevinpbuckley/VibeUE | Skill | 847 | yesterday | MIT | A | 0 | Claude Code, Codex |
| xeepy-python-twitter-guidenirholas/three.ws | Skill | 289 | yesterday | Apache-2.0 | A | 67 | Claude Code, Codex |
| python-api8beeeaaat/touchdesigner-mcp | Skill | 642 | 3d ago | MIT | A | 117 | Claude Code |
| quantum-vqexi-zhao/OpenQuantum | Skill | 75 | 2d ago | MIT | A | 53 | Claude Code, Codex |
| quantum-vqlsxi-zhao/OpenQuantum | Skill | 75 | 2d ago | MIT | A | 56 | Claude Code, Codex |