n8n-binary-and-data

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

A reference guide for handling files and other binary data in n8n. It explains the difference between structured values such as text and metadata, and file contents such as PDFs, images, uploads, and downloads.

In plain words
What is it for?
Use it when an n8n workflow receives, downloads, reads, transforms, sends, or gives files to an AI agent.
Why use it?
It prevents common errors where files are read from the wrong place, lost during a workflow, or passed incorrectly to an AI tool. It also explains why file data may need to be stored and represented by a URL or key.

Skill for Claude CodeCodex

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

Good fit Use it when an n8n workflow receives, downloads, reads, transforms, sends, or gives files to an AI agent.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/fatemehmollaeimdepended-cloud/mcp/n8n-binary-and-data
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 fatemehmollaeimdepended-cloud/mcp --skill n8n-binary-and-data
Clone the repo
git clone --depth 1 https://github.com/fatemehmollaeimdepended-cloud/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/fatemehmollaeimdepended-cloud/mcp/n8n-binary-and-data/github.svg)](https://agentmods.dev/skills/fatemehmollaeimdepended-cloud/mcp/n8n-binary-and-data)
Your own site
<a href="https://agentmods.dev/skills/fatemehmollaeimdepended-cloud/mcp/n8n-binary-and-data"><img src="https://agentmods.dev/badge/skills/fatemehmollaeimdepended-cloud/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/fatemehmollaeimdepended-cloud/mcp/n8n-binary-and-data"><img src="https://agentmods.dev/badge/skills/fatemehmollaeimdepended-cloud/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.
Origin 100% copy Near-identical to another mod 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-10, 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

This is a copy

100% identical to n8n-binary-and-data — 0 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

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 fatemehmollaeimdepended-cloud/mcp (0 stars, last pushed 1mo ago), 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. It is 100% identical to n8n-binary-and-data, differing in 0 lines, and is treated as a copy.

Related

Other skills, from other repositories

feature-flag-policy

Cargo feature flags for crates/xberg — ORT-incompatible targets (WASM, Android x8664 emulator), type-only and tract inference companion features, WASM/Android-safe variants, PDF backend, mutually-exclusive ORT variants, platform-conditional deps, aggregate feature sets, and build profiles. Load when adding, wiring, or…

xberg-io/xberg · 98 tokens

ocr-pipeline-and-quality

Change or evaluate Xberg OCR backends, preprocessing, caching, page acceptance, geometry, hOCR structure, table reconstruction, or cross-backend quality. Load for OCR behavior and A/B quality work, not ordinary PDF text extraction.

xberg-io/xberg · 53 tokens

pdf-backends

Change or diagnose Xberg PDF extraction, native/Pdfium backend selection, PDF rendering sessions, encrypted documents, OCR fallback, or backend-specific capability gaps. Load for PDF engine work, not generic image OCR.

xberg-io/xberg · 46 tokens

add-sharepoint

Adds SharePoint Online connector to a Power Apps code app. Use when reading lists, managing documents, or integrating with SharePoint sites. Can also create new SharePoint lists.

microsoft/power-platform-skills · 39 tokens

using-the-mcp-server

Use when converting HTML to Markdown or extracting metadata and tables through the html-to-markdown MCP server's tools, rather than shelling out to the CLI. Covers the tool surface, the auto-installing launcher, and when MCP beats the CLI or SDK.

xberg-io/html-to-markdown · 57 tokens

nw-diagram

Generates C4 architecture diagrams (context, container, component) in Mermaid or PlantUML. Use when creating or updating architecture visualizations.

nWave-ai/nWave · 33 tokens