Instagram MCP Server (Rust)
A Model Context Protocol server for the Instagram Graph API, built with Rust. Provides AI applications with programmatic access to Instagram Business accounts via MCP tools, resources, and prompts.
Power your agent
การติดตั้งจากผู้เผยแพร่ ไม่ใช่เอนด์พอยต์ของ PlugMCP
URL แบบรีโมตหรือคำสั่งบนเครื่องของคุณ? การติดตั้งสองแบบต่างกันอย่างไร
รันบน PlugMCP
A new server you create. It is not this listing's official endpoint. Use the publisher install when you want their URL and their credentials.
เปิดจากผู้เผยแพร่
A Model Context Protocol server for the Instagram Graph API, built with Rust. Provides AI applications with programmatic access to Instagram Business accounts via MCP tools, resources, and prompts.
A production-ready Model Context Protocol (MCP) server that enables AI applications to seamlessly interact with Instagram Business accounts.
instagram://profile/{account_id} — profile infoinstagram://media/{account_id} — recent postsinstagram://insights/{media_id} — post analyticsinstagram://account-insights/{account_id} — account analyticsCargo.tomlStandard Access (available immediately):
instagram_basicinstagram_content_publishinstagram_manage_insightsinstagram_manage_commentspages_show_listpages_read_engagementpages_manage_metadatapages_read_user_contentbusiness_managementAdvanced Access (requires Meta App Review):
instagram_manage_messages — required for DM features⚠️ See INSTAGRAM_DM_SETUP.md for the App Review process.
📖 See AUTHENTICATION_GUIDE.md for a 5-minute setup guide.
Create a .env file in the project root:
INSTAGRAM_ACCESS_TOKEN=your_long_lived_token
FACEBOOK_APP_ID=your_app_id
FACEBOOK_APP_SECRET=your_app_secret
INSTAGRAM_BUSINESS_ACCOUNT_ID=your_ig_business_id
The server also symlinks ../.env for development — a .env at the parent level works too.
# Build
cargo build --release
# Run (stdio transport — connects to any MCP host)
cargo run
Output goes to stderr (JSON-formatted tracing). Stdout is reserved for the MCP protocol transport.
Edit claude_desktop_config.json:
{
"mcpServers": {
"instagram": {
"command": "/path/to/ig-mcp-rust/target/release/ig-mcp",
"env": {
"INSTAGRAM_ACCESS_TOKEN": "your_access_token",
"FACEBOOK_APP_ID": "your_app_id",
"FACEBOOK_APP_SECRET": "your_app_secret"
}
}
}
}
Point the host at the compiled binary with stdio transport. All configuration is via environment variables.
Once connected, you can ask your AI assistant:
ig-mcp-rust/
├── src/
│ ├── main.rs # Entrypoint, config loading, token validation
│ ├── lib.rs # Module re-exports
│ ├── client.rs # InstagramClient — HTTP + rate limiting + cache
│ ├── server.rs # InstagramMcpServer — MCP handler
│ ├── models.rs # Request/response types & params
│ ├── config.rs # Env-based configuration
│ └── error.rs # Unified AppError enum
├── Cargo.toml
├── AGENTS.md
├── AUTHENTICATION_GUIDE.md
├── INSTAGRAM_DM_SETUP.md
└── README.md
governor token bucket (burst = quota).moka (async, TTL-based). Only GET responses are cached; mutations bypass cache.https://graph.facebook.com/v22.0 (separate from the main API).RATE_LIMIT_REQUESTS_PER_HOUR)instagram:// resource URIs for quick data access without tool callsMcpToolResult { success, data, error, metadata }.cargo build
cargo check # Fast lint-style verification
cargo run # Run with .env config
Contributions welcome — open an issue or PR.
MIT — see LICENSE.
A production-ready Model Context Protocol (MCP) server that enables AI applications to seamlessly interact with Instagram Business accounts.
เครื่องมือ
ยังไม่มีรายการเครื่องมือ เซิร์ฟเวอร์แบบรีโมตจะได้รายการหลังการตรวจสอบสถานะครั้งแรก
FAQ
คัดลอกคอนฟิก stdio สำหรับ Cursor, Claude Desktop, Claude Code หรือ VS Code ได้ในหน้านี้ คอนฟิกนี้ใช้การติดตั้งของผู้เผยแพร่ ไม่ใช่พร็อกซีของ PlugMCP
ระเบียนนี้ไม่ได้ระบุตัวแปรสภาพแวดล้อมที่จำเป็น
Instagram ทำงานแบบโลคัลผ่าน stdio
ตรวจสอบล่าสุดเมื่อ 2026-10-26 A production-ready Model Context Protocol (MCP) server that enables AI applications to seamlessly interact with Instagram Business accounts.