Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.
PopNx MCPMCP servers for people who use AI · explained in plain words

Perplexity Agent

by zalezversion 0.4.0i★ 0iRuns on your computer
Registry nameio.github.zalez/perplexity-agent-mcp

How to install

What it does

Multi-step web research with citations via Perplexity's Agent API. Standard library only.

  • Connects Runs on your computer
  • Account or key Needs PERPLEXITY_API_KEY
  • Category Search & AI memory

Install

Pick the AI app you use, then copy the settings.

Passed 2/2 checks · Runs on your computer

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

You need a Perplexity Agent key (create it on the maker’s site) · Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

  1. Install Python (uv)

    One time only; it works for every server that needs Python (uv)

    Open the Python (uv) download page ↗

  2. Sign up and create a Perplexity Agent key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the Perplexity Agent site ↗

  3. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  4. Paste these settings and save the file

    {
      "mcpServers": {
        "perplexity-agent": {
          "command": "uvx",
          "args": [
            "perplexity-agent-mcp"
          ],
          "env": {
            "PERPLEXITY_API_KEY": "your-value",
            "PERPLEXITY_AGENT_WAIT_SECONDS": "your-value"
          }
        }
      }
    }

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Quit Claude and open it again

  6. Try it

    Use Perplexity Agent and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Perplexity Agent or shows a Perplexity Agent tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect Perplexity Agent yet

Perplexity Agent runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect Perplexity Agent

  • You need a Perplexity Agent key (create it on the maker’s site) · Install Python (uv) on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • You need a Perplexity Agent key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)
  • You need a Perplexity Agent key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)
  • You need a Perplexity Agent key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)

B · Others in Search & AI memory that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

You need a Perplexity Agent key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)

  1. Install Python (uv)

    One time only; it works for every server that needs Python (uv)

    Open the Python (uv) download page ↗

  2. Sign up and create a Perplexity Agent key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the Perplexity Agent site ↗

  3. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  4. Paste this command and press Enter

    claude mcp add --scope user perplexity-agent --env PERPLEXITY_API_KEY=your-value --env PERPLEXITY_AGENT_WAIT_SECONDS=your-value -- uvx perplexity-agent-mcp

    Replace “your-value” with your key before pressing Enter

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Type /mcp in Claude Code

    You should see Perplexity Agent listed as connected

  6. Try it

    Use Perplexity Agent and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Perplexity Agent or shows a Perplexity Agent tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

You need a Perplexity Agent key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)

  1. Install Python (uv)

    One time only; it works for every server that needs Python (uv)

    Open the Python (uv) download page ↗

  2. Sign up and create a Perplexity Agent key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the Perplexity Agent site ↗

  3. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  4. Fill in your key

    In the Perplexity Agent settings, PERPLEXITY_API_KEY, PERPLEXITY_AGENT_WAIT_SECONDS is empty; add your key and save

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Open the AI chat in Cursor in Agent mode

  6. Try it

    Use Perplexity Agent and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Perplexity Agent or shows a Perplexity Agent tool in the answer, you are connected

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

You need a Perplexity Agent key (create it on the maker’s site) · Install Python (uv) on your computer first (one time)

  1. Install Python (uv)

    One time only; it works for every server that needs Python (uv)

    Open the Python (uv) download page ↗

  2. Sign up and create a Perplexity Agent key

    Open the maker’s site, sign up and create an API key for the next step. Check the maker’s site for pricing and free plans.

    Open the Perplexity Agent site ↗

  3. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  4. Fill in your key

    In the Perplexity Agent settings, PERPLEXITY_API_KEY, PERPLEXITY_AGENT_WAIT_SECONDS is empty; add your key and save

    Paste the key only into the app’s field, never into a chat or to anyone

  5. Open the AI chat in VS Code in Agent mode

  6. Try it

    Use Perplexity Agent and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Perplexity Agent or shows a Perplexity Agent tool in the answer, you are connected

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use Perplexity Agent💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add --scope user perplexity-agent --env PERPLEXITY_API_KEY=your-value --env PERPLEXITY_AGENT_WAIT_SECONDS=your-value -- uvx perplexity-agent-mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "perplexity-agent": {
      "command": "uvx",
      "args": [
        "perplexity-agent-mcp"
      ],
      "env": {
        "PERPLEXITY_API_KEY": "your-value",
        "PERPLEXITY_AGENT_WAIT_SECONDS": "your-value"
      }
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "perplexity-agent": {
      "command": "uvx",
      "args": [
        "perplexity-agent-mcp"
      ],
      "env": {
        "PERPLEXITY_API_KEY": "your-value",
        "PERPLEXITY_AGENT_WAIT_SECONDS": "your-value"
      }
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "perplexity-agent": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "perplexity-agent-mcp"
      ],
      "env": {
        "PERPLEXITY_API_KEY": "your-value",
        "PERPLEXITY_AGENT_WAIT_SECONDS": "your-value"
      }
    }
  }
}

