Threads MCP Server
Integrates with Meta's Threads platform via the Threads API, including OAuth authentication and webhook subscription registration for real-time events.
Provides tools for interacting with the Meta Threads API, enabling profile and post analytics, reply retrieval, content publishing (including text, image, video, and thread chains), webhook event reading, polling for new posts, daily digests, and dual-account management.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Threads MCP Server
A Model Context Protocol server for the Meta Threads API. Gives Claude (or any MCP client) full read/write access to Threads — post analytics, content publishing, thread chaining, webhook events, and dual-account management.
Built for use with ideAI as a cross-platform content strategy tool, but works standalone with any MCP-compatible client.
Features
15 MCP tools covering the full Threads API surface
Dual account support — manage a primary and mirror/brand account from one server
Thread chaining — publish multi-post threads with a single tool call
Webhook events — real-time mentions, replies, and post notifications via ngrok
Polling — detect new posts since last check for cross-account workflows
Daily digest — aggregated insights for both accounts in one call
Batch insights — engagement metrics across your recent posts
Related MCP server: threads-mcp
Tools
Tool | Description |
| List configured accounts |
| Profile info (username, bio, verification) |
| Recent posts with text, media, timestamps |
| Single post metrics: views, likes, replies, reposts, quotes |
| Bulk engagement metrics for N recent posts |
| Account-level metrics over day/week/28 days |
| Replies to a specific post |
| Your replies to other posts |
| Publish text, image, or video posts |
| Publish a reply chain (thread) from an array of texts |
| Check remaining publishing quota (250/24h) |
| Read webhook events (mentions, replies) |
| Register webhook subscriptions with Meta |
| Fetch only new posts since last poll |
| Full digest: insights, top posts, events, quota |
All tools that interact with an account accept an optional account parameter ("primary" or "mirror", defaults to "primary").
Quick Start
1. Prerequisites
Node.js 20+
A Meta Developer App with Threads API enabled
ngrok (free tier works) for OAuth callback and webhooks
2. Install
git clone https://github.com/svetimfm/threads-mcp-server.git
cd threads-mcp-server
npm install3. Configure
cp .env.example .envEdit .env with your Meta app credentials:
THREADS_APP_ID=your_app_id
THREADS_APP_SECRET=your_app_secret
THREADS_REDIRECT_URI=https://your-domain.ngrok-free.app/callback4. Authenticate
Start ngrok pointing at port 3001:
ngrok http 3001 --domain=your-domain.ngrok-free.appThen authenticate your primary account:
npm run auth:primaryThis opens your browser for OAuth, exchanges for a long-lived token (60 days), and saves it to .env.
For a second account:
npm run auth:mirror5. Build
npm run build6. Connect to Claude
Claude Code — add to ~/.claude.json:
{
"mcpServers": {
"threads": {
"command": "node",
"args": ["/path/to/threads-mcp-server/dist/index.js"]
}
}
}Claude Desktop / Cowork — add to ~/Library/Application Support/Claude/claude_desktop_config.json:
{
"mcpServers": {
"threads": {
"command": "node",
"args": ["/path/to/threads-mcp-server/dist/index.js"]
}
}
}7. Webhooks (optional)
For real-time event monitoring, point ngrok at port 3002:
ngrok http 3002 --domain=your-domain.ngrok-free.appThen use the threads_setup_webhooks tool from Claude to register with Meta.
Architecture
src/
├── index.ts # MCP server — 15 tool registrations, stdio transport
├── threads-api.ts # Threads API client (all HTTP calls)
├── accounts.ts # Dual account config loader + API factory
├── auth.ts # OAuth flow (short-lived → long-lived token)
├── state.ts # Persistent state (~/.threads-mcp-state.json)
└── webhook-server.ts # HTTP server for Meta webhook events (port 3002)The server runs two transports simultaneously:
stdio for MCP communication with Claude
HTTP on port 3002 for Meta webhook delivery (gracefully skipped if port is busy)
Scopes
The OAuth flow requests these Threads API scopes:
threads_basic— profile accessthreads_content_publish— post creationthreads_manage_insights— analyticsthreads_read_replies— read repliesthreads_manage_replies— manage repliesthreads_manage_mentions— mention monitoringthreads_keyword_search— keyword search
Use Cases
Content strategy — pull engagement data, identify what performs, plan content
Dual-account workflows — primary posts, mirror account reacts/amplifies
Scheduled digests — daily summary via Cowork's scheduler or cron
Thread publishing — draft multi-part threads in conversation, publish in one call
Engagement monitoring — webhooks for real-time mention/reply alerts
ideAI Integration
This server is designed to work alongside the ideAI MCP connector. When both are connected to Claude, you can cross-reference your Threads engagement with your personal knowledge graph, notes, and behavioral data to build data-driven content strategies grounded in your actual thinking.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Publish, reply, moderate, search and read insights on your Threads (threads.com) account.
Publish and schedule Threads posts from your AI assistant.
Publish and schedule videos to TikTok, YouTube Shorts, Instagram, Facebook, LinkedIn, Pinterest, Bluesky, Threads and X from Claude, Cursor or any MCP client. Upload once, post everywhere, track views in unified analytics, and retry failed posts. Official platform APIs only, free plan available. Docs: https://docs.multi-upload-tool.com/mcp
Draft, schedule and publish posts on X, Threads and Bluesky from ChatGPT, Claude or any MCP client.
Related MCP Servers
- AlicenseAqualityDmaintenanceUnofficial MCP server for Meta's Threads API. Enables LLMs like Claude to publish posts, manage replies, and track insights through the Model Context Protocol.15MIT
- FlicenseBqualityCmaintenanceEnables posting and managing Threads content via Meta Threads API, including text, image, video, carousel, and replies.9-
- AlicenseNot gradedqualityDmaintenanceEnables MCP clients to publish text posts to Threads, read your own posts, retrieve post insights, and check the publishing quota using the Threads API.6 npmMIT
- FlicenseAqualityDmaintenanceEnables AI agents to interact with Meta Threads by fetching profile details, recent posts, post and account analytics, and conversation reply trees, as well as exporting posts as JSON for archiving or embedding.7-