px-pipe-mcp
Renders large text blobs as dense PNG image pages via pxpipe, enabling vision models to read content at ~3x token efficiency with a single inline image block.
README
pipethis
Turn a large paste, file, or clipboard into a dense PNG image that Claude reads by vision (~3× cheaper than text tokens) — with a verbatim appendix of any byte-exact tokens so nothing lossy has to be trusted from pixels.
Type pipethis: <big blob> in Claude Code and it renders → stores → loads the
image in one step, zero interaction. Built on
pxpipe (the pxpipe-proxy npm package —
no fork, just a pinned dependency).
Ships three ways to use the same engine: an MCP server (primary), a CLI
(render.mjs, the fallback), and a Claude Code skill (the pipethis:
trigger).
Quick start (one clone)
git clone https://github.com/dbbuilder-org/pipethis.git
cd pipethis
# macOS / Linux
./install.sh
# Windows (PowerShell)
powershell -ExecutionPolicy Bypass -File .\install.ps1
Then restart Claude Code and type:
pipethis: <paste a large log / doc / transcript here>
The installer: installs deps (pnpm or npm), registers the MCP server with Claude
Code at user scope, and installs the pipethis skill. It's re-runnable.
Prerequisites: Node.js ≥ 18 and the claude CLI. pnpm is used if present,
otherwise npm. Linux clipboard needs one of wl-paste / xclip / xsel.
Manual install (what the installer does)
Prefer to wire it up yourself:
cd pipethis
pnpm install # or: npm install
claude mcp add --scope user pipethis -- node "$PWD/server.mjs"
mkdir -p ~/.claude/skills/pipethis
sed "s#__PIPETHIS_DIR__#$PWD#g" skill/pipethis/SKILL.md > ~/.claude/skills/pipethis/SKILL.md
# then restart Claude Code
What it does
big content (paste / file / clipboard)
→ pxpipe renderTextToImages() dense PNG page(s)
→ returned as image block(s) model reads by vision
+ byte-exact tokens appended verbatim URLs, IDs, env keys, hashes
Text priced at ~1 char/token becomes an image priced by pixels (~3.1 chars/image token), so a big blob typically drops 75–90% of its input tokens. Recent-turn content stays text; only the pasted blob is imaged.
Example
You type:
pipethis: # Billboard SSO setup
Redirect URI (exact): https://billboard-api-8692.onrender.com/api/auth/sso/callback
Set Entra__ClientId / Entra__ClientSecret on the API. Tenant 11111111-2222-3333-4444-555555555555.
… (a few thousand more chars) …
Claude renders it in one step and replies from the image, e.g.:
Rendered 2987 chars to 1 image page(s): 739 text tokens -> 184 image tokens (~75% saved).
Stored at: ~/.pxpipe/pastes/1783381685645/page-1.png
Exact values (verbatim — trust these over the image):
code_block.1: https://billboard-api-8692.onrender.com/api/auth/sso/callback
env.1: Entra__ClientId
env.2: Entra__ClientSecret
guid.1: 11111111-2222-3333-4444-555555555555
The gist comes from the cheap image; the must-be-exact strings come through the appendix verbatim — so a redirect URI or ID is never trusted from pixels.
MCP tools
| Tool | Args | Use |
|---|---|---|
render_text_as_image |
text, gate* |
Text (what pipethis: calls). |
paste_clipboard_as_image |
gate* | Whatever is on the clipboard. |
render_file_as_image |
path, gate* |
A file's contents. |
*gate = minChars? (default 2000), exact? (true = keep as text), extractExact?
(default true = append the verbatim byte-exact list). Each result is a savings
summary + the stored path + image block(s) + the Exact-values appendix.
CLI (fallback)
node render.mjs --file /abs/blob.log # or --stdin, or clipboard (default)
node render.mjs --stdin --min-chars 1 # force-image piped input
node render.mjs --file x --exact # refuse to image, keep text
Prints JSON: pages[] (PNG paths to Read), savedPct, warnings, exactValues.
Safety (mixed content)
- Size gate — content under
minCharsisn't imaged (imaging tiny blobs loses money). exact: true— skips imaging entirely; keep content as text.- Fidelity warning — a heuristic flags likely code/exact data even when it renders.
- Exact-values appendix (
extractExact, default on) — best of both: the image carries the gist cheaply, and byte-exact tokens are appended below it as verbatim<type>.<n>: <value>text. Extracts code-block contents, env keys (Foo__Bar), URLs, GUIDs, emails, hashes, and inline-code spans — deduped, with fragments of an already-captured value suppressed.
Refusals return a plain-text block naming the reason (no_input,
below_min_chars, exact_requested, render_error) — a decision, not an error.
Troubleshooting
pipethis:does nothing / tools missing — restart Claude Code after installing; MCP tools load at session start. Check withclaude mcp list(should showpipethis … ✔ Connected) or/mcpinside Claude Code.- "claude CLI not found" — install Claude Code, then re-run the installer (or
do the
claude mcp addfrom Manual install). - Clipboard tool returns nothing on Linux — install
wl-clipboard,xclip, orxsel. On headless boxes, userender_file_as_image/--fileinstead. - Everything gets refused as
below_min_chars— the content is under 2000 chars; passminChars: 1(thepipethis:path already does). - An exact value looks wrong in the image — that's expected; read it from the
Exact values appendix, not the pixels. For fully verbatim content use
exact: trueto keep it as text.
Uninstall
./uninstall.sh # macOS / Linux (removes MCP registration + skill)
Windows: claude mcp remove --scope user pipethis and delete
%USERPROFILE%\.claude\skills\pipethis.
Develop
node --test # unit (lib) + CLI + stdio MCP integration
Everything shares one core (lib.mjs): renderBlob (gate + render + savings) and
extractExactValues (the appendix). server.mjs is the MCP wrapper, render.mjs
the CLI wrapper — no duplicated logic.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。