SuperAPIAI Directory

appsgolem-mcp

github.com · AI video

🎖️ 📇 ☁️ 🏠 🍎 🪟 🐧 - Cut clips from YouTube videos via the AppsGolem API in a chosen format and quality, and get a direct download URL.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)

About this tool

Purpose

appsgolem-mcp is an MCP (Model Context Protocol) server that wraps the AppsGolem YouTube clipping API. Its goal is to enable AI agents to programmatically cut clips from YouTube videos and obtain direct download links. The REST logic lives in a lightweight client with minimal dependencies (src/client.ts), and src/server.ts is a thin MCP tool layer on top of it.

Main capabilities

The server exposes three tools:

  1. cut_youtube_video: Cuts a clip or a batch of clips from a YouTube video. By default it waits for the clip to be produced and returns its status (including download_url once the download token is ready); set wait: false to submit immediately and return the current task (the status is usually queued after dispatch). It supports multiple modes, such as normal clips, audio_only (audio), short (vertical short video), gif, frames (frame extraction, which can generate a contact sheet), stitching (stitch), and fast stream copy (fast).

  2. get_cut_status: Queries the status of a clipping task by task id. Used for polling tasks started with wait=false or tasks that timed out. The status flow is accepted → queued → produced → delivered, and on error it is failed → refunded.

  3. get_account_balance: Returns the API account's spendable credit balance and current hourly cap, with no parameters required.

Usage

  • Environment requirements: Node.js >= 18 (uses global fetch); an AppsGolem API key (ag_live_…) is required, which can be obtained by registering at appsgolem.com/agents, adding prepaid credits, and generating a key in the dashboard.
  • Installation/connection: No manual installation is required; npx will fetch and run the server on demand. For Claude Desktop / Cursor, add the configuration to the client's MCP config (such as claude_desktop_config.json); for Claude Code, use a single command. The server transports MCP over stdio. A missing APPSGOLEM_API_KEY at startup is not a fatal error—the server will still start and advertise its tools, but each call will return an explicit config_error prompting you to set the key.
  • Example prompts: The agent chooses parameters based on your request, so you can drive it in natural language, for example “Cut 0:30 to 1:15 from https://youtu.be/dQw4w9WgXcQ in 1080p.”, “Grab the audio of that video from 2:00 to 5:00 as an mp3.”, “Make a vertical short of the 10:00–10:45 highlight.”, “Turn 0:05–0:12 into a GIF.”, “Extract a contact sheet of frames every 5 seconds from 1:00 to 2:00.”, “Stitch 0:10–0:20 and 1:00–1:10 into one clip.”, “Do a fast, stream-copy cut of 0:00–0:30.”, “How many API credits do I have left?”.

Billing and limits

  • Billing: 1 produced clip = 1 credit. 2160p (4K) = 4 credits per clip, except for audio_only, which is still 1 credit. When the source video exceeds 2 hours and its duration is known, 1 extra credit is charged per task (if probing cannot determine the duration, the surcharge is skipped). Batch/stitch of N clips is billed as N per-clip charges. Failed clips are not billed.
  • Results and errors: Calls validated through the MCP input schema return structured results—the API's own JSON on success, and { "error": … } on any handler/API failure, and never raise protocol-level errors, so the agent always gets a usable object. API-level errors (such as 400 validation, 402 insufficient_credits, 404 not_found, 409 idempotency_conflict / duplicate_in_flight, 429 rate_limited, 503 rate_limiter_unavailable / database_busy) are returned as the API's own error body plus a status field. 429 also includes retry_after (seconds, from Retry-After) and reason (submission_cap · request_rate · poll_rate), so thatThe agent determines which limit was triggered and backs off correctly. A 503 is usually temporary (retry later), but a persistent 503 is a server-side problem and should be reported rather than retried indefinitely.
  • Polling: Under normal use, status polling is not subject to rate limits—checking task progress does not count toward the hourly submission cap. There is no need to throttle get_cut_status yourself: cut_youtube_video(wait=true) will poll and pace for you (following the server's poll_after cadence and any Retry-After), so a single tool call can handle long tasks.
  • Download links: The produced download links expire after a limited window (by default about 72 hours on appsgolem.com, configurable per deployment)—retrieve the files within this window. A relative download_url (the path returned by the API) is resolved to a full URL against the configured API base only if the result remains on that origin. Any download_url that resolves outside the API origin—an absolute URL pointing to another host, or a relative path that escapes the origin—is discarded for security: the field is removed, and the result carries download_url_dropped: true so it can be distinguished from a task that has not yet produced output. When cut_youtube_video is in a waiting state (wait=true, the default), an off-origin link is surfaced as a download_url_unsafe error instead of returning a bad URL.

Applicable scenarios

Suitable for scenarios that require an AI agent to automatically extract clips, audio, GIFs, frames, or concatenated segments from YouTube videos, such as content creation, material organization, and automated editing workflows.

Limitations

Requires Node.js >= 18 and an AppsGolem API key; uses prepaid credits, requiring registration and top-up at appsgolem.com/agents; download links have an expiration period; some errors (such as persistent 503) require manual handling.

Up/Down to navigate · Enter to open · ESC to closeBrowse all tools