Values you fill in

  • PERPLEXITY_API_KEY secret required env
    Your Perplexity API key. Read at call time and sent only as an Authorization header to api.perplexity.ai; never logged or echoed.
  • PERPLEXITY_AGENT_WAIT_SECONDS env
    How long a blocking call waits before handing back a response_id to collect later. Defaults to 55, just inside Claude Desktop's unconfigurable 60s tool-call timeout. Raise to 300 on clients without t…

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
64/wk
Licencei
No licence stated
Connection
Runs on your computer
Latest versioni
0.4.0
Published to registryi
Aug 2, 2026
Code last changedi
Nov 5, 2026
Maker
zalez
Packages
pypi: perplexity-agent-mcp
Website
github.com
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 12, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account zalez, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed 7 days ago

  • … Not checked yet

    Has a licence

    We have not read this repo from GitHub yet

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in with Google to post

User reviews

No reviews yet

Sign in with Google to write a review

Compared with others in Search & AI memoryi

  • More stars than 0% of the other 5982 servers in this category
  • Published to the registry more recently than 25% of the other 5982 servers in this category
  • Basic checks equal to or better than 100% of the other 5982 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Perplexity Agent safe?

It passed 2 of 2 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

You need to fill in: PERPLEXITY_API_KEY

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed 7 days ago, and the latest version (0.4.0) reached the registry 3 months ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Python (uv) on your computer.

What can I use instead?

In the same category: Context7, Codebase Memory, Ruflo

Others in the same category

Servers in the same category from other makers, sorted by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

Context7

Feeds AI the latest docs for libraries and frameworks before it answers, so code it writes does not use outdated, removed functions.

by upstashWidely used↓ 1.2M/wk★ 64.6KUpdated 3 days ago

Computer or cloud

Codebase Memory

Codebase knowledge graph for AI agents — 162 languages, sub-ms queries, 99% fewer tokens.

by DeusDataWidely used↓ 16.8K/wk★ 48.5KUpdated 26 days ago

Runs on your computer

Ruflo

Agent teams, swarms, memory and hooks for Claude Code and Codex, served over MCP.

by ruvnetWidely used↓ 74.3K/wk★ 81.5K Stars for the whole repoUpdated yesterday

Runs on your computer

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

perplexity-agent-mcp

A single-file, zero-third-party-dependency MCP server for Perplexity's Agent API — multi-step web research with citations, exposed to any MCP client over stdio.

Python standard library only: no MCP SDK, no HTTP library, no code generated at build time. perplexity_agent_mcp.py holds your API key and talks to the network on your behalf, so it is written to be read — 1,774 lines, comments included. Both install paths below ship the exact same file; which one you pick changes how many other parties you're trusting to get it onto your disk, not what actually runs.

Background reading: *perplexity-agent-mcp: an open-source MCP server for Perplexity's Agent API* — why this exists, what the Agent API does that Sonar doesn't, and what building it turned up.

Why this exists

Perplexity's own @perplexity-ai/mcp-server wraps the Sonar chat models and the Search API. It does not reach the Agent API (POST /v1/agent) — Perplexity's multi-step, tool-using research endpoint, which runs its own web searches, fetches pages, and synthesizes one cited answer. This server fills exactly that gap. It's meant to run alongside the official one, not replace it.

The three tools

The Agent API is asynchronous under the hood (see Configuration for why that matters), so this server exposes it as one lifecycle, not one call:

