Skip to main content
Glama
threads-socialcrawl-mcp

threads-socialcrawl-mcp

threads-socialcrawl-mcp

An MCP server that lets Claude (or any MCP client) search public Threads posts through the SocialCrawl API, draft comments and new posts in the voice of an account you choose, and tell you the price before it spends a single credit.

You use your own SocialCrawl account and balance. Nothing goes through the author of this tool. Русская версия: README.ru.md.

What it does

  • Find posts by hashtag, by Threads topic tag, or by words; filter by engagement (likes + comments); export to CSV.

  • Discover tags for a broad theme, browse a date window, see the most popular posts with their top replies.

  • Look up accounts: followers and bios.

  • Draft a comment under a found post, in the voice of any account.

  • Draft new posts from the most engaging posts of a topic inside a window you choose, in the voice of any account.

  • Safe by design: the server asks for the balance and the price first and waits for your yes. It only reads: it never posts, likes or messages.

Related MCP server: mcp-threads

Quick start (5 minutes)

  1. Register at socialcrawl.dev, top up the balance and copy your API key (sc_...).

  2. Install uv (or use pip install threads-socialcrawl-mcp).

  3. Check your setup (free, reads the balance only):

    SOCIALCRAWL_API_KEY=sc_your_key uvx --from threads-socialcrawl-mcp threads-mcp --check
  4. Add the server to your MCP client. threads-mcp --print-config prints the snippet; it looks like this:

    Claude Desktop (claude_desktop_config.json) and most other clients:

    { "mcpServers": { "threads": {
        "command": "uvx",
        "args": ["--from", "threads-socialcrawl-mcp", "threads-mcp"],
        "env": { "SOCIALCRAWL_API_KEY": "sc_your_key" } } } }

    Claude Code:

    claude mcp add threads -e SOCIALCRAWL_API_KEY=sc_your_key -- uvx --from threads-socialcrawl-mcp threads-mcp
  5. Restart the client and ask: "What can you do with Threads?", then "Find posts about business, show me the price first."

If you installed with pip, use threads-mcp as the command (no uvx).

Toolsets

One server, four toolsets. Run all (default) or pick some: "env": {"THREADS_TOOLSETS": "research,comments"} or threads-mcp --toolsets research.

Toolset

Tools

What it is for

research

threads_search_hashtag, threads_search_topic, threads_search_keyword, threads_discover_tags, threads_browse_posts, threads_top_posts, threads_post_comments

find and rank posts

accounts

threads_search_users, threads_enrich_authors

followers and bios

comments

threads_comment_context

material for a comment in a chosen voice

writing

threads_post_brief, threads_style_profile

material for new posts in a chosen voice

Free helpers in every server (once per server): threads_balance, threads_price_list, threads_capabilities. Each toolset can also run alone: threads-mcp-research, threads-mcp-accounts, threads-mcp-comments, threads-mcp-writing.

Search modes

The three searches take mode instead of a dozen knobs:

Mode

Depth

Budget cap

quick (default)

one page

30 credits

deep

scroll until about 30 matches (up to 20 pages)

200 credits

bulk

up to 50 pages, for exports

500 credits

target_matches and max_credits override the preset.

Prices (credits, measured on the live API)

Tag search about 1-2 per page · words search 3 per post · a post's replies 1 · a profile lookup about 3 · a style account's posts 1 (cached 24 hours). dry_run=true on a tool returns the exact estimate for your arguments without spending anything.

