meta-mcp
This server offers 66 tools to manage Instagram, Threads, and the Meta platform through your AI assistant.
Meta Platform
Exchange, refresh, debug access tokens; retrieve app info; manage webhook subscriptions.
Publishing: Photos, videos, carousels, reels, stories with captions, alt text, user/location tags; check container status.
Media & Engagement: List, get, delete media; post-level insights (views, reach, saved, shares, etc.); toggle comments.
Comments: Get, post, reply, hide, delete comments.
Profile & Insights: Get profile, account-level insights, business discovery, collaboration invites.
Hashtags: Search, info, recent/top media by hashtag.
Mentions & Tags: Get mentioned comments, tagged media.
Messaging: List conversations, get/send messages.
Threads
Publishing: Text, image, video, carousel posts; features include polls, GIFs, link attachments, topic tags, spoiler flags, ghost posts, reply approvals, cross-share to Instagram Stories, location tagging; delete posts (up to 100/day); publishing limit 250 posts/day.
Media & Search: List posts, get details, public profile posts, search posts by keyword/topic.
Replies: Get top-level or full conversations, reply with attachments, hide/unhide, manage reply approvals.
Profile & Discovery: Get profile (including verification), lookup profiles, list user threads.
Mentions: Get mention posts.
Locations: Search locations, get location info.
Tools & Insights: oEmbed data, post-level and account-level insights.
Cross-Platform
Predefined prompts for cross-posting to both Instagram and Threads, and generating combined analytics reports.
Provides comprehensive tools for publishing photos, videos, reels, stories, and carousels, alongside features for managing comments, direct messages, hashtag searching, and detailed account and post-level insights.
Offers platform-level utilities for managing Meta Developer App credentials, including token exchange, refresh, and debugging, as well as webhook subscription management.
Enables publishing text and media posts with support for polls, GIFs, and topic tags, as well as managing replies, searching public posts, and tracking account and post performance analytics.
English | 한국어
meta-mcp
Full-coverage MCP server for Instagram Graph API (v26.0), Threads API, and Meta platform management.
When to Use
Tell your AI assistant things like:
"Post a photo to Instagram" — publish photos, videos, reels, stories, and carousels
"Publish a text post on Threads" — text posts with polls, GIFs, link attachments, and topic tags
"Get my Instagram follower count and insights" — account and post-level analytics
"Schedule a carousel post" — multi-image albums on Instagram (2-10) or Threads (2-20)
"Reply to comments on my latest post" — read and respond to comments on both platforms
"Cross-post to Instagram and Threads" — use the built-in
content_publishprompt"Get analytics for my Threads account" — views, likes, replies, reposts, quotes, clicks
"Manage Instagram DMs" — list conversations, read messages, send replies
AI Agent Integration: See
llms.txtfor a machine-readable summary, or copytemplates/CLAUDE.md/templates/AGENTS.mdinto your project for automatic MCP discovery.
Related MCP server: instagram-mcp
Features
66 tools across Instagram (33), Threads (27), and Meta platform (6)
Instagram: Publish photos/videos/reels/stories/carousels with alt text, manage comments, view insights, search hashtags, handle DMs, manage collaboration invites
Threads: Publish text/images/videos/carousels with polls, GIFs, topic tags, link attachments, alt text, spoiler flags, ghost posts, reply approvals, location tags, and Instagram Stories cross-sharing; manage replies and pending reply approvals; search posts and locations; profile/mentions discovery; oEmbed; view insights; delete posts
Meta: Token exchange/refresh/debug, webhook management
2 resources: Instagram profile, Threads profile
2 prompts: Cross-platform content publishing, analytics report
Rate limit tracking via
x-app-usageheader
What's New in v2.1.0
Graph API v26.0: Upgraded from v25.0 (no deprecated fields/endpoints from the v26.0 changelog were in use)
Tenor removed: GIPHY is now the only GIF provider (Tenor was sunset March 31, 2026);
gif_providerparam droppedThreads Ghost Posts:
is_ghost_postonthreads_publish_text(auto-archived after 24h)Threads Reply Approvals:
enable_reply_approvalson publish tools, plusthreads_get_pending_repliesandthreads_manage_pending_replyThreads → Instagram Stories cross-share:
crossreshare_to_ig/crossreshare_to_ig_dark_modeon all publish toolsThreads Location Tagging:
location_idon publish tools, plusthreads_search_locationsandthreads_get_locationThreads Profile Discovery:
threads_lookup_profileandthreads_get_profile_postsfor public profilesThreads Mentions:
threads_get_mentionsThreads oEmbed:
threads_get_oembedfor embedding public postsThreads Conversations:
threads_get_conversationfor flattened (nested) reply threadsFixed
threads_search_posts: now calls the correct/keyword_searchendpoint with the correctsearch_mode/search_typeparameters (previous version targeted a non-existent endpoint)Post/reply fields expanded with
is_verified,profile_picture_url,location_id,root_post,replied_to,reply_audience
What's New in v2.0.0
Graph API v25.0: Upgraded from v21.0 (expired Sep 2025) to v25.0 (current)
Fixed deprecated metrics:
impressions,video_views,engagementreplaced withviews,reach,saved,sharesThreads polls: Create posts with interactive poll attachments
Threads GIFs: Attach GIFs from GIPHY or Tenor
Threads topic tags: Categorize posts with topic tags
Threads link attachments: Attach URL preview cards to text posts
Threads post search: Search public posts by keyword or topic tag
Threads post deletion: Delete posts (rate limited to 100/day)
Threads publishing limit: Check remaining quota
Threads quote posts: Quote other posts by ID
Threads spoiler flag: Mark content as spoiler
Threads alt text: Add accessibility descriptions to all media types
Threads new reply controls:
parent_post_author_onlyandfollowers_onlyoptionsInstagram alt text: Support for photo, reel, and carousel items
Instagram collaboration invites: Query and respond to collab invites
Updated insights metrics: New
clicks,reposts,reels_skip_ratemetrics
Account Requirements
Platform | Account Type | Notes |
Business or Creator account | Personal accounts cannot use the Graph API. Free to switch in Instagram settings | |
Threads | Any account | All Threads accounts can use the API (Instagram account link no longer required since Sep 2025) |
Meta (token/webhook tools) | Meta Developer App | Create at developers.facebook.com |
Installation
npx (Recommended)
{
"mcpServers": {
"meta": {
"command": "npx",
"args": ["-y", "@mikusnuz/meta-mcp"],
"env": {
"INSTAGRAM_ACCESS_TOKEN": "your_ig_token",
"INSTAGRAM_USER_ID": "your_ig_user_id",
"THREADS_ACCESS_TOKEN": "your_threads_token",
"THREADS_USER_ID": "your_threads_user_id"
}
}
}
}Manual
git clone https://github.com/mikusnuz/meta-mcp.git
cd meta-mcp
npm install
npm run build{
"mcpServers": {
"meta": {
"command": "node",
"args": ["/path/to/meta-mcp/dist/index.js"],
"env": {
"INSTAGRAM_ACCESS_TOKEN": "your_ig_token",
"INSTAGRAM_USER_ID": "your_ig_user_id",
"THREADS_ACCESS_TOKEN": "your_threads_token",
"THREADS_USER_ID": "your_threads_user_id"
}
}
}
}Environment Variables
Variable | Required | Description |
| For Instagram | Instagram Graph API access token |
| For Instagram | Instagram Business/Creator account ID |
| For Threads | Threads API access token |
| For Threads | Threads user ID |
| For token/webhook tools | Meta App ID |
| For token/webhook tools | Meta App Secret |
You only need to set the variables for the platforms you use. For example, if you only use Threads, just set THREADS_ACCESS_TOKEN and THREADS_USER_ID.
Tools
Meta Platform (6)
Tool | Description |
| Exchange short-lived token for long-lived token (~60 days) |
| Refresh a long-lived token before expiration |
| Inspect token validity, expiration, and scopes |
| Get Meta App information |
| Subscribe to webhook notifications |
| List current webhook subscriptions |
Instagram — Publishing (6)
Tool | Description |
| Publish a photo post (supports alt_text) |
| Publish a video post |
| Publish a carousel/album (2-10 items, supports alt_text per item) |
| Publish a Reel (supports alt_text) |
| Publish a Story (24hr) |
| Check media container processing status |
Instagram — Media (5)
Tool | Description |
| List published media |
| Get media details |
| Delete a media post |
| Get media analytics (views, reach, saved, shares) |
| Enable/disable comments on a post |
Instagram — Comments (7)
Tool | Description |
| Get comments on a post |
| Get comment details |
| Post a comment |
| Get replies to a comment |
| Reply to a comment |
| Hide/unhide a comment |
| Delete a comment |
Instagram — Profile & Insights (5)
Tool | Description |
| Get account profile info |
| Get account-level analytics (views, reach, follower_count) |
| Look up another business account |
| Get pending collaboration invites |
| Accept or decline collaboration invites |
Instagram — Hashtags (4)
Tool | Description |
| Search hashtag by name |
| Get hashtag info |
| Get recent media for a hashtag |
| Get top media for a hashtag |
Instagram — Mentions & Tags (2)
Tool | Description |
| Get comments mentioning you |
| Get media you're tagged in |
Instagram — Messaging (4)
Tool | Description |
| List DM conversations |
| Get messages in a conversation |
| Send a DM |
| Get message details |
Threads — Publishing (7)
Tool | Description |
| Publish a text post (polls, GIFs, link attachments, topic tags, quote posts, spoiler flag, ghost posts, reply approvals, location tag, IG Stories cross-share) |
| Publish an image post (alt_text, topic tags, spoiler flag, reply approvals, location tag, IG Stories cross-share) |
| Publish a video post (alt_text, topic tags, spoiler flag, reply approvals, location tag, IG Stories cross-share) |
| Publish a carousel (2-20 items, alt_text per item, reply approvals, location tag, IG Stories cross-share) |
| Delete a post (max 100/day) |
| Check container processing status |
| Check remaining publishing quota (250 posts/day) |
Threads — Media & Search (4)
Tool | Description |
| List published posts (includes topic_tag, poll, GIF, location, verification fields) |
| Get post details |
| List a public profile's posts by username (Profile Discovery) |
| Search public posts via |
Threads — Replies (7)
Tool | Description |
| Get top-level replies to a post |
| Get all replies (flattened, including nested) to a post |
| Reply to a post (supports image/video attachments) |
| Hide a reply |
| Unhide a reply |
| Get replies awaiting approval on a post with reply approvals enabled |
| Approve or ignore a pending reply |
Threads — Profile & Discovery (3)
Tool | Description |
| Get Threads profile info (includes is_verified) |
| List user's threads |
| Look up a public profile by username (Profile Discovery) |
Threads — Mentions (1)
Tool | Description |
| Get posts where the user was @mentioned |
Threads — Locations (2)
Tool | Description |
| Search for locations to tag, by query or coordinates |
| Get a location object by ID |
Threads — Tools & Resources (1)
Tool | Description |
| Get embed HTML/metadata for a public post |
Threads — Insights (2)
Tool | Description |
| Get post analytics (views, likes, replies, reposts, quotes, clicks) |
| Get account-level analytics (also available to Threads profiles without a linked Instagram account) |
Resources
Resource URI | Description |
| Instagram account profile data |
| Threads account profile data (includes is_verified) |
Prompts
Prompt | Description |
| Cross-post content to Instagram and Threads |
| Generate combined analytics report |
Setup Guide
Step 1: Create a Meta Developer App
All platforms (Instagram, Threads) require a Meta Developer App.
Go to developers.facebook.com and log in
Click "My Apps" → "Create App"
Select "Other" → "Business" (or "None" for personal use)
Enter an app name and create
Your META_APP_ID and META_APP_SECRET are in App Settings → Basic.
Step 2: Instagram Setup
Requires an Instagram Business or Creator account. Switch for free in Instagram app → Settings → Account type.
In your Meta App, go to "Add Products" → add "Instagram Graph API"
Go to "Instagram Graph API" → "Settings" and connect your Instagram Business account via a Facebook Page
Open the Graph API Explorer
Select your app
Add permissions:
instagram_basic,instagram_content_publish,instagram_manage_comments,instagram_manage_insights,instagram_manage_contents,pages_show_list,pages_read_engagementClick "Generate Access Token" and authorize
The generated token is short-lived (~1 hour). Exchange it for a long-lived token (~60 days):
GET https://graph.facebook.com/v26.0/oauth/access_token ?grant_type=fb_exchange_token &client_id=YOUR_APP_ID &client_secret=YOUR_APP_SECRET &fb_exchange_token=SHORT_LIVED_TOKENOr use the
meta_exchange_tokentool after setup.Get your Instagram User ID — call this with your token:
GET https://graph.facebook.com/v26.0/me/accounts?access_token=YOUR_TOKENThis returns your Facebook Pages. For each page, get the linked Instagram account:
GET https://graph.facebook.com/v26.0/{page-id}?fields=instagram_business_account&access_token=YOUR_TOKENThe
instagram_business_account.idis yourINSTAGRAM_USER_ID(a numeric ID like17841400123456789).
Step 3: Threads Setup
Works with any Threads account (personal or business). Instagram account link is no longer required since September 2025.
In your Meta App, go to "Add Products" → add "Threads API"
Go to "Threads API" → "Settings":
Add your Threads account as a Threads Tester under "Roles"
Accept the invitation in the Threads app: Settings → Account → Website permissions → Invites
Generate an authorization URL:
https://threads.net/oauth/authorize ?client_id=YOUR_APP_ID &redirect_uri=YOUR_REDIRECT_URI &scope=threads_basic,threads_content_publish,threads_manage_insights,threads_manage_replies,threads_read_replies &response_type=codeFor local testing, use
https://localhost/as redirect URI (configure in App Settings → Threads API → Redirect URIs)
After authorization, exchange the code for an access token:
POST https://graph.threads.net/oauth/access_token Content-Type: application/x-www-form-urlencoded client_id=YOUR_APP_ID &client_secret=YOUR_APP_SECRET &grant_type=authorization_code &redirect_uri=YOUR_REDIRECT_URI &code=AUTHORIZATION_CODEExchange for a long-lived token (~60 days):
GET https://graph.threads.net/access_token ?grant_type=th_exchange_token &client_secret=YOUR_APP_SECRET &access_token=SHORT_LIVED_TOKENGet your Threads User ID — call this with your token:
GET https://graph.threads.net/v1.0/me?fields=id,username&access_token=YOUR_TOKENThe
idfield is yourTHREADS_USER_ID(a numeric ID like1234567890).
Step 4: Configure Environment Variables
Set only the variables for the platforms you use:
# Instagram (requires Business/Creator account)
INSTAGRAM_ACCESS_TOKEN=EAAxxxxxxx... # Long-lived token from Step 2
INSTAGRAM_USER_ID=17841400123456789 # Numeric ID from Step 2.5
# Threads (any account)
THREADS_ACCESS_TOKEN=THQWxxxxxxx... # Long-lived token from Step 3
THREADS_USER_ID=1234567890 # Numeric ID from Step 3.6
# Meta App (for token management & webhooks)
META_APP_ID=123456789012345 # From App Settings → Basic
META_APP_SECRET=abcdef0123456789abcdef # From App Settings → BasicToken Renewal
Access tokens expire after ~60 days. Refresh before expiration:
Instagram: Use
meta_exchange_tokenwith the current valid tokenThreads: Use
meta_refresh_tokenor call:GET https://graph.threads.net/refresh_access_token ?grant_type=th_refresh_token &access_token=CURRENT_LONG_LIVED_TOKEN
You can check token status anytime with meta_debug_token.
Deprecated Metrics (v22.0+)
The following Instagram metrics were deprecated in Graph API v22.0 (January 2025) and removed for all versions on April 21, 2025:
Deprecated Metric | Replacement |
|
|
|
|
|
|
|
|
|
|
| Removed (no replacement) |
| Removed (no replacement) |
| Removed (no replacement) |
| Removed (no replacement) |
| Removed (no replacement) |
| Removed (no replacement) |
License
MIT
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityAmaintenanceMCP server for Meta Marketing API v25.0 — 123 tools for Facebook & Instagram ad campaign management10033368MIT
- AlicenseNot gradedqualityCmaintenanceMCP server providing seamless integration with Instagram's Graph API for business account management, content publishing, and analytics.MIT
- AlicenseNot gradedqualityDmaintenanceMCP server for Instagram Graph API providing 25 tools for publishing photos, reels, carousels, and stories, managing comments, viewing insights, and searching hashtags.91MIT
- AlicenseNot gradedqualityCmaintenanceMCP server for organic Instagram analytics via the Meta Graph API, providing read-only tools for profiles, media, insights, audience, and optional publishing.GPL 3.0
Related MCP Connectors
Social media MCP: publish, schedule & analyze posts on TikTok, Instagram, YouTube, LinkedIn & X
Connect any AI agent to 11+ social platforms: schedule, publish & track posts via hosted MCP.
Mastodon MCP — public Mastodon data via mastodon.social (no auth required)
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/mikusnuz/meta-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server