Repository avatar
Other Tools
v1.0.1
active

mcp-perplexity-answer-reader

com.mambabuilt/mcp-perplexity-answer-reader

Perplexity answers with cited sources and a brand check, on your own Perplexity API key

Documentation

Perplexity Answer Reader MCP Server

Glama score MCP Registry npm version npm downloads license

An MCP server for the Mamba Labs Perplexity Answer Reader actor on Apify. Perplexity answers and their cited sources, on your own key.

What's Inside

What it does

Give questions and your own Perplexity API key. The actor asks each question through Perplexity's Agent API with web search on and returns one row per answer: the answer text, every source Perplexity found with which ones the answer cites, the cited domains in order, and the searches it ran. Name a brand and each row also says whether the answer names it, cites its domain, and at what position. You pay Perplexity directly and this actor per completed answer.

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-perplexity-answer-reader": {
      "command": "npx",
      "args": [
        "-y",
        "@mambalabsdev/mcp-perplexity-answer-reader"
      ],
      "env": {
        "APIFY_TOKEN": "your-apify-token"
      }
    }
  }
}

Restart the client. The ask_perplexity_with_sources tool appears.

Prerequisites

Example prompts

  • "Ask Perplexity these 10 buyer questions on my key and tell me which answers cite hubspot.com."
  • "Ask the same question 5 times and list every domain Perplexity cites."
  • "What sources does Perplexity use to answer questions about project management tools?"

Tool

ask_perplexity_with_sources. One tool. Example arguments:

{
  "prompts": [
    "What is the best CRM for a 10 person sales team?"
  ],
  "brand": "HubSpot|hubspot.com"
}

Inputs

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

InputTypeRequiredDescription
promptsarraynoThe questions to ask Perplexity, one per line. Each is sent as written. As text, one prompt per line; a comma does not split a prompt.
api_keystringnoYour own Perplexity API key, from console.perplexity.ai. It is sent only to api.perplexity.ai and is never stored, logged, or written to a row. With no key, the run checks up to 3 prompts for free and asks nothing.
effortstringnoPerplexity's Agent API effort level: fast (default; quick answers with numbered citations), low, medium, or high. Higher levels search more and cost more on your Perplexity bill. Ignored when you name a model.
modelstringnoOptional. An Agent API model ID, for example perplexity/sonar or openai/gpt-5.6-sol. When set, the actor asks that model with Perplexity's web search tool on instead of using an effort level.
brandstringnoOptional. A brand name, a domain, or both as Name/domain.com. Each row then says whether the answer names the brand and cites its domain, and at what position.
competitorsarraynoOptional. Competitor names or Name/domain.com, one per line. Used for the brand mention rank and the competitors named column.
samples_per_promptnumbernoHow many times to ask each prompt, 1 to 5 (default 1). Answers change between calls, so more samples give a steadier read. Each sample is one Perplexity call and one charged answer.
search_domain_filterarraynoOptional. Domains for Perplexity's web search to use, or to skip with a leading minus, for example -pinterest.com. Up to 20.
search_recency_filterstringnoOptional. Limit web search results to the last hour, day, week, month, or year.
countrystringnoOptional. Two letter country code, for example US or DE. Perplexity uses it as the searcher's location.
concurrencynumbernoHow many prompts to ask at the same time, 1 to 10 (default 3). Lower it if your Perplexity account hits its rate limit.
max_charge_usdstringnoOptional. The run stops before a charge that would pass this amount. Summary rows are always returned. It does not cap your Perplexity bill.

Pricing

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

EventFree planBronzeSilverGold
answer-row, one completed answer with its sources$0.01$0.0095$0.009$0.0085
apify-actor-start, per run start$0.002$0.002$0.002$0.002

Refused, failed, and unfinished answers, check rows with no key, and refused input are free. Mamba Labs pays the platform costs of the run. Mamba Labs pays the platform costs of the run, Apify proxy traffic included.

Full actor documentation

apify.com/mambalabs/perplexity-answer-reader

License

MIT. See LICENSE.