Safety and privacy

  • Spending guard. Every paid tool first shows your balance and the estimated cost. Clients that support MCP elicitation show you a yes/no dialog (the model cannot answer for you); other clients use a confirmed=true protocol where the model must show you both numbers and wait for your yes. THREADS_CONFIRM=0 switches the guard off: do not, unless you know why.

  • Your key stays on your machine: it is read from your client's env block (or a .env file) and sent only to SocialCrawl. It is never shown to the model or written to logs. Keep .env out of git.

  • What is stored locally: CSV exports and two small caches (your comments, a style account's recent posts for 24 hours) in your per-user data folder (threads-mcp --check shows where; change with THREADS_DATA_DIR).

  • Third-party text. Posts, bios and replies are written by other people; the server tells the model to treat them as data, never as instructions.

Limits you should know

  • Threads search returns a sampled window: the same query can give different posts. Fewer results than asked is normal.

  • Search matches tags or words, not meaning, and cannot filter by city.

  • Views are not used; engagement means likes + comments.

  • There is no way to list all comments a person wrote under other people's posts; comments must be given as links.

  • Nothing is ever posted for you.

Settings

Variable

Meaning

SOCIALCRAWL_API_KEY

your SocialCrawl key (required)

THREADS_TOOLSETS

comma separated subset of research,accounts,comments,writing (default all)

THREADS_CONFIRM

1 (default) ask before paid calls, 0 do not

THREADS_HELPERS

1 adds balance/price/capabilities to a lone accounts, comments or writing server

THREADS_DATA_DIR

folder for exports and caches

The key can also live in a .env file in the working directory or in ~/.config/threads-mcp/.env.

Responsibility

This tool reads public data. You are responsible for how you use it: follow SocialCrawl's terms, Meta's terms for Threads, and the privacy laws that apply to you (for example GDPR) when you store or process data about people. Do not use drafts to spam or impersonate anyone. No warranty (MIT license).

Develop

See CONTRIBUTING.md. Tests run offline: pip install -e ".[dev]" && python -m unittest discover -s tests -t .. A map of how it all fits together is in docs/architecture.html (open it in a browser).

Available Tools

15 tools
threads_balanceA
Read-onlyIdempotent

Current SocialCrawl credit balance, with the recent burn rate and how many days it lasts. Free (0 credits). Show it to the user before any paid call.

Inputs: no named parameters. Returns: object

threads_browse_postsA
Read-only

Show Threads posts for a keyword and/or topic over a clear date window, in Threads' own search order: no popularity ranking, no replies lookup. Use threads_top_posts to rank by engagement with top replies; use threads_search_hashtag / threads_search_topic for tag searches without a date window helper.

Date window: pass days for an unambiguous window ending today (UTC) or at end_date (days=1 = just that day, days=N = that day and the N-1 before it), or raw start_date/end_date. With none of them there is no date restriction. The exact window used comes back in date_window, so quote it instead of guessing what "today" meant.

Pass query and/or topic_tag. Threads has no server-side "every post under this tag" mode: the topic filter runs on the fetched pages and can miss untagged posts, so scroll deeper with max_pages / target_matches. The reply has the same shape as the search tools (summary, posts, next_cursor) plus date_window.

Args: query: Keyword, phrase or category name to search for (optional when topic_tag is given). days: Size of the date window ending at end_date (or today), inclusive. 0 = no date filter. end_date: Optional ISO date (YYYY-MM-DD) to anchor the window on instead of today (UTC). start_date: Optional ISO date lower bound; use instead of days for a custom range. topic_tag: Optional Threads topic tags, comma separated, e.g. "Business, Marketing" (case-insensitive). topic_match: "exact" (default) or "contains" ("business" also matches "Small Business"). limit: Posts per page request, 1-100 (50 max with coverage="full"). cursor: next_cursor from a previous call, to page to older results (single search term only). coverage: "full" = Threads' real keyword search (3 credits per post). max_pages: How many pages to scroll. 0 = auto: 1, or up to 20 when target_matches is set. target_matches: Stop once this many matching posts are collected (0 = off). max_credits: Credit budget; stops before a page that would exceed it (default 500, 0 = unlimited). min_engagement: Drop posts whose likes + comments are below this. save_csv: File name (no folders), e.g. "business_today"; saves all matches to the exports folder (the reply gives the path) and returns a 10-post preview. dry_run: True = return only the credit estimate and the account balance, no search. confirmed: Leave False. Without it nothing is run: you get the balance and the estimate. Set True only after the user has seen them and said yes.

Inputs: days, limit, query, cursor, +12 more. Returns: result

threads_capabilitiesA
Read-onlyIdempotent

What this server can and cannot do, with the routes for common goals and what the Threads toolsets not connected here would add. Free, no API call. MANDATORY: call it before answering what the tools can do and before any vague or abstract request, and follow it strictly.

Args: topic: "" = overview; or "limits".

Inputs: topic. Returns: object

threads_comment_contextA
Read-only

Material for suggesting a comment under a found post in the user's own voice.

Loads the target post and its top replies, the recent posts of the style account (style_handle) and/or their last comments (up to 10) with the post each one answered, and measures that style (length, questions, emoji, capitalisation). The reply is a bundle: YOU then write 1-3 candidate comments matching that style. Nothing is posted. SocialCrawl cannot list a user's replies, so comments need URLs; loaded comments are cached locally and cost nothing next time. Cost: 1 (the post) + 1 (its replies, if replies_to_show > 0) + 1 (style account's posts) + 2 per not-yet-cached comment.

