Perplexity MCP Server

Official

Answers, not links — delegate questions to Perplexity's search-grounded models and get cited responses back.

Local serverstdioTypeScriptMIT 1.3k

What is the Perplexity MCP server?

Most search MCP servers hand your assistant raw material — links, snippets, page content — and leave the reading to it. Perplexity's server inverts that: the assistant delegates the whole question to Perplexity's Sonar models, which run their own live web searches, read the results, and return a finished answer with citations. Search-as-a-colleague rather than search-as-a-library.

That's an efficient trade for questions where you want a current, synthesized take: "what changed in the latest Node LTS?", "what's the consensus on this drug trial?", "who won and what did commentators make of it?". One tool call replaces a search-fetch-read-summarise loop, and the citations keep the answer checkable — the non-negotiable feature for delegated research.

The server (Anthropic-listed, maintained in Perplexity's modelcontextprotocol repo) exposes the Sonar family tiers as tools: quick ask for everyday questions, a research variant for deeper multi-source reports, and a reasoning option for questions that need thinking as well as finding. Cost scales with tier, billed through your Perplexity API account.

The philosophical trade-off is worth being honest about: you're trusting Perplexity's reading of the web rather than doing your own. For quick current-events grounding, that trade is excellent. For research where you want to choose the sources, a raw search server (Brave, Exa) keeps the judgment on your side. Plenty of setups run both and route by question type — a pattern that works well in practice.

Tuning the request

  • The tools take a full messages array, not a bare string. Passing the surrounding conversation lets Sonar build much better search queries than a decontextualised question ever produces.
  • A recency filter (day, week, month) is the difference between "what changed this week" and a confident, well-written summary of last year's state of play.
  • Restricting retrieval to a handful of trusted domains is the cheapest quality upgrade available — for regulatory, medical or financial questions, pinning Sonar to primary sources removes most of the failure modes.
  • sonar-deep-research bills reasoning tokens and long citation-heavy output on top of the search itself, so route to it deliberately; a routine ask costs a small fraction of one deep research run.

What you can do with it

Current-events grounding

One call turns 'what happened with X this week' into a sourced, current answer.

Delegated deep dives

Hand a research question off and get a multi-source report with citations.

Fact-checking on tap

Verify claims against the live web mid-conversation.

Available tools

ToolWhat it does
perplexity_askAsk a question; Sonar searches the web and returns a cited answer
perplexity_researchDeeper multi-source research via sonar-deep-research
perplexity_reasonReasoning-heavy questions via sonar-reasoning-pro

How to install the Perplexity MCP server

{
  "mcpServers": {
    "perplexity": {
      "command": "npx",
      "args": ["-y", "server-perplexity-ask"],
      "env": { "PERPLEXITY_API_KEY": "pplx-your-key" }
    }
  }
}

API keys are created in Perplexity account settings (API section).

Configuration

A Perplexity API key with pay-as-you-go billing. Research and reasoning tiers cost more per call than quick asks.

VariableDescriptionRequired
PERPLEXITY_API_KEYPerplexity API key (pay-as-you-go billing)e.g. pplx-...Yes

Example prompts to try

  • Ask Perplexity what changed in the latest React release and what the community thinks of it.
  • Run deep research on the current market for vector databases — who's winning and why?
  • Verify this statistic about EV adoption and cite the primary source.

Frequently asked questions

Brave or Exa return material for your assistant to read; Perplexity returns a finished, citation-backed answer — its models do the searching and reading server-side. Fewer tokens and steps for you, in exchange for trusting its synthesis.