@pixelvault-dev/local-mcp
This local MCP server lets an agent upload, manage, sign, and build transform URLs for PixelVault-hosted images.
Upload images via local
path(streamed, not base64), publicsource_url, or base64data; optional folder/filename, visibility, expiry, and signed-URL lifetime; max 5 MB.List project images with pagination and fetch metadata for one image by ID.
Permanently delete an image by ID.
Mint time-limited signed URLs for private images.
Build on-the-fly transform URLs from a CDN URL or image ID: resize/crop, size presets, format/quality, AI background removal, blur/sharpen/rotate/flip, brightness/contrast/saturation, and watermark tiling.
README also documents local
optimize_imageand metadata replacement, but those tools are not in the provided schema.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@@pixelvault-dev/local-mcp upload /home/user/screenshot.png"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
@pixelvault-dev/local-mcp
A local (stdio) MCP server for PixelVault — agent-first image hosting.
The difference from the hosted MCP server (mcp.pixelvault.dev): this one runs on
your machine, so it can upload a local file by path. It reads the bytes off
disk and streams them to the API as multipart/form-data — the file is never
base64-encoded into the model's context. That keeps large images (and slow,
token-hungry base64 round-trips) out of the conversation.
Use the hosted server when your client is remote (ChatGPT, etc.); use this one for local coding agents that have files on disk.
Install
Runs with npx — no global install needed:
npx @pixelvault-dev/local-mcpRelated MCP server: image-vision-mcp
Configure
Set your PixelVault API key (a pv_live_… secret key for private uploads):
export PIXELVAULT_API_KEY=pv_live_xxx
# optional: point at a different API
export PIXELVAULT_API_URL=https://api.pixelvault.devThe server also reads ~/.pixelvault/config.json if you've authenticated with the
PixelVault CLI (pixelvault login).
Claude Desktop / MCP client config
{
"mcpServers": {
"pixelvault": {
"command": "npx",
"args": ["-y", "@pixelvault-dev/local-mcp"],
"env": { "PIXELVAULT_API_KEY": "pv_live_xxx" }
}
}
}Tools
Tool | What it does |
| Upload by local |
| List images in your project (paginated), optionally filtered by custom |
| Metadata for one image by id. |
| Replace an image's custom metadata (replaces, not merges; |
| Permanently delete an image by id. |
| Mint a time-limited signed URL for a private image. |
| Compress, resize and convert a local image file on this machine (no API key, nothing uploaded). Writes |
| Build an on-the-fly transform URL (resize, crop, format, AI background removal, effects). |
Every returned CDN URL supports on-the-fly transforms via query params — see the transforms docs.
optimize_image
Runs entirely locally with sharp, an optional dependency: if it can't be
installed for your platform the tool returns a sharp_unavailable error and every other tool is unaffected. Needs
Node 20.9+. Inputs: path, format (keep|webp|avif|jpg|png, default keep), max_width/max_height (never
upscales), quality (default 80), keep_metadata, output_path or in_place, dry_run. EXIF/GPS metadata is stripped
by default (orientation is applied first). It refuses to overwrite an existing file (other than *.optimized.*), never
follows symlinks, writes atomically, and leaves already-optimal files alone, so it is safe to call repeatedly. The same
engine ships in the pixelvault-cli optimize command.
License
MIT
Available Tools
6 toolsdelete_imageDelete imageA
Permanently delete one PixelVault image by id (DELETE /v1/images/:id).
Inputs: id (required).
get_imageGet imageA
Get metadata (CDN URL, size, MIME type, dimensions) for one PixelVault image by id (GET /v1/images/:id). The returned CDN URL supports on-the-fly transforms via query params — e.g. ?w=400&fit=cover (resize/crop), ?fmt=webp (format), ?segment=foreground (AI background removal → transparent PNG), and effects like ?blur=30&saturation=0&rotate=90. Or call transform_image to build a valid transform URL for you. See https://pixelvault.dev/docs#transforms.
Inputs: id (required).
list_imagesList imagesA
List images in your PixelVault project, most recent first (GET /v1/images), paginated via page/per_page. The returned CDN URL supports on-the-fly transforms via query params — e.g. ?w=400&fit=cover (resize/crop), ?fmt=webp (format), ?segment=foreground (AI background removal → transparent PNG), and effects like ?blur=30&saturation=0&rotate=90. Or call transform_image to build a valid transform URL for you. See https://pixelvault.dev/docs#transforms.
Inputs: page, per_page.
sign_urlSign private URLA
Mint a time-limited signed URL for a private image (POST /v1/images/:id/sign-url). The signature binds the image, so the URL can't be replayed against another; strip it and the CDN returns 403. Optional expires_in (seconds, default 3600).
Inputs: id (required), expires_in.
transform_imageBuild transform URLA
Build an on-the-fly transform URL for a PixelVault image (resize, crop, format/quality, AI background removal, blur/sharpen/rotate/flip, brightness/contrast/saturation, and same-project watermark tiling). Provide exactly one of url (a PixelVault CDN URL) or id (resolved via the API), plus one or more transform params. See https://pixelvault.dev/docs#transforms.
Inputs: id, fit, url, blur, +16 more.
upload_imageUpload imageA
Upload an image to PixelVault and get an instant CDN URL. Prefer path — a LOCAL file path the server reads off disk and streams — so large files aren't base64-encoded into the model context. Alternatively pass source_url (a public https URL the API imports) or data (base64 bytes). Optional folder, filename, visibility (private → signed URL, needs a secret key), expires_in (auto-expiring image), sign_expires_in. Max 5 MB; JPG/PNG/GIF/WebP/AVIF/SVG. The returned CDN URL supports on-the-fly transforms via query params — e.g. ?w=400&fit=cover (resize/crop), ?fmt=webp (format), ?segment=foreground (AI background removal → transparent PNG), and effects like ?blur=30&saturation=0&rotate=90. Or call transform_image to build a valid transform URL for you. See https://pixelvault.dev/docs#transforms.
Inputs: data, path, folder, filename, +4 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool has a distinct purpose: uploading, listing, retrieving metadata, deleting, signing URLs, and building transform URLs. No functional overlap.
All tool names follow a consistent verb_noun snake_case pattern (e.g., upload_image, list_images, get_image), making the set predictable.
6 tools is appropriate for an image management server—neither too few nor too many, covering essential operations without redundancy.
The server covers upload, list, get, delete, signing, and transform URL generation. Missing an update/rename tool for metadata, but the core lifecycle is well-represented.
Maintenance
Related MCP Connectors
MCP server exposing the YourImageShare upload API (upload/list/delete) as tools for AI agents.
Agent-native MCP server over the public saagarpatel.dev corpus. Read-only, stateless.
Focused MCP server for OpenAI image/audio generation (v2.0.0). Wraps endpoints via HAPI CLI.
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Related MCP Servers
- AlicenseAqualityDmaintenanceA simple MCP server that reads local images and returns them as ImageContent for LLM vision analysis.1MIT
- AlicenseNot gradedqualityDmaintenanceA lightweight stdio MCP server that adds image understanding to AI coding assistants via a single tool that sends images to any OpenAI-compatible multimodal endpoint.MIT
- AlicenseBqualityCmaintenanceMinimal MCP server for Kimi-compatible image analysis, allowing local images to be sent as inline base64 to any compatible endpoint.12,024 npmMIT
- FlicenseAqualityDmaintenanceStandalone MCP server and CLI for generating images via ChatGPT backend, with reliable exact file paths and multi-account login support.25-