mcpField
M
mcp-threads-keyword-search

mcp-threads-keyword-search

Local
github.com/mambalabsdevSocial Media0Updated 1w ago

About mcp-threads-keyword-search

mcp-threads-keyword-search is an MCP server for finding public Threads posts by keyword, for social monitoring and research. It supports exact-phrase matching, filters, and tracking posts already returned in earlier runs.

Key features

  1. 01Search Threads posts by keyword
  2. 02Match exact phrases or all words
  3. 03Filter by age, likes, and replies
  4. 04Return a post once for multiple matches
  5. 05Track posts returned in earlier runs

Use cases

  1. 01Find recent posts about a topic
  2. 02Monitor mentions of a competitor
  3. 03Collect posts and their like counts

MCP support

Exposes the search_threads_posts tool to MCP clients. It starts an Apify actor run and returns its dataset rows.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"com-mambabuilt-mcp-threads-keyword-search": {
"command": "npx",
"args": [
"-y",
"@mambalabsdev/mcp-threads-keyword-search"
],
"env": {
"APIFY_TOKEN": "<APIFY_TOKEN>"
}
}
}
}
Run commandnpx -y @mambalabsdev/mcp-threads-keyword-search
Environment variables to set
APIFY_TOKENSecretApify API token from https://console.apify.com/account/integrations

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@mambalabsdev/mcp-threads-keyword-search1.0.1

Tools

1

Saved tool list · updated 1w ago

ParameterTypeRequiredDescription
keywordsarrayNoWords or phrases to search Threads for, up to 50.
only_newbooleanNoSkip posts an earlier run returned (free). Default false.
min_likesintegerNoSet aside posts with fewer likes.
state_keystringNoOptional name for the only new posts memory.
match_modeenumNophrase keeps a post when the keyword's words are next to each other in its text; all_words when every word is somewhere; off keeps every result. Default phrase.phrase | all_words | off
proxy_modeenumNoauto uses the Apify proxy pool with residential as the fallback; residential uses residential addresses for every search. Does not change the price. Default auto.auto | residential
since_daysintegerNoSet aside posts older than this many days.
max_charge_usdstringNoOptional. The run stops before a charge that would pass this amount.
include_repliesbooleanNoReturn matching replies too. Default true.
max_posts_per_keywordintegerNoPosts per keyword. Default 25.

Details

From the project README

Threads Keyword Search MCP Server

npm version license

An MCP server for the Mamba Labs Threads Posts by Keyword, Exact Match actor on Apify. Search Threads for keywords and get one flat row per post that contains them.

What's Inside

What it does

Each keyword is searched the way Threads search works for a visitor who is not logged in, which shows about 20 to 25 posts per search. By default a post is kept only when the keyword's words are in its text, next to each other and in order, so loosely related results are set aside and not charged. A post found by several keywords is returned once with every keyword it matched. Filters for age, likes, and replies, and an only new posts memory for schedules. Each keyword also returns one free summary row. No Threads or Instagram account, login, or key is used.

All of the work runs on Apify. This package is a thin client that starts the actor run, waits for it, and hands back the dataset rows.

Quick start

You need Node.js 18 or newer and an Apify account with an API token.

Add this to your Claude Desktop config (claude_desktop_config.json), Cursor, or any MCP client:

{
  "mcpServers": {
    "mamba-threads-keyword-search": {
      "command": "npx",
      "args": [
        "-y",
        "@mambalabsdev/mcp-threads-keyword-search"
      ],
      "env": {
        "APIFY_TOKEN": "your-apify-token"
      }
    }
  }
}

Restart the client. The search_threads_posts tool appears.

Prerequisites

Example prompts

  • "Find Threads posts about cold email from the last 30 days."
  • "Which Threads posts mention our competitor by name this week?"
  • "Collect Threads posts about hubspot alternatives with their like counts."

Tool

search_threads_posts. One tool. Example arguments:

{
  "keywords": [
    "cold email",
    "hubspot alternative"
  ],
  "match_mode": "phrase",
  "since_days": 30
}

Inputs

Every buyer facing input of the actor. Omitted inputs take the actor's own defaults.

InputTypeRequiredDescription
keywordsarraynoWords or phrases to search Threads for, up to 50.
max_posts_per_keywordintegernoPosts per keyword, up to 50 (Threads shows about 20 to 25). Default 25.
match_modestringnophrase, all_words, or off. Default phrase.
since_daysintegernoSet aside posts older than this many days.
min_likesintegernoSet aside posts with fewer likes.
include_repliesbooleannoReturn matching replies too. Default true.
only_newbooleannoSkip posts an earlier run returned. Default false.
state_keystringnoName for the only new posts memory.
max_charge_usdstringnoOptional cost cap for the run.
proxy_modestringnoauto or residential. Default auto.

Pricing

Pay per event on Apify, billed to your Apify account. Prices in USD.

EventFree planBronzeSilverGold
post-row, per Threads post that contains your keyword$0.0025$0.002375$0.00225$0.002125
apify-actor-start, per run start$0.0015$0.0015$0.0015$0.0015

Summary rows, refused input, posts set aside by your filters, and already delivered posts are free. Mamba Labs pays the platform costs of the run, Apify proxy traffic included.

Full actor documentation

apify.com/mambalabs/threads-keyword-search

License

MIT. See LICENSE.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.