CCM
/MCP
SkillsMCPMarketplacesDigestToolsAdvertise

This week in Claude

Every Monday: Claude Code, Agent SDK, MCP, and the Anthropic platform moves worth your time.

Skills by Category
Frontend DevelopmentBackend & APIsTesting & QASecurityDevOps & CI/CDGit & Pull RequestsDocumentationCode Review & QualityAI & Agent BuildingSkill Development
MCP Servers by Category
Sales & MarketingWeb & Browser AutomationDatabasesAI & LLM ToolsCloud & InfrastructureCommunication & MessagingDeveloper ToolsDesign & CreativeDocuments & KnowledgeSearch & Web Crawling
Marketplaces by Category
AI Agents & OrchestrationLLM IntegrationDevelopment ToolsFrontend & UIBackend & APIsDatabasesTesting & Code QualityDevOps & CloudSecurity & ComplianceGit & Version Control

Claude Code Marketplaces

Discover Claude Code plugins, extensions, and tools. Automatically updated directory of Anthropic Claude AI marketplaces with development tools, productivity plugins, and integrations.

Resources

  • Browse Skills
  • Browse MCP Servers
  • Browse Marketplaces
  • Skill index
  • MCP index
  • Marketplace index
  • Plugins Reference

Community

  • About
  • Tools
  • Feedback
  • Privacy Policy
  • Advertise

Built for the Claude Code community with Claude Code by mertbuilds.com

Independent project, not affiliated with Anthropic
mikusnuz avatar

Meta

mikusnuz/meta-mcp
715 toolsauthSTDIOregistry active
Summary

A comprehensive wrapper around Meta's social APIs that gives Claude direct publishing and management capabilities for Instagram and Threads. Exposes 57 tools covering the full Instagram Graph API v25.0 and Threads API surface area: publish photos, videos, reels, carousels, and stories with alt text, manage comments and DMs, pull analytics on views and engagement, search hashtags, handle collaboration invites, and cross-post between platforms. Also includes Threads-specific features like polls, GIFs, topic tags, and spoiler flags. Requires business or creator accounts for Instagram, but works with any Threads account. Handles token management and webhook subscriptions too. Reach for this when you need your AI to actually operate your social accounts, not just draft captions.

CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
inference shell
inference shell
create and run specialised agents in minutes
build now →
MCP-ready Email SendingMCP-ready Email Sending
MCP-ready Email Sending
Plug Mailtrap into your AI workflow and let it handle the email.
Connect Mailtrap MCP →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Capacitor - Shared memory for your team’s coding agents.
Capacitor - Shared memory for your team’s coding agents.
Make coding agent sessions - Searchable, Shareable, Vendor-neutral & Scored.
Try For Free →
CodeScene MCP ServerCodeScene MCP Server
CodeScene MCP Server
Your agent targets a perfect 10 Code Health score. Deterministic. Every commit.
Try For Free →
Give your AI the whole web as clean markdownGive your AI the whole web as clean markdown
Give your AI the whole web as clean markdown
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
inference shell
inference shell
create and run specialised agents in minutes
build now →
MCP-ready Email SendingMCP-ready Email Sending
MCP-ready Email Sending
Plug Mailtrap into your AI workflow and let it handle the email.
Connect Mailtrap MCP →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Capacitor - Shared memory for your team’s coding agents.
Capacitor - Shared memory for your team’s coding agents.
Make coding agent sessions - Searchable, Shareable, Vendor-neutral & Scored.
Try For Free →
CodeScene MCP ServerCodeScene MCP Server
CodeScene MCP Server
Your agent targets a perfect 10 Code Health score. Deterministic. Every commit.
Try For Free →
Give your AI the whole web as clean markdownGive your AI the whole web as clean markdown
Give your AI the whole web as clean markdown
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →

Tools

Public tool metadata for what this MCP can expose to an agent.

