Open-source MCP sanitizer strips white-on-white text and 3 Tr glyph PDF prompt injections pre-LLM

EstablishmentTough18 · reddit · 2026-11-25

CleanWeb v3.0.1 is an MCP gateway that neutralizes hidden PDF prompt injections at the content-stream level before text reaches your model's context. It targets white-on-white fills, PDF's invisible 3 Tr text rendering mode, sub-2pt micro-fonts, and off-page/CropBox coordinates — all of which standard extractors like pypdf and pdfminer pass through silently. It also strips HTML boilerplate (87% token reduction) and blocks 1x1 tracking pixels and Markdown image exfiltration links. Available as a remote SSE MCP server for Cursor/Windsurf/Claude or a local uvx thin client, priced per call ($0.001/page, $0.005/PDF via x402 in USDC) with 3 free trials and SDKs for LangChain, LlamaIndex and more.

Original post →

More from coding & agent

coding & agent channel →