NestDaddy

Perplexity Agent

io.github.zalez/perplexity-agent-mcp · v0.4.0

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

Connect Runs on your machine

Terminal
claude mcp add perplexity-agent-mcp -e PERPLEXITY_API_KEY=<PERPLEXITY_API_KEY> -e PERPLEXITY_AGENT_WAIT_SECONDS=<PERPLEXITY_AGENT_WAIT_SECONDS> -- uvx perplexity-agent-mcp==0.4.0
claude_desktop_config.json
{
  "mcpServers": {
    "perplexity-agent-mcp": {
      "command": "uvx",
      "args": [
        "perplexity-agent-mcp==0.4.0"
      ],
      "env": {
        "PERPLEXITY_API_KEY": "<PERPLEXITY_API_KEY>",
        "PERPLEXITY_AGENT_WAIT_SECONDS": "<PERPLEXITY_AGENT_WAIT_SECONDS>"
      }
    }
  }
}
~/.cursor/mcp.json
{
  "mcpServers": {
    "perplexity-agent-mcp": {
      "command": "uvx",
      "args": [
        "perplexity-agent-mcp==0.4.0"
      ],
      "env": {
        "PERPLEXITY_API_KEY": "<PERPLEXITY_API_KEY>",
        "PERPLEXITY_AGENT_WAIT_SECONDS": "<PERPLEXITY_AGENT_WAIT_SECONDS>"
      }
    }
  }
}
.vscode/mcp.json
{
  "servers": {
    "perplexity-agent-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "perplexity-agent-mcp==0.4.0"
      ],
      "env": {
        "PERPLEXITY_API_KEY": "<PERPLEXITY_API_KEY>",
        "PERPLEXITY_AGENT_WAIT_SECONDS": "<PERPLEXITY_AGENT_WAIT_SECONDS>"
      }
    }
  }
}

Replace the values in angle brackets with your own. Keys stay on your machine; we never see them.

Tools

This server runs locally, so its tools are listed by your MCP client once it starts.

Environment variables

NameDescription
PERPLEXITY_API_KEY
Required, secret
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
Optional
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 that limit.

Details

Package[email protected] (PYPI, stdio)
First published2 Aug 2026
Last updated2 Aug 2026
Registry nameio.github.zalez/perplexity-agent-mcp

More search and web servers See all

Listing data from the official MCP registry. Status and tools from NestDaddy's daily check. Browse all MCP servers.