15 tools
wizard_create_sessionCreate a new wizard session to start gathering requirements. Creates an MCP server in gathering_requirements status with an empty chat history. Use wizard_chat to iterate on requirements with the AI, then call wizard_start once the AI indicates readiness. Args: customer_id: Op...1 params

Create a new wizard session to start gathering requirements. Creates an MCP server in gathering_requirements status with an empty chat history. Use wizard_chat to iterate on requirements with the AI, then call wizard_start once the AI indicates readiness. Args: customer_id: Op...

Parameters* required
customer_idvalue
wizard_chatSend a message in the wizard requirements-gathering chat. Iterate on server requirements with the AI until it indicates readiness (is_ready=True). Then call wizard_start with the server_id to kick off tool suggestion. Args: server_id: Server UUID (from wizard_create_session)....2 params

Send a message in the wizard requirements-gathering chat. Iterate on server requirements with the AI until it indicates readiness (is_ready=True). Then call wizard_start with the server_id to kick off tool suggestion. Args: server_id: Server UUID (from wizard_create_session)....

Parameters* required
messagestring
server_idstring
wizard_startTransition from requirements gathering to tool suggestion. The server must be in gathering_requirements state and the AI must have indicated readiness (wizard_chat returned is_ready=True). Tool suggestion runs in the background – poll with wizard_state to check progress. Args:...3 params

Transition from requirements gathering to tool suggestion. The server must be in gathering_requirements state and the AI must have indicated readiness (wizard_chat returned is_ready=True). Tool suggestion runs in the background – poll with wizard_state to check progress. Args:...

Parameters* required
descriptionvalue
server_idstring
technical_detailsvalue
wizard_list_toolsList current tools for a server in the wizard. Args: server_id: Server UUID.1 params

List current tools for a server in the wizard. Args: server_id: Server UUID.

Parameters* required
server_idstring
wizard_refine_toolsRefine suggested tools with feedback. Triggers LLM refinement in the background. Poll wizard_state for progress. Args: server_id: Server UUID. feedback: Feedback for the LLM to refine tools. tool_ids: Optional list of tool UUIDs to refine. Omit to refine all.3 params

Refine suggested tools with feedback. Triggers LLM refinement in the background. Poll wizard_state for progress. Args: server_id: Server UUID. feedback: Feedback for the LLM to refine tools. tool_ids: Optional list of tool UUIDs to refine. Omit to refine all.

Parameters* required
feedbackstring
server_idstring
tool_idsvalue
wizard_submit_toolsSubmit the selected tools to proceed to env vars step. Unselected tools will be deleted. Args: server_id: Server UUID. selected_tool_ids: List of tool UUIDs to keep.2 params

Submit the selected tools to proceed to env vars step. Unselected tools will be deleted. Args: server_id: Server UUID. selected_tool_ids: List of tool UUIDs to keep.

Parameters* required
selected_tool_idsarray
server_idstring
wizard_suggest_env_varsTrigger environment variable suggestion via LLM. Args: server_id: Server UUID.1 params

Trigger environment variable suggestion via LLM. Args: server_id: Server UUID.

Parameters* required
server_idstring
wizard_list_env_varsList current environment variables for a server. Args: server_id: Server UUID.1 params

List current environment variables for a server. Args: server_id: Server UUID.

Parameters* required
server_idstring
wizard_refine_env_varsRefine suggested environment variables with feedback. Triggers LLM refinement in the background. Args: server_id: Server UUID. feedback: Feedback for the LLM to refine env vars.2 params

Refine suggested environment variables with feedback. Triggers LLM refinement in the background. Args: server_id: Server UUID. feedback: Feedback for the LLM to refine env vars.

Parameters* required
feedbackstring
server_idstring
wizard_submit_env_varsSubmit environment variable values. Provide values as a mapping of variable UUID to its value. Args: server_id: Server UUID. values: Dict of env var UUID -> value, e.g. {"uuid1": "sk-abc123"}.2 params

