Instagram Download MCP Server
ig-download-mcp
English | 繁體中文
An Instagram MCP (Model Context Protocol) server powered by Instaloader, enabling AI assistants (Claude / Claude Code / Codex) to download Instagram content.
Features
Download posts (images / videos / carousel)
Download videos (Reels / IGTV / video posts)
Download Stories (login required)
Download Highlights (login required)
Download profile pictures
Optionally save metadata (JSON) and captions (text files)
.envand environment variable support for credentials
Requirements
Python >= 3.13
Quick Start
1) Clone
git clone https://github.com/<YOUR_ORG_OR_USER>/ig-download-mcp.git
cd ig-download-mcp2) Install dependencies
uv venv
uv sync3) Configure credentials (recommended)
cp .env.example .env
# Edit .env and fill in your Instagram credentials4) Run the MCP server
uv run ig-download-mcpMCP Configuration
Replace /path/to/ig-download-mcp with your actual installation path.
Claude Desktop
Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS)
or the equivalent file for your platform:
{
"mcpServers": {
"ig-download-mcp": {
"command": "uv",
"args": ["--directory", "/path/to/ig-download-mcp", "run", "ig-download-mcp"]
}
}
}Claude Code
Edit ~/.claude.json:
{
"mcpServers": {
"ig-download-mcp": {
"command": "uv",
"args": ["--directory", "/path/to/ig-download-mcp", "run", "ig-download-mcp"]
}
}
}Codex (OpenAI)
Edit ~/.codex/config.toml:
[mcp_servers.ig_download_mcp]
command = "uv"
args = ["--directory", "/path/to/ig-download-mcp", "run", "ig-download-mcp"]Available Tools
Tool | Description | Login Required |
| Download posts (images/videos/carousel) | Optional |
| Download videos only | Optional |
| Download stories | Required |
| Download highlights | Required |
| Download profile picture | Optional |
Credentials
Recommended: create .env in the project root:
cp .env.example .env
# Edit .env and fill in your Instagram credentialsOr set environment variables:
export IG_USERNAME="your_username"
export IG_PASSWORD="your_password"Notes / Disclaimer
This project is not affiliated with Instagram or Meta.
You are responsible for complying with Instagram's Terms of Service and all applicable laws.
Stories / Highlights require login.
If 2FA / challenge flows are triggered, Instaloader may fail.
Instaloader includes rate limiting; avoid high-frequency downloads.
License
MIT
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/KaiQin04/ig-download-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server