Args: post_url: The found post to comment on (threads.com / threads.net URL). style_handle: Threads username (no @) whose voice to copy: the user's own, or any other account the user names. Loads that account's ~15 recent own posts as the style source (1 credit). Ask the user whose style if they did not say. my_comment_urls: Optional URLs of the user's own last comments, up to 10, comma or newline separated; add the posts they answered. replies_to_show: How many top replies under the target post to include, 0-50. dry_run: True = only the credit estimate and balance (free). confirmed: Leave False. Set True only after the user has seen the balance and estimate and said yes.

Inputs: post_url (required), dry_run, confirmed, style_handle, +2 more. Returns: result

threads_discover_tagsA
Read-only

Expand a broad theme into REAL tags. Searches the theme, then counts the topic tags and hashtags that actually appear on the returned posts, so tag suggestions come from live data instead of guesses. Use it first when the user names a broad theme ("business", "motorcycles"), then search with the relevant tags it returns. Cheap (about 1-2 credits per page).

Args: query: Theme or keyword, e.g. "business". pages: Pages to sample, 1-5 (default 2). coverage: "full" = real keyword search (3 credits per post); use for niche themes the default search does not know. top: How many tags of each kind to return. confirmed: Leave False. Without it nothing is run: you get the balance and the estimate. Set True only after the user has seen them and said yes.

Inputs: query (required), top, pages, coverage, +1 more. Returns: result

threads_enrich_authorsA
Read-only

Look up follower count, bio, verified and private flags for Threads accounts (e.g. the top_authors of a search) via the user-search endpoint. Costs about 3 credits per username.

Args: usernames: Comma/space separated usernames, with or without @ (max 25). confirmed: Leave False. Without it nothing is run: you get the balance and the estimate. Set True only after the user has seen them and said yes.

Inputs: usernames (required), confirmed. Returns: result

threads_post_briefA
Read-only

Material for writing NEW posts: the most engaging posts (likes + comments) of a topic inside a date window THE USER CHOOSES, plus the voice of a style account. Returns the top posts with measured patterns (hooks, length, format) and the style account's posts and statistics; YOU then show a short analysis and write 3-5 drafts that differ in angle and tone (see how_to_write in the reply). Nothing is posted.

ALWAYS ask the user: (1) whose style (their own account or another one), (2) the date window (days=2, days=5 or dates; there is no default), (3) what to search: words, a hashtag or a Threads topic tag (exactly one). Words use real keyword search (3 credits per post) and Threads cannot filter by city, so "business in Belgrade" is a words search and the result is a sample; say that. Posts are ranked only by likes + comments inside the window, with no comparison to the author's usual numbers. Fewer posts than requested is normal: the reply says so (shortfall). Cost: search (by mode)

  • 1 credit for the style account's posts (free if loaded in the last 24 hours).

