extract-media-source

extract-media-source is a skill for Claude Code, Codex from microlinkhq/mcp. It costs 102 tokens per session (652 once invoked), scanned A, original, MIT.

A guide for finding a direct, playable video or audio file URL from a web or social-media page using Microlink tools. It supports video and audio extraction from services such as YouTube, Vimeo, SoundCloud, and Spotify.

In plain words
What is it for?
Getting playable media URLs, checking whether extraction succeeded, and reading details such as duration, format, size, and video dimensions.
Why use it?
It removes the need to inspect a page manually to find the media file behind the page URL.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/microlinkhq/mcp/extract-media-source
Any agent
npx skills add microlinkhq/mcp --skill extract-media-source
Clone the repo
git clone --depth 1 https://github.com/microlinkhq/mcp

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for extract-media-source

README.md
[![agentmods](https://agentmods.dev/badge/skills/microlinkhq/mcp/extract-media-source.svg)](https://agentmods.dev/skills/microlinkhq/mcp/extract-media-source)
Your own site
<a href="https://agentmods.dev/skills/microlinkhq/mcp/extract-media-source"><img src="https://agentmods.dev/badge/skills/microlinkhq/mcp/extract-media-source.svg" alt="Measured on agentmods" height="20"></a>
Per session 102 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 652 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00102 $0.00652
Opus 5 $0.00051 $0.00326
Sonnet 5 $0.00020 $0.00130
Haiku 4.5 $0.00010 $0.00065

Measured 4d ago against content hash 3d5405bcef09, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

extract-media-source scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/extract-media-source/SKILL.md · 61 lines

What it actually says

Extract playable media sources

Resolve a page URL to a direct, playable media file URL.

Pick the tool

Media Tool Result Platforms
Video microlink_video microlink.data.video.url YouTube, Vimeo, Twitter/X, TikTok, Instagram, Dailymotion, +hundreds
Audio microlink_audio microlink.data.audio.url SoundCloud, Spotify, Mixcloud, + others

Basic call — just pass the page URL:

{ "url": "https://www.youtube.com/watch?v=dQw4w9WgXcQ" }

Read the result

Video (microlink.data.video): url, type, duration, duration_pretty, size, size_pretty, width, height.

Audio (microlink.data.audio): url, type, duration, duration_pretty, size, size_pretty.

Confirm microlink.status === "success" and that data.video / data.audio is present before using the source URL. If it's absent, the page has no detectable playable media at that URL.

Options

  • meta: set false to skip page-metadata extraction and return only the media (faster, smaller). Or pass a meta object to include specific fields.
  • proxy (PRO): route through a proxy for platforms that geo-block or rate-limit — e.g. { "url": "...", "proxy": "http://user:pass@host:port" }.
  • force: true: bypass the cache and re-resolve the source.

Tips & gotchas

  • The returned URL is a direct media link; it may be time-limited or signed by the source platform, so use it promptly rather than storing it long-term.
  • Some platforms restrict access — if extraction fails on a public page, retry with a proxy (PRO plan).
  • Only public URLs are supported; private/age-gated/login-walled media may not resolve.
  • Respect the source platform's terms of service and copyright when reusing media.
  • Free endpoint caps at 50 requests/day; set MICROLINK_API_KEY for more.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 61 lines · 102 tokens per session scan A 3d5405bcef09

Subscribe to this mod's changes

extract-media-source is a skill published in the GitHub repository microlinkhq/mcp (0 stars, last pushed 1mo ago), licensed MIT. It adds 102 tokens to every session and 652 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

chrome-devtools-cli

Use this skill to write shell scripts or run shell commands to automate tasks in the browser or otherwise use Chrome DevTools via CLI.

ChromeDevTools/chrome-devtools-mcp · 31 tokens

chrome-devtools

Uses Chrome DevTools via MCP for efficient debugging, troubleshooting and browser automation. Use when debugging web pages, automating browser interactions, analyzing performance, or inspecting network requests. This skill does not apply to --slim mode (MCP configuration).

ChromeDevTools/chrome-devtools-mcp · 55 tokens

post-to-xhs

小红书内容发布技能。支持两种发布模式:(1) 上传图文模式 - 图片+短文;(2) 写长文模式 - 长篇文章+排版模板。 支持两种输入方式:用户提供完整内容和图片/图片URL,直接发布;或提供网页URL,自动提取内容和图片。 用户说"发长文"时使用长文模式,否则默认图文模式。.

xpzouying/xiaohongshu-mcp · 96 tokens

browser-video-recording

Create polished 60 fps 4:3 4K browser screen-recording style videos from Codex in-app browser captures, with browser-only crop, natural macOS cursor styling, deliberate click choreography, zoom-follow framing, ffprobe/thumbnail verification, and optional native recording compatibility checks. Use when the user asks to…

MengTo/Skills · 114 tokens

2-repro-issue

Reproduce a single LinkedIn-MCP issue locally on the current branch against the real authenticated LinkedIn session at /.linkedin-mcp/profile/, using the MCP streamable-http server. Captures the exact failure mode (tool output, error, missing data) and maps it back to the scraper code path. Use when the user says…

stickerdaniel/linkedin-mcp-server · 75 tokens