Hi all,
I’ve published n8n-nodes-claude-cli-bridge 1.0.0, a community node that runs the Claude Code CLI on your n8n host and takes attachments: the binary data on the item (photos, PDFs, text files) goes to Claude as it is. Claude reads the photo or the PDF pages itself, so a receipt, an invoice or a scanned form is read in one step instead of OCR → text → LLM.
Why I built it
Our expense workflow ran OCR and then an LLM on the OCR text. When the OCR dropped a line, for example the date on a crumpled fuel receipt, the LLM never saw it. We now read every receipt twice, from the OCR text and from the photo, and compare the two field by field. On 136 real receipts and invoices, the photo reading filled in 22 times, 4 dates and 5 VAT rates that the OCR had missed, and the two readings agreed on every amount.
What it does
- Attachments: JPEG, PNG, GIF, WEBP, HEIC/AVIF (iPhone photos, converted with GraphicsMagick), PDF and text files. The type is detected from the bytes, so a PDF uploaded as
image/jpegstill goes as a PDF. - Response Format = JSON: the answer is parsed into
data. - Tools = None (default): a pure model call, with no tools, MCP servers or hooks.
- Other options: Model, Effort, and Retries (these also work with Continue On Fail). The output includes cost and token usage.
- Packaging: no dependencies; published from GitHub Actions with npm provenance.
Example
Prompt Return only JSON: {"amount": number, "date": "YYYY-MM-DD", "vendor": ""} with a receipt photo attached returns:
{
"success": true,
"data": { "amount": 42.5, "date": "2026-10-03", "vendor": "Example Fuel Ltd" },
"model": "claude-sonnet-5-5",
"attempts": 1
}
Requirements and caveats
- Self-hosted n8n only. The node runs the
claudeCLI on the n8n host, so it can’t be a verified node. - Claude Code CLI must be installed and logged in, or given a token from
claude setup-token. The README has a tested Docker setup. - Subscription limits. Calls count against your Claude subscription’s limits. Check that your plan’s terms fit how you use it.
Links
- Install: Settings → Community Nodes →
n8n-nodes-claude-cli-bridge - npm: https://www.npmjs.com/package/n8n-nodes-claude-cli-bridge
- GitHub: GitHub - cem-ayyildiz/n8n-nodes-claude-cli-bridge: n8n community node for the Claude CLI that takes attachments: photos (HEIC too), PDFs and text files go to Claude as they are. Uses your Claude subscription, no API key. · GitHub
Feedback and issues are welcome.