igdl
Provides tools to resolve Instagram posts, reels, and carousels, returning metadata and direct media links, and to download all photos and videos in carousel order at the best available quality.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
$ igdl https://www.instagram.com/p/DgIxT9JG6no/
✓ https://www.instagram.com/p/DgIxT9JG6no/ @instagram 8 file(s)
downloads/instagram_DgIxT9JG6no_1.jpg
downloads/instagram_DgIxT9JG6no_2.mp4
downloads/instagram_DgIxT9JG6no_3.jpg
…Features
Everything in the post: single photos, reels, videos and mixed carousels, in carousel order.
Best quality: full-size original photos, and the best video merged with its audio.
Four ways to use it: a CLI, a Node library, an MCP server, and a Claude Code plugin with a ready-made skill.
Metadata: author, caption, date, likes, comments, and direct media links.
Low maintenance: Instagram access goes through yt-dlp. When Instagram changes something, run
yt-dlp -U.Your login, if you want it: read cookies from your own browser for private posts you can see.
Related MCP server: instagram-mcp
Quick start
pipx install yt-dlp # or: pip install -U yt-dlp
git clone https://github.com/bobobowis/igdl && cd igdl
npm install && npm link # puts `igdl` on your PATH
igdl https://www.instagram.com/reel/DgLBIFYxY4O/CLI
igdl <url...> [-d <dir>] download posts/reels/carousels (default dir: ./downloads)
igdl info <url...> print metadata + direct media links as JSON
igdl mcp run the MCP server on stdio
-d, --dir <dir> download directory
-c, --cookies <browser> use your Instagram login from firefox | chrome | edge | brave | …Files are named <username>_<shortcode>[_<n>].<ext>.
Library
import { createClient } from 'igdl';
const ig = createClient(); // or createClient({ cookiesFromBrowser: 'firefox' })
const post = await ig.resolve('https://www.instagram.com/p/DgIxT9JG6no/');
post.meta; // { username, shortcode, caption, takenAt, likes, comments }
post.items; // [{ index, type: 'image' | 'video', ext, width, height, url, headers, thumbnail }]
const { files } = await ig.download(url, { dir: './downloads' });Direct urls point at Instagram's CDN and expire after a few hours. Send the given headers with them.
MCP server
igdl provides two tools to any MCP client:
Tool | What it does |
| Returns metadata and direct photo/video links |
| Saves every item and returns the file paths (default |
Claude Code:
claude mcp add igdl -- node /path/to/igdl/src/launch.jsClaude Desktop, Cursor and others:
{
"mcpServers": {
"igdl": { "command": "node", "args": ["/path/to/igdl/src/launch.js"] }
}
}launch.js installs the npm dependencies on first run and warns you if yt-dlp is missing.
Claude Code plugin
Installs the MCP server plus an instagram-download skill, so Claude knows when and how to use it:
/plugin marketplace add bobobowis/igdl
/plugin install igdl@igdlThen paste a link and ask "save this".
How it works
flowchart LR
URL[Instagram URL] --> Y["yt-dlp -J<br/>(one request to Instagram)"]
Y --> M[post metadata]
M -->|videos| V["yt-dlp --load-info-json<br/>best video + audio"]
M -->|photos| P["fetch full-size image<br/>(yt-dlp skips photos)"]
V --> F[(files)]
P --> Fyt-dlp handles Instagram access and its changes. igdl adds photo support, carousel ordering, consistent file names, and the library, MCP and skill layers on top.
Configuration
Variable | Default | Purpose |
| none | Browser to read your Instagram login from |
|
| Default download dir for the MCP server |
|
| Path to the yt-dlp binary |
Troubleshooting
Message | Fix |
|
|
| The post is private or deleted, or logged-out access is being throttled. Try |
| Wait a few minutes. Logged-out access is limited per IP. |
It worked yesterday |
|
Disclaimer
For personal use. Download only content you have the right to save, respect creators, and follow Instagram's Terms of Use. Not affiliated with Instagram or Meta.
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Instagram data over MCP: profiles, posts, reels, stories, highlights and search as JSON
Create, schedule and publish Instagram posts and comment auto-replies from any MCP client.
Threads, Instagram reels & profiles, Truth Social posts & LinkedIn company/profile scraper MCP API.
Threads, Instagram reels & profiles, Truth Social posts & LinkedIn company/profile scraper MCP API.
Related MCP Servers
- AlicenseCqualityDmaintenanceA lightweight MCP service that enables programmatic downloading of Instagram videos to a specified local path with progress tracking.14ISC
- FlicenseBqualityDmaintenanceProvides Instagram analytics, media downloads, and search capabilities through an MCP interface for use with Claude and other MCP clients.4345-
- AlicenseNot gradedqualityCmaintenanceMCP server for downloading Instagram content (videos, reels, audio, carousels) using yt-dlp, with tools for downloading media and fetching metadata. Supports stdio and HTTP transports.MIT
- AlicenseAqualityBmaintenanceEnables MCP clients to retrieve read-only public Instagram data through 27 tools covering profiles, posts, reels, stories, highlights, comments, likers, followers, hashtags, places, audio and keyword search. No login is required, and every response reports remaining API credits.271MIT