Submit environment variable values. Provide values as a mapping of variable UUID to its value. Args: server_id: Server UUID. values: Dict of env var UUID -> value, e.g. {"uuid1": "sk-abc123"}.

Parameters* required
server_idstring
valuesobject
wizard_set_authSet up bearer token authentication for the server. Generates and returns a Bearer token. Args: server_id: Server UUID.1 params

Set up bearer token authentication for the server. Generates and returns a Bearer token. Args: server_id: Server UUID.

Parameters* required
server_idstring
wizard_generate_codeTrigger code generation for all tools. Runs in the background. Poll wizard_state to check progress. Args: server_id: Server UUID.1 params

Trigger code generation for all tools. Runs in the background. Poll wizard_state to check progress. Args: server_id: Server UUID.

Parameters* required
server_idstring
wizard_regenerate_tool_codeRegenerate code for a single tool (synchronous, waits for LLM). Args: server_id: Server UUID. tool_id: Tool UUID to regenerate code for.2 params

Regenerate code for a single tool (synchronous, waits for LLM). Args: server_id: Server UUID. tool_id: Tool UUID to regenerate code for.

Parameters* required
server_idstring
tool_idstring
wizard_deployDeploy the MCP server to the shared runtime. Args: server_id: Server UUID.1 params

Deploy the MCP server to the shared runtime. Args: server_id: Server UUID.

Parameters* required
server_idstring
wizard_stateGet the current wizard state for a server. Use this to poll for background operation completion (tool suggestion, code generation, etc.). Args: server_id: Server UUID.1 params

Get the current wizard state for a server. Use this to poll for background operation completion (tool suggestion, code generation, etc.). Args: server_id: Server UUID.

Parameters* required
server_idstring

English | 한국어

meta-mcp

npm version License: MIT MCP Badge

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_publish prompt
  • "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.txt for a machine-readable summary, or copy templates/CLAUDE.md / templates/AGENTS.md into your project for automatic MCP discovery.

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-usage header

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_provider param dropped
  • Threads Ghost Posts: is_ghost_post on threads_publish_text (auto-archived after 24h)
  • Threads Reply Approvals: enable_reply_approvals on publish tools, plus threads_get_pending_replies and threads_manage_pending_reply
  • Threads → Instagram Stories cross-share: crossreshare_to_ig / crossreshare_to_ig_dark_mode on all publish tools
  • Threads Location Tagging: location_id on publish tools, plus threads_search_locations and threads_get_location
  • Threads Profile Discovery: threads_lookup_profile and threads_get_profile_posts for public profiles
  • Threads Mentions: threads_get_mentions
  • Threads oEmbed: threads_get_oembed for embedding public posts
  • Threads Conversations: threads_get_conversation for flattened (nested) reply threads
  • Fixed threads_search_posts: now calls the correct /keyword_search endpoint with the correct search_mode/search_type parameters (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, engagement replaced with views, reach, saved, shares
  • Threads 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_only and followers_only options
  • Instagram 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_rate metrics

Account Requirements

PlatformAccount TypeNotes
InstagramBusiness or Creator accountPersonal accounts cannot use the Graph API. Free to switch in Instagram settings
ThreadsAny accountAll Threads accounts can use the API (Instagram account link no longer required since Sep 2025)
Meta (token/webhook tools)Meta Developer AppCreate 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",
        "INSTAGRAM_MESSAGING_ACCESS_TOKEN": "your_page_access_token",
        "INSTAGRAM_PAGE_ID": "your_linked_page_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",
        "INSTAGRAM_MESSAGING_ACCESS_TOKEN": "your_page_access_token",
        "INSTAGRAM_PAGE_ID": "your_linked_page_id",
        "THREADS_ACCESS_TOKEN": "your_threads_token",
        "THREADS_USER_ID": "your_threads_user_id"
      }
    }
  }
}

Environment Variables