ToolDoesUse it when
perplexity_agentStarts a research run. By default, blocks until the answer is ready and returns synthesized, sourced text.Your default entry point for any research question.
perplexity_agent_resultCollects a run started earlier — a one-shot progress check, or a blocking wait.perplexity_agent handed back a response_id instead of an answer (it ran out of wait budget, or you called it with wait: false).
perplexity_agent_cancelAsks Perplexity to stop a run that's no longer needed.You started something with wait: false and no longer want the answer.

Full parameters

`perplexity_agent`

ParamTypeDefaultNotes
querystring*(required)*The research question.
presetstringmediumfast, low, medium, high, xhigh, wide-research — an open string, not validated client-side, so a preset Perplexity adds tomorrow works today without an update to this server.
recencystring*(none)*One of hour, day, week, month, year.
domainsstring[]*(none)*Up to 20 domains. Prefix an entry with - to exclude it. Allowlist or denylist, not both.
waitbooleantrueBlock until done, or return a response_id immediately so you can run several deep queries in parallel.

`perplexity_agent_result`

ParamTypeDefaultNotes
response_idstring*(required)*From perplexity_agent.
wait_secondsinteger00 checks once and returns immediately. A higher value blocks, but is silently clamped to this server's configured wait budget (see Configuration) rather than rejected.

`perplexity_agent_cancel`

ParamTypeDefaultNotes
response_idstring*(required)*From perplexity_agent.

One deliberate asymmetry, visible in tools/list: perplexity_agent's readOnlyHint annotation is false, even though it never touches your local machine — it creates real, billable, cancellable state on Perplexity's servers, and MCP clients use that hint to decide whether a call needs your approval before running. perplexity_agent_cancel carries destructiveHint: true, honestly: it ends a run, and Perplexity reports no usage at all for cancelled runs, so this tool cannot tell you whether cancelling changed your bill (see Security).

Install — Path A: single file

The whole point of this project is that you can read the one file that will hold your API key before you trust it with one. Do that first: download perplexity_agent_mcp.py and read it top to bottom.

Then check your interpreter. Stock macOS ships Python 3.9.6 at /usr/bin/python3 (confirmed on a current macOS install) — below this server's 3.10 floor. It will refuse to start and say why rather than fail obscurely, but you still want a real 3.10+ python3 (Homebrew, python.org, or uv python install all provide one):

python3 --version   # must be >= 3.10

which python3 # note this path for the config below

Point your MCP client at the absolute paths of both the interpreter and the file:

{

"mcpServers": { "perplexity-agent": { "command": "/absolute/path/to/python3", "args": ["/absolute/path/to/perplexity_agent_mcp.py"], "env": { "PERPLEXITY_API_KEY": "pplx-…" } } } }

Use absolute paths for both — the same reason Path B insists on one below applies here too: a GUI app's PATH is not your shell's PATH, and a bare "command": "python3" can quietly resolve to that too-old system interpreter instead of the one you meant. On macOS, Claude Desktop's config file lives at ~/Library/Application Support/Claude/claude_desktop_config.json.

Trust chain: Python standard library, plus Perplexity. Nothing else.

Install — Path B: uvx from PyPI

One JSON snippet, nothing to download by hand. uv fetches and runs the published package each time your MCP client starts the server.

{

"mcpServers": { "perplexity-agent": { "command": "/absolute/path/to/uvx", "args": ["perplexity-agent-mcp"], "env": { "PERPLEXITY_API_KEY": "pplx-…" } } } }

Two things worth getting right, each the difference between a working config and a support thread:

Use an absolute path to `uvx`. macOS GUI apps — Claude Desktop launched from Finder or Spotlight, not a terminal — do not inherit your shell's PATH. If the config above says "command": "uvx", Claude Desktop very likely can't find it and fails with spawn uvx ENOENT. Run which uvx in your terminal and paste the absolute path it prints into command instead.

Pin the version if you want reproducibility. "args": ["perplexity-agent-mcp@0.4.0"] holds you on one release. Unpinned, uv resolves the newest *published release* on every restart — which is a materially different risk from tracking a branch: releases are immutable, tagged, and go through the same CI as everything else. Pin if you would rather review each upgrade; leave it off if you would rather get fixes automatically. Either is defensible, which is why this is not a warning.

Also: a plugin for llm

