@pixelvault-dev/local-mcp
A local stdio MCP server for PixelVault that hosts images, PDFs, video, and audio from your machine's disk (streamed, no base64), plus URL-based management and on-the-fly transforms.
Upload images/PDFs by local
path,source_url, or base64data(max 5 MB; JPG/PNG/GIF/WebP/AVIF/SVG/PDF), with folders, metadata, TTL, visibility, and optional AIdescribe(alt text, caption, OCR).Manage images: list (paginated, metadata filters, AI-description search), get, update metadata, delete, and mint signed URLs for private images.
Transform images: build CDN transform URLs (resize/crop, format/quality, AI background removal, blur/sharpen/rotate/flip, brightness/contrast/saturation, watermark tiling, size presets).
Optimize local images offline with
sharp(compress/resize/convert, strip EXIF/GPS, dry-run, in-place) — no API key or upload.Upload and manage videos: local MP4 up to 100 MB or HTTPS import, with idempotency, privacy, TTL, folders, collections, metadata; list/get/resume by
vid_ID, update, sign private URLs, delete.Optimize/enrich videos: start social-ready optimization or transcript/storyboard enrichment asynchronously, with bounded polling and resume via
get_video.Upload and manage audio (MP3/WAV/M4A/OGG ≤25 MB, or public URL), with the same lifecycle/metadata/privacy controls; list, get, update, sign URLs, delete.
Transcribe audio via
enrich_audio— text, WebVTT, and timestamped JSON, with async or bounded-wait polling.Custom domains: list domains with DNS/cert readiness and plan capacity, create, refresh, and delete them (branded URLs returned in media responses).
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 media hosting.
The difference from the hosted MCP server (mcp.pixelvault.dev): this one runs on
your machine, so it can upload a local image, PDF, MP4, MP3, WAV, M4A, or OGG by path. It reads the
bytes off disk and sends them directly to the API; the file is never base64-encoded into the model's context.
That keeps media bytes 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 an image or PDF 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). |
| Upload a local MP4 |
| Discover videos or resume from a stable asset ID; returns current job state and only artifact URLs that exist. |
| Start asynchronous social optimization or transcript/storyboard enrichment. Returns asset/job IDs immediately by default; optional bounded wait never cancels a timed-out server job. |
| Update organization/metadata, mint fresh private original/artifact URLs, or delete the video and derivatives. |
| Host a local MP3/WAV/M4A/OGG |
| Start/resume transcription by |
| Discover audio, transcription status/artifacts, and detected media metadata by stable |
| Update organization/metadata, mint fresh private original/transcript URLs, or delete audio and artifacts. |
| List domains on the active project, DNS/certificate readiness, required records, and account plan capacity. |
| Attach a customer-owned hostname, re-check readiness after DNS changes, or remove it. Canonical URLs keep working after removal. |
Image CDN URLs support on-the-fly transforms via query params — see the
transforms docs. PDFs are download-only attachments and do not support transforms.
Media API results keep canonical url and include optional branded_url when the active project has a ready custom domain. Use the returned branded value; do not rebuild signed links.
Resume-safe video workflow
Call
upload_videowithpathorsource_url, anidempotency_key, and the intendedvisibility.Call
enrich_videowith the returnedidandwait: false. Persistidandenrichment.job_idimmediately.After interruption or in a later turn, call
get_videowith the asset ID. Poll while status ispendingorprocessing.On
complete, returnoriginal_urlplus the transcript/storyboard entries present inenrichment. Onfailed, return its safe error. For private videos, callsign_video_urlwhen fresh bearer URLs are needed.
Audio transcription workflow
Call
upload_audiowith a localpathor publicsource_url, optional lifecycle fields, and anidempotency_key.Persist the returned stable
aud_ID. Callenrich_audiowithwait: falseand persistenrichment.job_id.Resume with
get_audio; while status ispendingorprocessing, wait and call it again. Or callenrich_audiowithwait: trueand a boundedtimeout_seconds.On
complete, return the original plus available text, WebVTT, and timestamped JSON URLs. Usesign_audio_urlto refresh all private URLs.
Audio originals and enrichment sources have an approved global maximum of 25,000,000 bytes; enrichment additionally accepts up to 10 minutes. The file ceiling is not a plan allowance. Audio and video enrichment share the existing plan allowance. A local wait timeout does not cancel the server job. The original is preserved without transcoding; editing, conversion, HLS/DASH, summaries, chapters, show notes, promo copy, and storyboards remain unsupported. Private audio never falls back to a public URL.
Local binary upload intentionally uses the API's direct MP4 route and rejects files over 100 MB before reading them. Use an official SDK's resumable upload for larger local files. URL imports require a public HTTPS source. Optimization accepts sources up to 100 MB and 60 seconds; enrichment accepts 1 second through 10 minutes and up to 100 MB. Quota, unsupported-source, and validation failures preserve the API's machine-readable error code.
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
27 toolscreate_custom_domainCreate custom domainA
Attach a customer-owned hostname to the active project and return the required CNAME and optional TXT verification records.
Inputs: hostname (required).
delete_audioDelete audioA
Permanently delete an audio original, transcript artifacts, and active-job state, releasing applicable storage and reserved enrichment seconds.
Inputs: id (required).
delete_custom_domainDelete custom domainB
Remove a custom domain. Canonical img.pixelvault.dev URLs keep working.
Inputs: id (required).
delete_imageDelete imageA
Permanently delete one PixelVault image by id (DELETE /v1/images/:id).
Inputs: id (required).
delete_videoDelete videoA
Permanently delete a video original and all available derived artifacts.
Inputs: id (required).
enrich_audioEnrich audioA
Start or resume transcription for a hosted aud_ asset. Returns stable asset/job IDs immediately by default, or polls with bounded backoff when wait=true. Produces plain text, WebVTT, and timestamped JSON when complete; no storyboard.
Inputs: id (required), wait, timeout_seconds.
enrich_videoEnrich videoA
Start transcript/storyboard enrichment. Returns asset/job IDs immediately by default; optional bounded polling can be resumed with get_video. Local timeout does not cancel the server job.
Inputs: id (required), wait, timeout_seconds.
get_audioGet audio status and artifactsA
Get the original, transcription job state, available transcript URLs, privacy, expiry, media metadata, and organization by stable aud_ 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). Image CDN URLs support 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. PDFs are forced downloads and reject transforms. See https://pixelvault.dev/docs/transforms/.
Inputs: id (required).
get_videoGet videoB
Resume from a stable video asset ID and return current optimization/enrichment status plus only the original, poster, transcript, storyboard, and optimized URLs that exist.
Inputs: id (required).
list_audioList audioC
List project audio with pagination and optional folder, collection, or metadata filters.
Inputs: page, folder, metadata, per_page, +1 more.
list_custom_domainsList custom domainsA
List custom domains, readiness, DNS records, and plan capacity for the active project. Media responses include branded_url when a domain is ready.
Inputs: no named parameters.
list_imagesList imagesA
List images in your PixelVault project, most recent first (GET /v1/images), paginated via page/per_page; optional metadata filters by custom metadata and q searches AI descriptions. Image CDN URLs support 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. PDFs are forced downloads and reject transforms. See https://pixelvault.dev/docs/transforms/.
Inputs: q, page, metadata, per_page.
list_videosList videosB
List project videos with pagination and optional folder, collection, or metadata filters.
Inputs: page, folder, metadata, per_page, +1 more.
optimize_imageOptimize local imageA
Compress, resize and convert a LOCAL image file on this machine — no API key, nothing is uploaded. Use before committing or attaching an image, or when asked to make an image smaller. path is the file; optional format (keep|webp|avif|jpg|png, default keep), max_width/max_height (never upscales), quality (1-100, default 80), keep_metadata (EXIF/GPS is stripped by default), output_path or in_place, and dry_run to preview. Writes .optimized. next to the original by default and never makes a file bigger (an already-optimal file is left alone). Supports JPG/PNG/WebP/AVIF; for an image already hosted on PixelVault use transform_image (fmt/q/w) instead.
Inputs: path (required), format, dry_run, quality, +5 more.
optimize_videoOptimize videoA
Start social-ready optimization. Returns asset/job IDs immediately by default; optional bounded polling can be resumed with get_video. Local timeout does not cancel the server job.
Inputs: id (required), wait, timeout_seconds.
refresh_custom_domainRefresh custom domainA
Refresh DNS and certificate status after changing the hostname's records.
Inputs: id (required).
sign_audio_urlSign audio URLsA
Mint fresh time-limited original and available transcript URLs for private audio. This does not change privacy or deletion TTL.
Inputs: id (required), expires_in.
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.
sign_video_urlSign video URLsB
Mint expiry-matched private original, poster, optimized, and available enrichment artifact URLs. No artifact URL is invented before the artifact exists.
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.
update_audioUpdate audioB
Replace audio metadata, folder, or existing collection membership. Null clears a field.
Inputs: id (required), folder, metadata, collection_id.
update_image_metadataUpdate image metadataA
Replace one image's custom metadata (a JSON object you can later filter list_images by). The object replaces the stored one, so send every key to keep; null clears it (PATCH /v1/images/:id).
Inputs: id (required), metadata (required).
update_videoUpdate videoA
Replace video metadata, folder, or existing collection membership. Null clears a field.
Inputs: id (required), folder, metadata, collection_id.
upload_audioUpload audioA
Upload a local MP3, WAV, M4A, or OGG path or securely import a public HTTP(S) URL. Supports public/private access, deletion TTL, folder, collection, metadata, private URL expiry, and replay-safe idempotency. The server validates actual container/codec bytes. Originals are limited to the approved global 25,000,000-byte maximum, not a plan allowance.
Inputs: path, folder, filename, metadata, +6 more.
upload_imageUpload image or PDFA
Upload an image or PDF 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, metadata (custom JSON tags), describe (images only: AI alt text + caption + OCR, async), filename, visibility (private → signed URL, needs a secret key), expires_in (auto-expiring upload), sign_expires_in. Max 5 MB; JPG/PNG/GIF/WebP/AVIF/SVG/PDF. Image CDN URLs support 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. PDFs are forced downloads and reject transforms. See https://pixelvault.dev/docs/transforms/.
Inputs: data, path, folder, describe, +6 more.
upload_videoUpload videoA
Upload a local MP4 path (direct uploads up to 100 MB) or securely import a public HTTPS MP4 URL. Supports public/private access, deletion TTL, folder, collection, metadata, private URL expiry, social-ready optimization, and replay-safe idempotency. Returns the stable asset ID immediately.
Inputs: path, folder, filename, metadata, +7 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 27 tools
Resource prefixes (image/video/audio/custom_domain) plus a distinct verb make nearly every tool separable at a glance, including the tricky transform_image vs optimize_image (hosted vs local) pair. Minor friction: `sign_url` is image-specific but named generically while siblings are `sign_video_url`/`sign_audio_url`, and `enrich_video` vs `optimize_video` require reading descriptions to separate enrichment from encoding.
Strong snake_case verb_noun pattern throughout (get_image, delete_audio, create_custom_domain, refresh_custom_domain). Deviations are small but real: `sign_url` omits the resource noun its siblings include, and `update_image_metadata` is more granular than the plain `update_video`/`update_audio` counterparts.
27 tools is heavy and sits just above the comfortable band, but the surface is cleanly partitioned into four families (images ~9, video ~7, audio ~6, domains ~4) that each need upload/get/list/update/delete/sign coverage. Borderline rather than bloated, though consolidation of the three sign_* and three delete_* variants is plausible.
Media lifecycle plus enrichment and signing is well covered, but folders and collections are repeatedly referenced as upload/update parameters with no tools to list, create, or manage them. Images also lag video/audio: only metadata can be updated post-upload (no visibility/folder/expiry changes), so agents hitting those cases will dead-end.
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.1MIT
- FlicenseAqualityDmaintenanceStandalone MCP server and CLI for generating images via ChatGPT backend, with reliable exact file paths and multi-account login support.25-