Skip to content

Menu

Perplexity MCP Server logo

Perplexity MCP Server

Published · Updated

At a glance

Watch out for
Every call is billed to your Perplexity API account; research runs cost more than simple asks.

This is Perplexity's official MCP server for its API platform. The repository moved from the ppl-ai organisation to perplexityai/modelcontextprotocol, and the npm package is @perplexity-ai/mcp-server. It gives an assistant four tools that map to different depths of research, from plain search results to long research reports.

The tools differ in more than speed. perplexity_search calls the Search API and returns ranked results with metadata, which is what you want when the model should read and judge the sources itself. The other three use Perplexity's Agent API with different presets and return a written answer with citations: perplexity_ask is quick, perplexity_reason is for analytical problems, and perplexity_research does deep research that can take minutes, with progress reported to the client while it runs.

That makes it a different kind of tool from search APIs that only return pages. You are effectively delegating part of the research to Perplexity's own models, which can save a lot of tool calls and context. The trade-off is that you see Perplexity's synthesis rather than the raw material, so for anything important it is worth checking the cited sources.

How it connects

Your AI app

An assistant or agent that supports MCP

Perplexity MCP Server

Runs as

  • npx (Node.js)
  • Docker
  • Remote (HTTP)

Gives the agent

  • perplexity_search
  • perplexity_ask
  • perplexity_reason
  • perplexity_research
  • Context controls

Perplexity

Signs in with

  • API key
Your AI app talks to Perplexity MCP Server over the Model Context Protocol, and the server carries out the work. Built from the setup and capability sections on this page.

What it can do

perplexity_search
Direct web search through the Search API, returning ranked results with publication and update dates where available, plus recency and domain filters.
perplexity_ask
Fast, general-purpose answers with real-time web search, backed by the Agent API fast preset.
perplexity_reason
Answers that need reasoning through a problem, backed by the medium preset.
perplexity_research
Deep, thorough research backed by the high preset. Runs can take minutes, and the server streams progress back to the client.
Context controls
ask and reason accept max_tokens (up to 120,000) and max_tokens_per_page (up to 20,000) to limit how much search context is used.

Setting it up

You need a Perplexity API key from the Perplexity console. The easiest option is Perplexity's remote server: in Claude Code, claude mcp add --transport http perplexity https://api.perplexity.ai/mcp --header "Authorization: Bearer YOUR_API_KEY". To run it locally instead: claude mcp add perplexity --env PERPLEXITY_API_KEY=your_key -- npx -y @perplexity-ai/mcp-server, and Codex uses the same arguments with codex mcp add. The README also covers proxy settings for corporate networks and a self-hosted HTTP mode with Docker, which listens on port 8080 at /mcp.

Run in a terminal
claude mcp add perplexity -- npx -y @perplexity-ai/mcp-server

Runs the @perplexity-ai/mcp-server package from npm. Add any API keys, environment variables or extra arguments the setup notes above list. Combine several servers in the MCP config generator

Where each client keeps its MCP config file, and the JSON it expects (cheat sheet)

Where it helps

  • Getting a cited answer to a current question without the agent reading a dozen pages itself
  • Running a longer research task, such as comparing several libraries, while you keep working
  • Quick factual checks with perplexity_ask during coding
  • Using perplexity_search when you want the raw ranked sources rather than a summary

Limitations and things to watch

  • Every call is billed to your Perplexity API account; research runs cost more than simple asks.
  • Answers are Perplexity's synthesis, so check citations for anything that matters.
  • perplexity_research can take minutes. The server's default timeout is 5 minutes, which PERPLEXITY_TIMEOUT_MS can raise, and some clients also time out on long tool calls.
  • Some strict MCP clients fail at startup because npx prints install messages; the README suggests npx -yq instead of npx -y.

Sources

Written from the project's own documentation, checked November 2026.

How we research: where our facts come from, how often we re-check them, and why no one can pay for a review or a verdict.

Reviews and commentsShow

Reviews

Sign in to leave a review.

Loading reviews…

Comments

Sign in to leave a comment.

Loading comments…