The same Perplexity Agent client, exposed as a model for Simon Willison's llm CLI. Optional — the MCP server never imports it and keeps its zero dependencies either way.

llm install llm-perplexity-agent

llm keys set perplexity # skip if you already set this for llm-perplexity llm -m perplexity-agent 'What changed in MCP 2026-07-28?'

Options mirror the MCP tool:

llm -m perplexity-agent -o preset xhigh -o recency week 'Latest on X'

llm -m perplexity-agent -o domains 'nasa.gov,-reddit.com' 'Artemis status' llm -m perplexity-agent -o timeout 600 'Something genuinely deep'

Poll progress goes to stderr, so the answer pipes cleanly:

$ llm -m perplexity-agent 'What is MCP?' > answer.md

[perplexity-agent] status queued after 1s; no intermediate results yet [perplexity-agent] status in_progress after 3s; 10 search result(s) gathered

Why not just point `llm` at the MCP server? llm has no MCP support — simonw/llm#696 has been open since January 2025. Third-party bridges exist, but the maintained ones pull in the full MCP SDK to talk to a server that deliberately has no dependencies. And the existing llm-perplexity plugin wraps the older Sonar chat models, not the Agent API — the same gap this project fills for MCP.

One deliberate difference from the MCP server: spotlighting is off by default here. In MCP the answer goes straight into a model that is holding tools, so injected instructions could cause actions, and the wrapper is essential. On the command line the answer goes to a terminal for a human to read, and llm runs no tool loop by default — so the realistic risk is a manipulated summary if you pipe it into another model, not a hijacked agent. Turn it on with -o spotlight true when the output is headed somewhere that matters:

llm -m perplexity-agent -o spotlight true 'Research X' | llm -m gpt-5 'Summarise'

Trust chain: Path A vs Path B

These are not two equally convenient ways to install the same thing. Path B has a strictly larger trust surface than Path A — full stop; that's not a knock on Path B, it's the trade you make for not downloading anything by hand.

Path A: single filePath B: uvx
You trustPython standard library, PerplexityPython standard library, Perplexity, plus `uv`, `flit_core`, and GitHub (at fetch time — every restart, unless pinned)
What runsExactly the bytes you readA wheel flit_core builds from the tag you pinned — same source, but fetched and built on your behalf
Best forMaximum auditabilityMaximum convenience

Both paths ship *the same bytes* — flit_core copies the one .py file into a wheel; nothing is generated, bundled, or vendored in between. Reading the file audits both.

Configuration

VariableRequiredDefaultWhat it does
PERPLEXITY_API_KEYYes—Your Perplexity API key. Missing or empty → a clean tool error naming the variable, never a crash.
PERPLEXITY_AGENT_WAIT_SECONDSNo55Seconds a blocking tool call may wait before handing back a response_id instead of an answer.
Why 55

Claude Desktop enforces a tool-call timeout of 60 seconds that its users cannot configure — no setting, no environment variable, nothing in the UI. A synchronous MCP call that runs longer simply dies from the client's point of view, while Perplexity keeps working — and billing — server-side regardless. 55 leaves this server's own submit-then-poll round trip a 5-second margin inside that hard ceiling.

If your client isn't Claude Desktop, raise it — there's no reason to hand back a response_id early if your client is happy to keep waiting:

"env": { "PERPLEXITY_API_KEY": "pplx-…", "PERPLEXITY_AGENT_WAIT_SECONDS": "300" }

300 is what we recommend for Claude Code, VS Code, and Cursor IDE — see why in the table below. An unset, empty, non-numeric, zero, or negative value silently falls back to 55; a valid positive value is capped at 1800 (30 minutes) so a stray extra zero can't hang a call indefinitely. perplexity_agent_result's own wait_seconds parameter advertises this same ceiling as its declared maximum in tools/list — but sending it a larger value anyway doesn't get rejected, it gets silently clamped to the ceiling.

No MCP client publishes Claude Desktop's figure anywhere; we obtained it by reverse-engineering the installed app (v1.24012.1) — its bundled TypeScript SDK defaults DEFAULT_REQUEST_TIMEOUT_MSEC to 60000ms, and Claude Desktop calls callTool() without overriding it. The rest of this table comes from each project's own docs or source, with confidence noted where it's shaky:

|

Only the beginning is shown; read the rest in the repo