n8n-binary-and-data

n8n-binary-and-data is a skill for Claude Code, Codex from czlonkowski/n8n-mcp. It costs 135 tokens per session (3,702 once invoked), scanned A, original, MIT.

A guide to handling files in n8n workflows, including images, PDFs, uploads, downloads, and email attachments. It explains the difference between structured data and file bytes, and how files interact with AI-agent tools.

In plain words
What is it for?
Reading and writing file data, processing attachments, working with base64 and image input, sending files to AI systems, and returning file-related results from workflows.
Why use it?
It prevents files from being read from the wrong field, lost during a workflow, or sent across an agent tool boundary in an unsupported form. It explains when to use a storage key or URL instead.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Reading and writing file data, processing attachments, working with base64 and image input, sending files to AI systems, and returning file-related results from workflows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/czlonkowski/n8n-mcp/n8n-binary-and-data
About the project

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.

czlonkowski/n8n-mcp · 22,843 stars · on GitHub · n8n-mcp.com

Install

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.

Any agent
npx skills add czlonkowski/n8n-mcp --skill n8n-binary-and-data
Clone the repo
git clone --depth 1 https://github.com/czlonkowski/n8n-mcp

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for n8n-binary-and-data

README.md
[![agentmods](https://agentmods.dev/badge/skills/czlonkowski/n8n-mcp/n8n-binary-and-data/github.svg)](https://agentmods.dev/skills/czlonkowski/n8n-mcp/n8n-binary-and-data)
Your own site
<a href="https://agentmods.dev/skills/czlonkowski/n8n-mcp/n8n-binary-and-data"><img src="https://agentmods.dev/badge/skills/czlonkowski/n8n-mcp/n8n-binary-and-data/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.

agentmods 80×15 button for n8n-binary-and-data

Your own site · 80×15
<a href="https://agentmods.dev/skills/czlonkowski/n8n-mcp/n8n-binary-and-data"><img src="https://agentmods.dev/badge/skills/czlonkowski/n8n-mcp/n8n-binary-and-data.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 135 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,702 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • Snyk pass 7 Sept 2026
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00135 $0.03702
Opus 5 $0.00068 $0.01851
Sonnet 5 $0.00027 $0.00740
Haiku 4.5 $0.00014 $0.00370

Measured 9d ago against content hash 7c207909e3e8, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

n8n-binary-and-data 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 9d 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.

Origin

Copies of this mod

4 near-identical copies found in the catalogue:

data/skills/n8n-binary-and-data/SKILL.md · 250 lines

How it starts

The opening of the file, as written. The whole thing — 250 lines — stays where its author put it; the contents beside it link to each section on GitHub.

n8n Binary and Data

Every n8n item carries two independent slots: $json for structured data and $binary for file bytes. They travel side by side through the workflow. File contents — the actual PDF, image, or zip — live in $binary, never in $json. Get that split wrong and you read an empty field, lose a file mid-flow, or hand an AI agent a tool input it can't use.

This skill covers where binary lives, how to read and write it, how to keep it from being silently stripped, the hard wall between binary and the AI-agent tool boundary, and why chat surfaces need a URL instead of raw bytes.


The three rules that prevent 90% of binary bugs

  1. File contents are in $binary, not $json. After an HTTP download, a "Read Files", or an email-attachment trigger, the bytes sit in $binary.<key>. $json holds metadata at most. Reading $json.data for file contents gives you nothing.

  2. Binary cannot cross the AI-agent tool boundary — in either direction. Tool arguments and tool return values are JSON only. An uploaded image can't be passed into a tool as a file, and a tool can't return raw bytes. Pre-stage to storage and pass a key or URL through JSON instead. See AGENT_TOOL_BINARY.md.

  3. Chat surfaces render images by URL, not by $binary. Slack, Discord, Teams, Telegram, embedded webhook chat — none of them read the binary slot. The image has to live somewhere a URL can fetch it. See CDN_REQUIREMENT.md.


The two slots

Each item is shaped like this:

{
  "json": { "customerId": 42, "status": "sent" },
  "binary": {
    "invoice": {
      "data": "<base64-encoded bytes>",
      "mimeType": "application/pdf",
      "fileName": "invoice-42.pdf",
      "fileExtension": "pdf"
    }
  }
}

The key inside binary (invoice here) is the binary property name. Most file-handling nodes have a binaryPropertyName parameter that points at it — the producer names the slot, the consumer references it by that name. The default key across most nodes is data, so when nothing tells you otherwise, assume $binary.data.

Read the full file on GitHub · 250 lines

Files

What ships with it

5 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.

Changes

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.

  1. 9d ago First seen · 250 lines · 135 tokens per session scan A 7c207909e3e8

Subscribe to this mod's changes

n8n-binary-and-data is a skill published in the GitHub repository czlonkowski/n8n-mcp (22,843 stars, last pushed yesterday), licensed MIT. It adds 135 tokens to every session and 3,702 once invoked, about $0.0007 per session on Opus 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.

Related

Other skills, from other repositories

markdown-to-pdf

Convert a markdown file to PDF using mistune + reportlab. Use when the user wants to convert a .md file to PDF, or when another skill needs to produce a PDF from markdown output.

staskh/trading_skills · 45 tokens

pdf-guide

Searches and reads Riksarkivet's archival PDF guides (medieval Sweden, governance 1520-1920, Sami history). Use when user asks about Swedish history, archives, medieval charters, governance, Sami, or wants to open/search PDF guides. Provides section-level references with page numbers for citation.

AI-Riksarkivet/ra-mcp · 67 tokens

orchardcore-ai-documents-extractors

Skill for adding PDF and OpenXml text extraction to CrestApps Orchard Core AI Documents. Covers PDF, DOCX, XLSX, PPTX, processor registration, supported file types, upload processing, and extraction troubleshooting. Use this skill when requests mention AI Documents extractors, PDF document processing, OpenXml document…

CrestApps/CrestApps.AgentSkills · 137 tokens

gdpr-privacy-notice-eu-oliver-schmidt-prietz

Draft GDPR/DSGVO-compliant privacy notices as .docx for any EU/EEA jurisdiction and audience. Use when user asks to create a privacy policy/notice, mentions "Datenschutzerklärung", "politique de confidentialité", "privacy notice", needs Art. 13/14 disclosures, AI Act transparency, cookie policy, or notices for…

lawve-ai/awesome-legal-skills · 177 tokens

eu-ai-act-report-oliver-schmidt-prietz

Generates a formal, structured AI Act compliance assessment report suitable for legal files, audit trails, and regulatory inquiries. This skill should be used when the user asks to "generate an AI Act report", "create a compliance assessment report", "document the AI Act analysis", "create a Prüfbericht", "export as…

lawve-ai/awesome-legal-skills · 94 tokens

litigation-deadline-calendar

Calendar litigation and arbitration deadlines from a scheduling order. Parses a PDF scheduling order, identifies key dates, computes backward deadlines using the applicable rules (Colorado CRCP, Federal FRCP, or arbitration forum rules for AAA/JAMS), and generates an .ics calendar file for Outlook or Google Calendar…

lawve-ai/awesome-legal-skills · 131 tokens