Args: style_handle: Threads username (no @) whose voice to use. Required: ask every time. query: Words or phrase to search (real keyword search, 3 credits per post). Give exactly one of query / hashtags / topic_tag. hashtags: One hashtag or several, comma separated (cheap tag search). topic_tag: A Threads topic tag, e.g. "Business" (cheap tag search). days: Window length ending today (UTC): 2 = today and yesterday. Or use start_date/end_date. Required: ask the user. start_date: ISO date (YYYY-MM-DD) lower bound, instead of days. end_date: ISO date upper bound (the last day of the window when used with days). mode: "quick" (default, one page, at most 30 credits), "deep" (scroll until about 30 candidates, at most 200 credits) or "bulk" (up to 50 pages, at most 500). Deeper finds better top posts. posts_limit: How many top posts to return, default 10. min_engagement: Drop posts with fewer likes + comments than this. topic_match: For topic_tag: "exact" (default) or "contains". max_credits: Replace the mode's credit budget for the search (0 = the mode's budget). dry_run: True = only the credit estimate and the balance (free). confirmed: Leave False. Set True only after the user has seen the balance and estimate and said yes.

Inputs: style_handle (required), days, mode, query, +10 more. Returns: result

threads_post_commentsA
Read-only

Fetch the replies on one Threads post.

Args: url: Full post URL, e.g. https://www.threads.com/@zuck/post/DZpPDXbCeTt. limit: Max replies to return, 1-50 (there is one reply window and no cursor). confirmed: Leave False. Without it nothing is run: you get the balance and the estimate. Set True only after the user has seen them and said yes.

Inputs: url (required), limit, confirmed. Returns: result

threads_price_listA
Read-onlyIdempotent

Credit prices of every Threads action (measured on the live API): pages, coverage=full, bios, replies. Free, no API call.

Inputs: no named parameters. Returns: object

threads_search_hashtagA
Read-only