VariableRequiredDescription
INSTAGRAM_ACCESS_TOKENFor InstagramInstagram Graph API access token
INSTAGRAM_USER_IDFor InstagramInstagram Business/Creator account ID
INSTAGRAM_MESSAGING_ACCESS_TOKENFor Instagram DMsPage access token for Instagram Messaging with Facebook Login
INSTAGRAM_PAGE_IDFor Instagram DMsFacebook Page ID linked to the Instagram professional account
THREADS_ACCESS_TOKENFor ThreadsThreads API access token
THREADS_USER_IDFor ThreadsThreads user ID
META_APP_IDFor token/webhook toolsMeta App ID
META_APP_SECRETFor token/webhook toolsMeta 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)

ToolDescription
meta_exchange_tokenExchange short-lived token for long-lived token (~60 days)
meta_refresh_tokenExtend an Instagram/Facebook token or refresh a Threads token (platform selects the flow)
meta_debug_tokenInspect token validity, expiration, and scopes
meta_get_app_infoGet Meta App information
meta_subscribe_webhookSubscribe to webhook notifications
meta_get_webhook_subscriptionsList current webhook subscriptions

Instagram — Publishing (6)

ToolDescription
ig_publish_photoPublish a photo post (supports alt_text)
ig_publish_videoPublish a video post
ig_publish_carouselPublish a carousel/album (2-10 items, supports alt_text per item)
ig_publish_reelPublish a Reel (supports alt_text)
ig_publish_storyPublish a Story (24hr)
ig_get_container_statusCheck media container processing status

Instagram — Media (5)

ToolDescription
ig_get_media_listList published media
ig_get_mediaGet media details
ig_delete_mediaDelete a media post
ig_get_media_insightsGet media analytics (views, reach, saved, shares)
ig_toggle_commentsEnable/disable comments on a post

Instagram — Comments (7)

ToolDescription
ig_get_commentsGet comments on a post
ig_get_commentGet comment details
ig_post_commentPost a comment
ig_get_repliesGet replies to a comment
ig_reply_to_commentReply to a comment
ig_hide_commentHide/unhide a comment
ig_delete_commentDelete a comment

Instagram — Profile & Insights (5)

ToolDescription
ig_get_profileGet account profile info
ig_get_account_insightsGet account-level analytics (views, reach, follower_count)
ig_business_discoveryLook up another business account
ig_get_collaboration_invitesGet pending collaboration invites
ig_respond_collaboration_inviteAccept or decline collaboration invites

Instagram — Hashtags (4)

ToolDescription
ig_search_hashtagSearch hashtag by name
ig_get_hashtagGet hashtag info
ig_get_hashtag_recentGet recent media for a hashtag
ig_get_hashtag_topGet top media for a hashtag

Instagram — Mentions & Tags (2)

ToolDescription
ig_get_mentioned_commentsGet comments mentioning you
ig_get_tagged_mediaGet media you're tagged in

Instagram — Messaging (4)

ToolDescription
ig_get_conversationsList DM conversations
ig_get_messagesGet messages in a conversation
ig_send_messageSend a DM
ig_get_messageGet message details

Threads — Publishing (7)

ToolDescription
threads_publish_textPublish a text post (polls, GIFs, link attachments, topic tags, quote posts, spoiler flag, ghost posts, reply approvals, location tag, IG Stories cross-share)
threads_publish_imagePublish an image post (alt_text, topic tags, spoiler flag, reply approvals, location tag, IG Stories cross-share)
threads_publish_videoPublish a video post (alt_text, topic tags, spoiler flag, reply approvals, location tag, IG Stories cross-share)
threads_publish_carouselPublish a carousel (2-20 items, alt_text per item, reply approvals, location tag, IG Stories cross-share)
threads_delete_postDelete a post (max 100/day)
threads_get_container_statusCheck container processing status
threads_get_publishing_limitCheck remaining publishing quota (250 posts/day)

Threads — Media & Search (4)

