原型 · 预览版:收录官方注册中心里的全部服务器,每 30 分钟同步一次。评价和账户功能将在后续阶段推出。
PopNx MCP为使用 AI 的人准备的 MCP 服务器 · 用大白话讲清楚

Perplexity Agent

作者:zalez版本 0.4.0i★ –i在你的电脑上运行
注册名称io.github.zalez/perplexity-agent-mcp

安装

概览

作者提供的说明(英文原文)

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

PopNx MCP 的三大支柱

这三项永远不会合并成一个分数:意见、测量和人气是不同的东西。

它能帮你做什么

我们还没有为它写通俗的介绍。下面是我们从注册中心读取到的事实。

  • 连接方式: 在你的电脑上运行
  • 传输方式: stdio
  • 分类: 搜索与 AI 记忆
  • 你需要填写:PERPLEXITY_API_KEY

安装

选择你使用的 AI 应用,然后复制设置。

安装之前

  • 基础检查:1 项中通过 1 项
  • 在你的电脑上运行,拥有你的用户账户的权限(文件、网络、应用)。
  • 需要你自己填写: PERPLEXITY_API_KEY, PERPLEXITY_AGENT_WAIT_SECONDS

标为机密的值是你账户的钥匙。千万不要分享给别人,也不要粘贴到聊天里。

你需要

  • PyPI已安装 Python 的 uv(用于 uvx 命令)

你用的是哪个应用?

在上方选择你的应用。我们会记住它,下次按钮会显示“安装到 …”。

打开 Claude Desktop → Settings → Developer → Edit Config,把下面的内容粘贴到 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"
      }
    }
  }
}

在终端中运行这条命令

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

运行前请先填写空着的值。

在 Cursor 中打开

或者自己复制设置

粘贴到项目中的 .cursor/mcp.json,或 ~/.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 中打开

或者自己复制设置

粘贴到项目中的 .vscode/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"
      }
    }
  }
}

浏览器会先询问是否打开应用,然后应用会显示设置并请你确认。密钥的值会留空,由你自己填写。

这个服务器在你的电脑上运行,而 ChatGPT 只能连接互联网上的服务器。请选择其他应用。

你的选择通过 Cookie 保存在这台设备上,无需账户。

需要你填写的值

  • PERPLEXITY_API_KEY 机密 必填 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…

这些设置是根据作者在注册中心的条目生成的。如果 README 的写法不同,请以 README 为准。

它能做什么

它在你的电脑上运行;安装后,工具列表会显示在你的 AI 应用中。

基础检查i

我们检查的是任何人都能看到的信息;我们没有阅读代码。不适用的检查项不计入总数。 · 检查于 2026年11月6日

  • ✓ 通过

    作者与仓库一致

    注册名称已通过 GitHub 账户 zalez 验证,该账户拥有此仓库

  • … 尚未检查

    仍在维护

    我们还没有从 GitHub 读取这个仓库

  • … 尚未检查

    有许可证

    我们还没有从 GitHub 读取这个仓库

  • – 不适用

    端点有响应

    它在你的电脑上运行,没有互联网端点

  • – 不适用

    使用 OAuth 登录

    在你的电脑上运行,改用本地设置

  • … 尚未检查

    工具描述中没有隐藏指令

    它在你的电脑上运行;我们只能读取互联网端点的工具列表

与“搜索与 AI 记忆”中的其他服务器比较i

  • 星标数多于此分类中其他 7247 个服务器的 0%
  • 发布到注册中心的时间比此分类中其他 7247 个服务器的 27% 更新
  • 基础检查结果等于或优于此分类中其他 7247 个服务器的 100%

与注册中心里这个分类中所有活跃的服务器比较。只有当发布者拥有该仓库时,星标数才计入。

常见问题

Perplexity Agent 安全吗?

它在 1 项适用的基础检查中通过了 1 项。我们没有阅读代码。在添加密钥或令牌之前,请先看看这个服务器要求哪些权限,并使用只具备所需权限的密钥。

它需要哪些密钥或代码?

你需要填写:PERPLEXITY_API_KEY

它在我的电脑上运行还是在云端?

它在你的电脑上运行。你的 AI 应用会在需要时启动它,数据不会经过作者的服务器(除非它自己调用在线服务)。

它还在维护吗?

GitHub 仓库最后更新于–,最新版本(0.4.0)于3个月前进入注册中心。

哪些应用可以使用它?

支持 MCP 的应用,例如 Claude Desktop、Claude Code、Cursor 和 VS Code。你的电脑上还需要有 Python (uv)。

有什么可以替代它?

同一分类中有:Context7, Codebase Memory, Exa

替代选择

同一分类中其他作者的服务器,按星标数排序。

如何看卡片:★ GitHub 星标i三大支柱:评价 · 检查 · 使用情况i更新 = 最新版本发布到注册中心的时间i

Context7

作者:upstash

Up-to-date docs for AI agents

电脑或云端★ 64,224MIT今天更新
安装

Codebase Memory

作者:DeusData

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

在你的电脑上运行★ 48,148MIT20天前更新
安装

Exa

作者:exa-labs

Connect AI agents to Exa for web search, content fetching, and multi-step research.

在云端运行★ 5,213MIT上个月更新
安装

作者的 README

打开 README

按原文从作者的仓库复制。PopNx MCP 没有审查或背书其内容。HTML、图片和脚本已被移除。链接会离开本站。

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:

|

只显示了开头部分;其余内容请在仓库中阅读

问 PopNx