pixelvault-mcp
# pixelvault-mcp
[](https://glama.ai/mcp/servers/z121245017-ai/pixelvault-mcp)
[](./LICENSE)
Zero-dependency binary **PNG, JPEG, and WebP** forensic scanner and lossless metadata scrubber exposed as a **Model Context Protocol (`MCP`) stdio server**, **CLI**, and **GitHub Action (`@v1`)**.
`pixelvault-mcp` inspects raw container chunks without re-encoding pixels:
- **`aCropalypse` Trailing-Byte Leaks (`CVE-2023-21036` / `CVE-2023-28303`)**: Detects orphaned bytes surviving after PNG `IEND`, JPEG `EOI` (`FF D9`), or WebP `RIFF` boundaries.
- **EXIF GPS & Uncropped Thumbnail Leaks**: Parses Little-Endian (`II`) and Big-Endian (`MM`) TIFF `IFD0` / `ExifIFD` / `GPSIFD` DMS coordinates into signed decimal degrees and flags embedded `IFD1` / `JFIF` thumbnails.
- **ComfyUI & Prompt Chunk Leaks**: Decompresses PNG `tEXt`, `zTXt`, and `iTXt` chunks plus WebP/JPEG XMP streams to surface embedded ComfyUI JSON node graphs and prompt parameters.
- **Zero-Generation-Loss Binary Scrubbing**: Strips metadata chunks (`tEXt`, `zTXt`, `iTXt`, `eXIf`, `tIME`, `APP1..APP15`, `COM`, WebP `EXIF`/`XMP `) and truncates trailing bytes while verifying exact `CRC-32` parity on compressed `IDAT` / `SOS` / `VP8` pixel streams.
More offline privacy and DevSecOps tools: [https://z121245017-ai.github.io/](https://z121245017-ai.github.io/)
## MCP Tools
1. `inspect_image_forensics` — Audits a PNG, JPEG, or WebP file (or Base64 payload) for EXIF GPS coordinates, camera serials, uncropped thumbnails, ComfyUI workflow chunks, and trailing post-EOF bytes.
2. `scrub_image_metadata_lossless` — Strips non-essential metadata chunks and trailing bytes without re-compressing pixels, returning `CRC-32` compressed pixel-stream parity proof.
3. `verify_pixel_stream_parity` — Compares two image files or Base64 buffers to verify identical compressed pixel streams (`IDAT` / `SOS` / `VP8`) after metadata removal.
4. `generate_forensic_image_specimen` — Generates deterministic synthetic PNG, JPEG, or WebP test fixtures containing sample EXIF GPS, ComfyUI workflow chunks, and trailing bytes for CI testing.
## MCP Configuration
```json
{
"mcpServers": {
"pixelvault": {
"command": "npx",
"args": ["-y", "github:z121245017-ai/pixelvault-mcp"]
}
}
}
```
## GitHub Action (`@v1`)
```yaml
- uses: z121245017-ai/pixelvault-mcp@v1
with:
paths: 'docs/ public/'
fail-on-gps: 'true'
fail-on-trailing-bytes: 'true'
```
## License
MIT
TDQS
Scored across 4 tools
Each tool targets a distinct operation: inspection of metadata, lossless metadata removal, pixel-stream parity verification, and synthetic fixture generation. The only mild overlap is between inspect_image_forensics and verify_pixel_stream_parity, since both read an image and report findings, but the descriptions clearly separate metadata auditing from byte-level pixel parity checks.
All four names follow a consistent snake_case verb_noun pattern: inspect_, scrub_, verify_, generate_ followed by a descriptive object phrase. Modifiers like 'lossless' and 'forensic' are used consistently to qualify the object rather than breaking the pattern.
Four tools is well-scoped for a focused image-forensics/scrubbing server: audit, scrub, verify, and generate a fixture. Each tool earns its place and there is no filler.
The surface covers the full lifecycle: inspect metadata, remove it losslessly, verify parity, and produce test specimens for CI. Minor gaps exist, such as no batch/multi-image processing or a structured metadata-diff/export operation, but core workflows are fully supported.