🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@agentmedia/mcp-server

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@agentmedia/mcp-server

MCP server for agent-media — generate AI UGC videos from Claude Code, Cursor, Windsurf, or any MCP-compatible client.

latest
Source
npmnpm
Version
0.7.9
Version published
Weekly downloads
178
125.32%
Maintainers
1
Weekly downloads
 
Created
Source

@agentmedia/mcp-server

MCP server for agent-media — generate AI UGC videos from Claude Code, Cursor, Windsurf, or any MCP-compatible client.

UGC for developers. Script in, video URL out — directly from your IDE.

npm version license

What It Does

Five tools that let AI agents generate UGC videos:

ToolDescription
create_videoGenerate a UGC video from a script. Polls until complete, returns the video URL.
show_your_appGenerate an actor holding a phone that shows your app screenshot.
product_acting_ugcGenerate an actor presenting or reacting to a product image.
list_actorsBrowse available AI actors — slugs, names, demographics.
get_video_statusCheck a generation job's status, video URL, or error message.

Setup

1. Get an API Key

Sign up at agent-media.ai and generate an API key in Settings.

2. Configure Your IDE

Claude Code

Add to ~/.claude/settings.json:

{
  "mcpServers": {
    "agent-media": {
      "command": "npx",
      "args": ["-y", "@agentmedia/mcp-server"],
      "env": {
        "AGENT_MEDIA_API_KEY": "ma_your_key_here"
      }
    }
  }
}

Cursor

Open Settings > MCP Servers > Add Server:

{
  "agent-media": {
    "command": "npx",
    "args": ["-y", "@agentmedia/mcp-server"],
    "env": {
      "AGENT_MEDIA_API_KEY": "ma_your_key_here"
    }
  }
}

Windsurf

Open Settings > MCP > Add:

{
  "agent-media": {
    "command": "npx",
    "args": ["-y", "@agentmedia/mcp-server"],
    "env": {
      "AGENT_MEDIA_API_KEY": "ma_your_key_here"
    }
  }
}

Global Install (Alternative)

npm install -g @agentmedia/mcp-server
export AGENT_MEDIA_API_KEY=ma_your_key_here
agent-media-mcp

Usage Examples

Once configured, ask your AI assistant:

"Generate a 10-second UGC video with Sofia explaining why our product is great"

"List available actors and create a SaaS Review video with an enthusiastic tone"

"Create a product acting UGC video with Sofia holding this perfume bottle image"

"Check the status of job abc123"

The MCP server handles the API calls, polling, and returns the finished video URL.

Tool Parameters

create_video

ParameterTypeDescription
scriptstringVideo script (50-3000 chars). Required unless prompt is set.
promptstringAI generates the script from this prompt.
actor_slugstringActor to use (from list_actors).
tonestringenergetic, calm, confident, dramatic
musicstringchill, energetic, corporate, dramatic, upbeat
stylestringSubtitle style — 17 options including hormozi, bold, neon, fire
target_durationnumber5, 10, or 15 seconds
aspect_ratiostring9:16, 16:9, 1:1
allow_brollbooleanInclude AI-generated B-roll footage
templatestringsaas-review, testimonial, monologue, listicle, etc.
composition_modestringpip for picture-in-picture
webhook_urlstringAsync completion callback URL

product_acting_ugc

ParameterTypeDescription
product_image_urlstringPublic product image URL. Required.
actor_slugstringActor to use (from list_actors). Required.
product_descriptionstringProduct context used when script is omitted.
scriptstringExact words the actor says. Optional if product_description is provided.
templatestringproduct-in-hand, mirror-selfie, bathroom-reaction, kitchen-counter, car-selfie, couch-review, expert-interview, product-closeup
acting_stylestringraw-selfie, shocked, angry, excited, dramatic, weird-hook, casual-demo, honest-review
durationnumber5, 10, or 15 seconds
subtitle_stylestringhormozi or none

list_actors

ParameterTypeDefaultDescription
limitnumber20Max actors to return (max 200)
offsetnumber0Pagination offset

get_video_status

ParameterTypeRequiredDescription
job_idstringYesJob ID from create_video

Webhooks

Pass webhook_url to create_video to get notified when the job completes or fails instead of polling.

Payload on success: { job_id, status: "completed", video_url } Payload on failure: { job_id, status: "failed", error_message }

Must be https://, publicly reachable, max 2048 chars. On non-2xx response, agent-media retries 3× with exponential backoff (1 s, 4 s, 16 s). Query strings are preserved — append ?secret=MY_TOKEN to verify authenticity.

Environment Variables

VariableRequiredDefaultDescription
AGENT_MEDIA_API_KEYYesYour API key (ma_xxx format)
AGENT_MEDIA_API_URLNoProduction APIOverride the API base URL
PackageDescription
@agentmedia/sdkTypeScript SDK for direct API integration
agent-media-cliCLI tool — generate videos from your terminal
@agentmedia/schemaShared schema — enums, types, Zod validation
agent-mediaPython SDK

License

Apache-2.0

Keywords

mcp

FAQs

Package last updated on 01 Aug 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts