Skip to main content
Glama
@pixelvault-dev/local-mcp

@pixelvault-dev/local-mcp

@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-mcp

Related 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.dev

The 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_image

Upload an image or PDF by local path (streamed, no base64), or source_url, or data. Optional folder, visibility, expires_in, metadata, describe (images only: AI alt text + caption + OCR in the background; read it with get_image). PDF URLs are forced downloads and reject image transforms.

list_images

List images in your project (paginated), optionally filtered by custom metadata or searched by AI description (q: alt text, caption, OCR text).

get_image

Metadata for one image by id.

update_image_metadata

Replace an image's custom metadata (replaces, not merges; null clears).

delete_image

Permanently delete an image by id.

sign_url

Mint a time-limited signed URL for a private image.

optimize_image

Compress, resize and convert a local image file on this machine (no API key, nothing uploaded). Writes <name>.optimized.<ext>; never makes a file bigger.

transform_image

Build an on-the-fly transform URL (resize, crop, format, AI background removal, effects).

upload_video

Upload a local MP4 path (direct path up to 100 MB) or securely import source_url. Supports privacy, TTL, metadata, folder, collection, social optimization, private URL expiry, and idempotency.

list_videos / get_video

Discover videos or resume from a stable asset ID; returns current job state and only artifact URLs that exist.

optimize_video / enrich_video

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_video / sign_video_url / delete_video

Update organization/metadata, mint fresh private original/artifact URLs, or delete the video and derivatives.

upload_audio

Host a local MP3/WAV/M4A/OGG path or securely import source_url. Supports privacy, TTL, metadata, folder, collection, private URL expiry, and idempotency.

enrich_audio

Start/resume transcription by aud_ ID. Return IDs immediately or use bounded polling for text, WebVTT, and timestamped JSON.

list_audio / get_audio

Discover audio, transcription status/artifacts, and detected media metadata by stable aud_ ID.

update_audio / sign_audio_url / delete_audio

Update organization/metadata, mint fresh private original/transcript URLs, or delete audio and artifacts.

list_custom_domains

List domains on the active project, DNS/certificate readiness, required records, and account plan capacity.

create_custom_domain / refresh_custom_domain / delete_custom_domain

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

  1. Call upload_video with path or source_url, an idempotency_key, and the intended visibility.

  2. Call enrich_video with the returned id and wait: false. Persist id and enrichment.job_id immediately.

  3. After interruption or in a later turn, call get_video with the asset ID. Poll while status is pending or processing.

  4. On complete, return original_url plus the transcript/storyboard entries present in enrichment. On failed, return its safe error. For private videos, call sign_video_url when fresh bearer URLs are needed.

Audio transcription workflow

  1. Call upload_audio with a local path or public source_url, optional lifecycle fields, and an idempotency_key.

  2. Persist the returned stable aud_ ID. Call enrich_audio with wait: false and persist enrichment.job_id.

  3. Resume with get_audio; while status is pending or processing, wait and call it again. Or call enrich_audio with wait: true and a bounded timeout_seconds.

  4. On complete, return the original plus available text, WebVTT, and timestamped JSON URLs. Use sign_audio_url to 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 tools
create_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

    B3.4/5.0

    Scored across 27 tools

    Disambiguation4/5

    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.

    Naming Consistency4/5

    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.

    Tool Count3/5

    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.

    Completeness3/5

    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

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers