meta-mcp / templates
AGENTS.md26 starsChanged 3 months agoMITView on GitHub
This project uses the meta-mcp MCP server for Instagram Graph API (v26.0), Threads API, and Meta platform management. The MCP server is configured in your MCP settings. It requires environment variables for each platform you use: Instagram: INSTAGRAM_ACCESS_TOKEN, INSTAGRAM_USER_ID Instagram DMs (Facebook Login): INSTAGRAM_MESSAGING_ACCESS_TOKEN, INSTAGRAM_PAGE_ID Threads: THREADS_ACCESS_TOKEN, THREADS_USER_ID Meta (tokens/webhooks): META_APP_ID, META_APP_SECRET
- Reads credentials
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository2 other files it gives its agents.
- templates/CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 1 is distinctive, and 0 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
0
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 140
Only set env vars for platforms you actually use
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Meta MCP — Instructions for Codex / AI Agents
This project uses the meta-mcp MCP server for Instagram Graph API (v26.0), Threads API, and Meta platform management.
Setup
The MCP server is configured in your MCP settings. It requires environment variables for each platform you use:
Instagram: INSTAGRAM_ACCESS_TOKEN, INSTAGRAM_USER_ID
Instagram DMs (Facebook Login): INSTAGRAM_MESSAGING_ACCESS_TOKEN, INSTAGRAM_PAGE_ID
Threads: THREADS_ACCESS_TOKEN, THREADS_USER_ID
Meta (tokens/webhooks): META_APP_ID, META_APP_SECRET
Tool Reference
Meta Platform (6)
| Tool | Purpose |
meta_exchange_token | Short-lived to long-lived token (~60 days) |
meta_refresh_token | Extend Instagram/Facebook or refresh Threads (platform) |
meta_debug_token | Check validity and scopes |
meta_get_app_info | App information |
meta_subscribe_webhook | Subscribe to webhooks |
meta_get_webhook_subscriptions | List subscriptions |
Instagram — Publishing (6)
| Tool | Purpose |
ig_publish_photo | Photo post (alt_text support) |
ig_publish_video | Video post |
ig_publish_carousel | Carousel/album (2-10 items) |
ig_publish_reel | Reel (alt_text support) |
ig_publish_story | Story (24hr) |
ig_get_container_status | Check processing status |
Instagram — Media (5)
| Tool | Purpose |
ig_get_media_list / ig_get_media | List/get media |
ig_delete_media | Delete a post |
ig_get_media_insights | Analytics (views, reach, saved, shares) |
ig_toggle_comments | Enable/disable comments |
Instagram — Comments (7)
| Tool | Purpose |
ig_get_comments / ig_get_comment | Read comments |
ig_post_comment / ig_reply_to_comment | Write comments |
ig_get_replies | Reply threads |
ig_hide_comment / ig_delete_comment | Moderate |
Instagram — Profile & Insights (5)
| Tool | Purpose |
ig_get_profile | Profile info |
ig_get_account_insights | Account analytics |
ig_business_discovery | Look up other accounts |
ig_get_collaboration_invites | Pending collabs |
ig_respond_collaboration_invite | Accept/decline |
Instagram — Hashtags (4)
| Tool | Purpose |
ig_search_hashtag / ig_get_hashtag | Search/info |
ig_get_hashtag_recent / ig_get_hashtag_top | Hashtag feeds |
Instagram — Mentions & Tags (2)
| Tool | Purpose |
ig_get_mentioned_comments | Mentions |
ig_get_tagged_media | Tagged media |
Instagram — Messaging (4)
| Tool | Purpose |
ig_get_conversations / ig_get_messages / ig_get_message | Read DMs |
ig_send_message | Send DM |
Threads — Publishing (7)
| Tool | Purpose |
threads_publish_text | Text post (polls, GIFs, links, topics, quotes, spoiler, ghost posts, reply approvals, location, IG Stories cross-share) |
threads_publish_image / threads_publish_video | Media posts (reply approvals, location, IG Stories cross-share) |
threads_publish_carousel | Carousel (2-20 items, reply approvals, location, IG Stories cross-share) |
threads_delete_post | Delete (max 100/day) |
threads_get_container_status | Processing status |
threads_get_publishing_limit | Quota check (250/day) |
Threads — Media & Search (4)
| Tool | Purpose |
threads_get_posts / threads_get_post | List/get posts |
threads_get_profile_posts | List a public profile's posts by username |
threads_search_posts | Search /keyword_search by keyword or topic tag |
Threads — Replies (7)
| Tool | Purpose |
threads_get_replies | Get top-level replies |
threads_get_conversation | Get all replies, flattened |
threads_reply | Reply (image/video support) |
threads_hide_reply / threads_unhide_reply | Moderate |
threads_get_pending_replies / threads_manage_pending_reply | Reply approval queue |
Threads — Profile, Mentions, Locations & oEmbed (7)
| Tool | Purpose |
threads_get_profile / threads_get_user_threads | Profile |
threads_lookup_profile | Look up a public profile by username |
threads_get_mentions | Posts where the user was @mentioned |
threads_search_locations / threads_get_location | Location tagging |
threads_get_oembed | Embed HTML for a public post |
Threads — Insights (2)
| Tool | Purpose |
threads_get_post_insights | Post analytics |
threads_get_user_insights | Account analytics |
When to Use
Invoke meta MCP tools when the task involves:
- Publishing photos, videos, reels, stories, or carousels to Instagram
- Publishing text, image, video, or carousel posts to Threads
- Cross-posting content to both Instagram and Threads
- Viewing or replying to comments on Instagram or Threads
- Checking follower counts, reach, views, and other analytics
- Searching hashtags or public Threads posts
- Managing Instagram DMs
- Moderating comments and replies (hide/delete)
- Managing Meta API tokens (exchange, refresh, debug)
Safety Rules
- Never post content without explicit user confirmation — always show a draft first
- Instagram requires a Business or Creator account; Threads works with any account
- Media publishing is async: always check container status before assuming success
- Threads limit: 250 posts/day, 100 deletes/day — check
threads_get_publishing_limitbefore bulk ops - Tokens expire after ~60 days — use
meta_debug_tokento check andmeta_refresh_tokenwith the correctplatformto renew - Only set env vars for platforms you actually use
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