ToolDescription
threads_get_postsList published posts (includes topic_tag, poll, GIF, location, verification fields)
threads_get_postGet post details
threads_get_profile_postsList a public profile's posts by username (Profile Discovery)
threads_search_postsSearch public posts via /keyword_search by keyword or topic tag, filterable by media type and author

Threads — Replies (7)

ToolDescription
threads_get_repliesGet top-level replies to a post
threads_get_conversationGet all replies (flattened, including nested) to a post
threads_replyReply to a post (supports image/video attachments)
threads_hide_replyHide a reply
threads_unhide_replyUnhide a reply
threads_get_pending_repliesGet replies awaiting approval on a post with reply approvals enabled
threads_manage_pending_replyApprove or ignore a pending reply

Threads — Profile & Discovery (3)

ToolDescription
threads_get_profileGet Threads profile info (includes is_verified)
threads_get_user_threadsList user's threads
threads_lookup_profileLook up a public profile by username (Profile Discovery)

Threads — Mentions (1)

ToolDescription
threads_get_mentionsGet posts where the user was @mentioned

Threads — Locations (2)

ToolDescription
threads_search_locationsSearch for locations to tag, by query or coordinates
threads_get_locationGet a location object by ID

Threads — Tools & Resources (1)

ToolDescription
threads_get_oembedGet embed HTML/metadata for a public post

Threads — Insights (2)

ToolDescription
threads_get_post_insightsGet post analytics (views, likes, replies, reposts, quotes, clicks)
threads_get_user_insightsGet account-level analytics (also available to Threads profiles without a linked Instagram account)

Resources

Resource URIDescription
instagram://profileInstagram account profile data
threads://profileThreads account profile data (includes is_verified)

Prompts

PromptDescription
content_publishCross-post content to Instagram and Threads
analytics_reportGenerate combined analytics report

Setup Guide

Step 1: Create a Meta Developer App

All platforms (Instagram, Threads) require a Meta Developer App.

  1. Go to developers.facebook.com and log in
  2. Click "My Apps" → "Create App"
  3. Select "Other" → "Business" (or "None" for personal use)
  4. 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.

  1. In your Meta App, go to "Add Products" → add "Instagram Graph API"
  2. Go to "Instagram Graph API" → "Settings" and connect your Instagram Business account via a Facebook Page
  3. Open the Graph API Explorer
    • Select your app
    • Add permissions: instagram_basic, instagram_content_publish, instagram_manage_comments, instagram_manage_insights, instagram_manage_contents, instagram_manage_messages, pages_show_list, pages_read_engagement, pages_manage_metadata
    • Click "Generate Access Token" and authorize
  4. 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_TOKEN
    
    Or use the meta_exchange_token tool after setup.
  5. Get your Instagram User ID — call this with your token:
    GET https://graph.facebook.com/v26.0/me/accounts?fields=id,name,access_token&access_token=YOUR_TOKEN
    
    This 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_TOKEN
    
    The instagram_business_account.id is your INSTAGRAM_USER_ID (a numeric ID like 17841400123456789). For the DM tools, the matching Page's id is INSTAGRAM_PAGE_ID and its access_token is INSTAGRAM_MESSAGING_ACCESS_TOKEN. Do not use the IG User ID or the user token in their place.

Step 3: Threads Setup

Works with any Threads account (personal or business). Instagram account link is no longer required since September 2025.

  1. In your Meta App, go to "Add Products" → add "Threads API"
  2. 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
  3. 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,threads_keyword_search,threads_manage_mentions,threads_delete,threads_location_tagging,threads_profile_discovery
      &response_type=code
    
    • For local testing, use https://localhost/ as redirect URI (configure in App Settings → Threads API → Redirect URIs)
  4. 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_CODE
    
  5. Exchange 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_TOKEN
    
  6. Get your Threads User ID — call this with your token:
    GET https://graph.threads.net/v1.0/me?fields=id,username&access_token=YOUR_TOKEN
    
    The id field is your THREADS_USER_ID (a numeric ID like 1234567890).

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
INSTAGRAM_MESSAGING_ACCESS_TOKEN=EAA...  # Page token from Step 2.5 (DM tools only)
INSTAGRAM_PAGE_ID=123456789012345        # Linked Facebook Page ID (DM tools only)

