Faust Threads MCP
You can read Threads posts/insights and publish posts or replies through an approval-gated MCP server.
Fetch latest Threads posts with bounded cursor pagination (
limit,pages).Fetch all documented media insight metrics for a specific post.
Fetch account insights with coverage and time-window parameters.
Fetch follower demographics by
country,city,age, orgender.Publish a Threads post only with write enablement and a valid approval receipt.
Publish a reply to a target post only with write enablement and a valid approval receipt.
The provided schema exposes only these six tools; README-listed profile, replies, conversation, discovery, staging/container, and reply-management tools are not present in it.
Provides tools for interacting with the Threads API, including reading latest posts, retrieving post and account insights, follower demographics, and publishing posts or replies (writes disabled by default).
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Faust Threads MCP Show me my latest Threads posts"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Faust Threads MCP
Standalone Python MCP server for the official Meta Threads API. It is portable: it does not import the Faust blog, read local author files, or require a repository path.
Install and run
python -m venv .venv
# Windows: .venv\\Scripts\\activate
# Linux/macOS: . .venv/bin/activate
python -m pip install -e ".[test,quality]"
export THREADS_ACCESS_TOKEN="replace-with-your-token" # PowerShell: $env:THREADS_ACCESS_TOKEN="..."
faust-threads-mcpConfigure an MCP client with stdio:
{
"mcpServers": {
"threads": {"command": "faust-threads-mcp", "env": {"THREADS_ACCESS_TOKEN": "REPLACE_ME"}}
}
}The package never prints tokens. API errors are redacted and provider paging.next URLs are never fetched or persisted; only validated paging.cursors.after values are followed. GET requests have bounded 429/5xx retry with Retry-After; POST requests are never retried. Set THREADS_CACHE_TTL and THREADS_CACHE_SIZE to enable an in-process TTL/LRU cache; writes invalidate it.
Related MCP server: meta-threads-mcp
Publication approval and recovery
MCP writes default to disabled. An authorized installation needs a trusted
external approval issuer, an explicit THREADS_ENABLE_WRITES=1 setting and a
persistent SQLite file configured as THREADS_PUBLICATION_JOURNAL. Keep the
same journal across server restarts. The signing key
THREADS_APPROVAL_SECRET belongs to the trusted issuer and the server.
Each write takes an approval_receipt. The issuer binds the receipt to the
complete tool call, including media, reply target and options. Take the
SHA-256 of the UTF-8 JSON array [tool_name, arguments_without_receipt] with
sorted keys, no insignificant whitespace and unescaped Unicode. The receipt
contains that lowercase hex value as intent_sha256, a unique
approval_id, an integer Unix-second expires_at, and the lowercase
HMAC-SHA-256 hex signature of the equally encoded array
["faust-threads-write-v1", approval_id, intent_sha256, expires_at].
Earlier text-only receipts require re-approval for this format.
The journal durably reserves a receipt before provider access. Repeating a confirmed receipt returns its saved identifiers. A lost response or unverified outcome holds subsequent writes across restart. To investigate a hold, verify the exact operation and any container or published ID using read-only provider evidence. Keep the journal while investigating external review denials and other holds. External approval remains the responsibility of the issuer and the host that dispatches the tool call.
Tools
threads_latest_posts: real/me/threadsposts, bounded cursor pagination, explicit completeness.threads_get_profile: authenticated/meprofile by default, or a numeric user id.threads_get_post: single-post retrieval by numeric media id.threads_get_replies,threads_get_conversation: bounded reply/conversation retrieval.threads_profile_discovery: username lookup or profile-post discovery.threads_post_insights: all documented media metrics:views,likes,replies,reposts,quotes,shares.threads_account_insights: all documented user metrics:views,likes,replies,reposts,quotes,clicks,followers_count, with coverage and time-window metadata.threads_follower_demographics:country,city,age, orgenderbreakdown. Meta requires one breakdown and at least 100 followers.threads_publish_post: TEXT, IMAGE, VIDEO, and CAROUSEL (2–20 children) creation, readiness checks and publication.stage_onlyreturns a container ID for a later approvedthreads_publish_containercall. Every carousel item is validated before creation. The server checks the exact container and requires a published ID for confirmed success.threads_publish_reply: officialreply_to_idpublishing flow.threads_manage_reply: official hide/unhide endpoint with a booleanhidefield.
Published-post editing is not exposed: the official API capability is not claimed and delete/repost is not substituted.
Included latest-post snapshot
data/latest_posts.json is a synthetic fixture and contains no author data. The live MCP tool is the source of truth for current latest posts and reports pagination coverage. No private API snapshot is part of this package.
Official API scope
The implementation follows Meta's official documentation:
Required permissions depend on the operation: threads_basic; threads_manage_insights for insights; threads_content_publish for posts; and threads_manage_replies for replies. UI-only Insights observations are not represented as API fields.
Development and verification
python -m pytest --cov=faust_threads_mcp --cov-report=term-missing --cov-fail-under=100
ruff check src tests
ruff format --check src tests
mypy src
bandit -q -r srcTests use a mocked transport for all API operations and validate an actual MCP SDK stdio client handshake/list/call. No test sends a network write.
Licensing
This project is licensed under the MIT License; see LICENSE.
Available Tools
6 toolsthreads_account_insightsC
Fetch documented user insights with explicit coverage and window.
Inputs: since, until, metrics.
threads_follower_demographicsB
Fetch follower demographics for one documented breakdown.
Inputs: breakdown (required).
threads_latest_postsC
Fetch real latest posts with cursor pagination.
Inputs: limit, pages.
threads_post_insightsB
Fetch all documented media insight metrics.
Inputs: post_id (required).
threads_publish_postD
Publish only with explicit environment enablement and author approval receipt.
Inputs: text (required), user_id (required), approval_receipt (required).
threads_publish_replyC
Publish a reply only with explicit environment enablement and author approval receipt.
Inputs: text (required), user_id (required), reply_to_id (required), approval_receipt (required).
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
Each tool targets a clearly distinct resource and action: feed retrieval, post-level insights, account-level insights, follower demographics, publishing a post, and publishing a reply. Even the two insights tools are explicitly separated by media metrics versus user metrics.
All tools share the threads_ prefix and use readable snake_case, which makes the set feel cohesive. However, read tools use noun phrases like threads_post_insights while write tools use publish_ verbs, so the convention is not uniformly verb_noun.
Six tools is well-scoped for a Threads-focused server. Each tool covers a distinct need without unnecessary bloat or redundancy.
The server covers the core Threads workflows: reading posts, fetching insights, viewing demographics, and publishing content. It is missing update/delete operations and perhaps single-post retrieval, but these are not critical for the apparent analytics-and-publishing focus.
Maintenance
Related MCP Connectors
Publish, reply, moderate, search and read insights on your Threads (threads.com) account.
Threads public posts, replies and profiles, with view counts, keyword and account search.
Meta Threads posts, keyword and hashtag search, replies and profiles without login (Apify)
Social media MCP server: your Instagram, TikTok, YouTube, LinkedIn and Threads history for your AI.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceA stdio MCP server for the official Threads API, enabling publishing, reading, moderation, insights, discovery, locations, and setup diagnostics.2MIT
- 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
- AlicenseAqualityCmaintenanceCustom MCP server for Threads (Meta) — post, reply, and read insights via the official free Threads API.5MIT
- AlicenseNot gradedqualityBmaintenanceMCP server for Meta's Threads API that enables publishing posts and reply chains, reading timelines and insights, and managing long-lived credentials with proactive refresh and safety checks.MIT