Search Threads posts by HASHTAG. The default search only knows hashtags that are Threads topic tags (e.g. #motorcycle); niche hashtags need fallback_full=true: real keyword search at 3 credits per post. Returns slim posts, a summary (pages, matches, credits, why it stopped), top authors and next_cursor to continue.

Args:
    hashtags: One or more hashtags, comma/space separated, e.g. "motogymkhana" or "#moto, #gymkhana". A post matches if it has ANY of them (checked in ext.hashtags and the text); results are merged and de-duplicated.
    fallback_full: If a hashtag finds nothing, retry it once with real keyword search (3 credits per post).

    mode: How hard to look. "quick" (default) = one page, at most 30 credits; "deep" = scroll until about 30 matches (up to 20 pages, at most 200 credits); "bulk" = scroll as far as the budget allows (up to 50 pages, at most 500 credits), for exports. State the mode you chose and why.
    target_matches: Stop once this many matching posts are collected (0 = the mode's default).
    min_engagement: Drop posts whose likes + comments are below this (views are not used).
    start_date: Optional ISO date (YYYY-MM-DD) lower bound.
    end_date: Optional ISO date (YYYY-MM-DD) upper bound.
    cursor: next_cursor from a previous call, to continue where it stopped.
    max_credits: Replace the mode's credit budget (0 = the mode's budget). The search stops before a page that would exceed it.
    save_csv: File name (no folders), e.g. "moto_posts". Saves ALL matches to <data dir>/exports/<name>.csv (the reply says the exact path) and authors to <name>_authors.csv; the reply then carries only a 10-post preview.
    dry_run: True = do not search, only return the credit estimate and the account balance for these exact arguments (free).
    confirmed: Leave False. Without it nothing is run: you get the balance and the estimate. Set True only after the user has seen them and said yes.

Inputs: hashtags (required), mode, cursor, dry_run, +8 more. Returns: result

threads_search_keywordA
Read-only

Search Threads posts by plain KEYWORD or phrase with Threads' real keyword search (3 credits per post, so price it first). It has no tag filter and is the least precise mode; prefer threads_search_hashtag / threads_search_topic when a tag exists.

Args:
    query: Keyword or phrase to search for.

    mode: How hard to look. "quick" (default) = one page, at most 30 credits; "deep" = scroll until about 30 matches (up to 20 pages, at most 200 credits); "bulk" = scroll as far as the budget allows (up to 50 pages, at most 500 credits), for exports. State the mode you chose and why.
    target_matches: Stop once this many matching posts are collected (0 = the mode's default).
    min_engagement: Drop posts whose likes + comments are below this (views are not used).
    start_date: Optional ISO date (YYYY-MM-DD) lower bound.
    end_date: Optional ISO date (YYYY-MM-DD) upper bound.
    cursor: next_cursor from a previous call, to continue where it stopped.
    max_credits: Replace the mode's credit budget (0 = the mode's budget). The search stops before a page that would exceed it.
    save_csv: File name (no folders), e.g. "moto_posts". Saves ALL matches to <data dir>/exports/<name>.csv (the reply says the exact path) and authors to <name>_authors.csv; the reply then carries only a 10-post preview.
    dry_run: True = do not search, only return the credit estimate and the account balance for these exact arguments (free).
    confirmed: Leave False. Without it nothing is run: you get the balance and the estimate. Set True only after the user has seen them and said yes.

Inputs: query (required), mode, cursor, dry_run, +7 more. Returns: result

threads_search_topicA
Read-only

Search Threads posts by TOPIC TAG: the category Threads itself assigns to a post (post.ext.topic_tag; not a hashtag in the text). Each topic name is the search term and results are filtered to posts carrying that tag. Use threads_discover_tags to find real topic names. Returns slim posts, a summary (pages, matches, credits, why it stopped), top authors and next_cursor.

Args:
    topic_tag: One or more Threads topic tags, comma separated, e.g. "Business, Entrepreneurship, Marketing" (case-insensitive). Every topic is searched and merged without duplicates.
    topic_match: "exact" (default) = the post's tag must equal one of the topics; "contains" = it may merely contain it ("business" also matches "Small Business").

    mode: How hard to look. "quick" (default) = one page, at most 30 credits; "deep" = scroll until about 30 matches (up to 20 pages, at most 200 credits); "bulk" = scroll as far as the budget allows (up to 50 pages, at most 500 credits), for exports. State the mode you chose and why.
    target_matches: Stop once this many matching posts are collected (0 = the mode's default).
    min_engagement: Drop posts whose likes + comments are below this (views are not used).
    start_date: Optional ISO date (YYYY-MM-DD) lower bound.
    end_date: Optional ISO date (YYYY-MM-DD) upper bound.
    cursor: next_cursor from a previous call, to continue where it stopped.
    max_credits: Replace the mode's credit budget (0 = the mode's budget). The search stops before a page that would exceed it.
    save_csv: File name (no folders), e.g. "moto_posts". Saves ALL matches to <data dir>/exports/<name>.csv (the reply says the exact path) and authors to <name>_authors.csv; the reply then carries only a 10-post preview.
    dry_run: True = do not search, only return the credit estimate and the account balance for these exact arguments (free).
    confirmed: Leave False. Without it nothing is run: you get the balance and the estimate. Set True only after the user has seen them and said yes.

Inputs: topic_tag (required), mode, cursor, dry_run, +8 more. Returns: result

threads_search_usersA
Read-only

Search Threads accounts matching a term.

Args: query: Keyword or name to search for. limit: Max accounts to return, 1-12. include: "profile" to add follower count, bio, private flag and bio link to each match (extra credits). confirmed: Leave False. Without it nothing is run: you get the balance and the estimate. Set True only after the user has seen them and said yes.

Inputs: query (required), limit, include, confirmed. Returns: result

threads_style_profileA
Read-only

Load the recent posts of a Threads account and measure its voice (length, openings, questions, emoji, format), so drafts can be written in that voice. 1 credit, then cached for 24 hours (free again). ALWAYS ask the user whose style to use (their own account or another one); never assume.

Args: style_handle: Threads username (no @) whose voice to analyse. dry_run: True = only the credit estimate and the balance (free). confirmed: Leave False. Set True only after the user has seen the balance and estimate and said yes.

Inputs: style_handle (required), dry_run, confirmed. Returns: result

threads_top_postsA
Read-only

Find the most popular Threads posts for a keyword and/or topic over a date window, each with its own most popular replies, in one call.

"Popular" is rank_by: "likes_comments" (default), "likes" or "likes_comments_shares" (views are not used). The search fetches search_pages pages of up to search_limit candidate posts inside the window, keeps the ones matching query / topic_tag, ranks them and fetches replies only for the final top posts (1 credit each), re-ranked by likes. If a replies call fails that post carries comments_error and the rest still return. The exact UTC date_window used comes back in the reply. Threads search is a sampled window, so fewer than posts_limit posts is normal; add search_pages to widen the candidate pool.

Args: query: Keyword, phrase or category name (optional when topic_tag is given). days: Size of the date window ending at end_date (or today UTC), inclusive. 1 = just that day. end_date: Optional ISO date (YYYY-MM-DD) to anchor the window on instead of today (UTC). rank_by: "likes_comments" (default), "likes" or "likes_comments_shares". posts_limit: How many top posts to return. comments_per_post: How many top (by likes) replies per post, 0-50. search_limit: Candidate posts per search page, 1-100 (default 30; big pages are slow and can time out; 50 max with coverage="full"). search_pages: How many search pages to scan for candidates (default 1; more costs more credits). coverage: "full" = Threads' real keyword search (3 credits per post). topic_tag: Optional Threads topic tags, comma separated (case-insensitive). topic_match: "exact" (default) or "contains". max_credits: Credit budget for the candidate search (default 500, 0 = unlimited); replies cost extra. dry_run: True = return only the credit estimate (search + replies) and the account balance, no calls. confirmed: Leave False. Without it nothing is run: you get the balance and the estimate. Set True only after the user has seen them and said yes.

Inputs: days, query, dry_run, rank_by, +10 more. Returns: result

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.1/5.0

    Scored across 15 tools

    Disambiguation3/5

    There are five post-search tools (search_hashtag, search_topic, search_keyword, browse_posts, top_posts) whose boundaries rest entirely on subtle distinctions — tag vs keyword vs 'Threads order' vs engagement-ranked — that an agent can easily get wrong, even though the long descriptions do try to steer. The content-creation trio (style_profile, comment_context, post_brief) also overlaps heavily, since comment_context is essentially post_comments plus style analysis and post_brief is top_posts plus style analysis. Users and post/replies tools are otherwise clearly distinct.

    Naming Consistency4/5

    All tools share a consistent `threads_` prefix and snake_case, and most are verb_noun (search_users, discover_tags, browse_posts, enrich_authors, post_comments). A few fall back to noun or adjective phrases (top_posts, comment_context, style_profile, post_brief, balance, price_list, capabilities), which are readable but break the pattern slightly.

    Tool Count3/5

    At 15 tools this sits at the top of the well-scoped band, and the redundancy suggests bloat: three separate search modes plus browse_posts and top_posts, and three overlapping 'voice/style' tools. A tighter set (merging the search variants and folding style_profile into the bundles) would be easier to use.

    Completeness4/5

    Coverage is strong for a read/analytics crawl surface: user search, tag discovery, three search modes, post browsing, replies, top-post ranking, author enrichment, style analysis, drafting material, plus cost/balance/capability introspection. Gaps are modest — there is no direct 'get one post by URL' or 'list a user's posts' primitive outside the style/brief bundles, and posting is deliberately out of scope.

    Maintenance

    ActivityMaintained
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      A
      quality
      D
      maintenance
      MCP server for the Threads API, enabling profile management, content reading, publishing, replies, and discovery through 26 tools.
      26
      -
    • A
      license
      Not graded
      quality
      B
      maintenance
      MCP 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
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables MCP clients to publish text posts to Threads, read your own posts, retrieve post insights, and check the publishing quota using the Threads API.
      17 npm
      MIT
    • F
      license
      Not graded
      quality
      B
      maintenance
      Enables AI agents to interact with Threads via MCP, including sub-80ms keyword search, full nested discussion tree extraction, replying to any external thread, publishing posts, fetching user profiles and threads, trending topics, and engagement actions like likes and reposts.
      4
      -