# 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 → Basic

Token Renewal

Access tokens expire after ~60 days. Refresh before expiration:

  • Instagram: Use meta_refresh_token with platform=instagram (requires META_APP_ID and META_APP_SECRET)
  • Threads: Use meta_refresh_token with platform=threads or 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 MetricReplacement
impressionsviews
video_viewsviews
playsviews
clips_replays_countviews
engagementsaves + shares + likes + comments
email_contactsRemoved (no replacement)
phone_call_clicksRemoved (no replacement)
text_message_clicksRemoved (no replacement)
get_directions_clicksRemoved (no replacement)
website_clicksRemoved (no replacement)
profile_viewsRemoved (no replacement)

License

MIT

Featured
CodeRabbit
CodeRabbit
AI writes the code. CodeRabbit catches the slop.
Try For Free →
inference shell
inference shell
create and run specialised agents in minutes
build now →
MCP-ready Email SendingMCP-ready Email Sending
MCP-ready Email Sending
Plug Mailtrap into your AI workflow and let it handle the email.
Connect Mailtrap MCP →
Make your agent a DeFi expert
Make your agent a DeFi expert
Agent, run crypto. Access onchain data & trade routes via 1inch.
Install now →
Capacitor - Shared memory for your team’s coding agents.
Capacitor - Shared memory for your team’s coding agents.
Make coding agent sessions - Searchable, Shareable, Vendor-neutral & Scored.
Try For Free →
CodeScene MCP ServerCodeScene MCP Server
CodeScene MCP Server
Your agent targets a perfect 10 Code Health score. Deterministic. Every commit.
Try For Free →
Give your AI the whole web as clean markdownGive your AI the whole web as clean markdown
Give your AI the whole web as clean markdown
Integrate web data into your AI product. One API to scrape website & brand data.
Get API Key Now →
belt - the only tool your agent needs
belt - the only tool your agent needs
belt cli automatically finds the best tools and skills for your agent. image, video, music, tts...
one prompt install →

Configuration

INSTAGRAM_ACCESS_TOKENsecret

Instagram Graph API access token

INSTAGRAM_USER_ID

Instagram Business/Creator account ID

THREADS_ACCESS_TOKENsecret

Threads API access token

THREADS_USER_ID

Threads user ID

META_APP_ID

Meta App ID for token/webhook tools

META_APP_SECRETsecret

Meta App Secret for token/webhook tools

Categories
Media & Entertainment
Registryactive
Package@mikusnuz/meta-mcp
TransportSTDIO
AuthRequired
UpdatedMar 19, 2026
View on GitHub

More from mikusnuz

  • Gsc3
  • Cws2
  • Umami2
  • Dynadot
  • Npm
  • Pexbot Mcp
  • Meta Ads48
  • App Publish12

Related Media & Entertainment MCP Servers

View all →
jonradoff avatar
LLM Optimizer

jonradoff/llmopt

AI brand visibility analytics: visibility scores, optimizations, video, Reddit, and search rankings.
7
davidmosiah avatar
Wellness Nourish

davidmosiah/wellness-nourish

Local-first nutrition MCP for AI agents: food, barcode, photo, intake, hydration, goals.
6
analyticsinmotion avatar
Mcp Listen

analyticsinmotion/mcp-listen

Give your AI agents the ability to listen. Microphone capture and speech-to-text.
5
acedatacloud avatar
Mcp Seedance

io.github.acedatacloud/mcp-seedance

MCP server for ByteDance Seedance AI video generation
5
jmagar avatar
Overseerr MCP

jmagar/overseerr-mcp

MCP server for Overseerr media requests and discovery.
5
mrsknetwork avatar
YouTube MCP

mrsknetwork/ytmcp

Interact with public YouTube data via the official Data API v3
5