npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@hadialmarzooq/agent-media-mcp

v0.4.1

Published

MCP server for semantic, replayable, and verified media transformations.

Readme

@hadialmarzooq/agent-media-mcp

MCP server for semantic, replayable, and verified media transformations.

What it does

A Model Context Protocol stdio server that exposes Agent Media to AI agents. Sixteen semantic tools covering the full inspect → plan → execute → verify contract, plus plan repair, durable receipts, and content checks.

Install

npm install -g @hadialmarzooq/agent-media-mcp

Prerequisites: Node.js 22+, ffmpeg and ffprobe on PATH.

Tools

| Tool | Description | | ------------------------ | ------------------------------------------------------- | | inspect_media | Inspect normalized media metadata | | get_media_capabilities | Detect local FFmpeg capabilities | | plan_media | Create an inspectable versioned Media IR plan | | validate_plan | Report mechanical plan issues without executing | | repair_plan | Repair a plan and report every change made | | get_media_plan_schema | The canonical Media IR JSON Schema | | make_vertical | Verified 9:16 vertical workflow with progress | | optimize_for_web | Verified web optimization workflow with progress | | normalize_media | Verified high-compatibility normalization with progress | | extract_audio | Verified audio extraction with progress | | extract_frame | Verified still frame extraction with progress | | concatenate_media | Verified concatenation of two or more clips | | execute_media_plan | Execute a serialized or object Media IR plan | | resume_execution | Continue from a saved execution receipt | | inspect_receipt | Validate and read a saved receipt | | verify_media | Verify output against plan expectations |

Every tool declares an outputSchema and returns structuredContent. Read-only tools carry readOnlyHint; writer tools carry destructiveHint.

Usage

Claude Desktop

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "agent-media": {
      "command": "agent-media-mcp",
      "env": { "AGENT_MEDIA_ALLOWED_OUTPUT_DIR": "/Users/you/Movies/agent-output" }
    }
  }
}

Claude Code

claude mcp add agent-media -- agent-media-mcp

Any MCP client

agent-media-mcp

The server runs over stdio. Workflows send standard MCP notifications/progress when the client supplies a progress token, and honour client cancellation. Plan execution and verification accept either a plan object or serialized plan JSON. Tool failures set isError: true and carry the same structured error body as the SDK and CLI.

Limits the operator sets

Limits come from the environment, so they belong to whoever runs the server rather than to the model calling it. No tool accepts them as an argument, so nothing the model sends can widen them.

| Variable | Effect | | -------------------------------- | --------------------------------------------------------- | | AGENT_MEDIA_ALLOWED_OUTPUT_DIR | writes outside this tree fail with PATH_NOT_ALLOWED | | AGENT_MEDIA_TIMEOUT_MS | any FFmpeg run beyond this fails with OPERATION_TIMEOUT | | AGENT_MEDIA_FFMPEG_PATH | an ffmpeg that is not on PATH | | AGENT_MEDIA_FFPROBE_PATH | an ffprobe that is not on PATH |

Without a timeout override, probes get 30 seconds and encodes get 30 minutes.

Why this instead of raw FFmpeg MCP wrappers

  • Semantic workflows instead of an FFmpeg-shaped tool per flag
  • Verification — outputs are re-inspected and checked against plan expectations, not just "exit code 0"
  • Content checks — black frames, silence, frozen video, and whether every stream decodes
  • Portable plans — serialize, persist, replay, audit; each step records why it exists
  • Receipts — a durable record of every run, so a retry skips work that is already correct
  • Structured errors — stable codes with recovery suggestions, not stderr noise

Documentation

License

MIT