npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

perplexity-pro-mcp

v1.0.0

Published

MCP server for Perplexity AI Pro — deep web search, follow-ups, threads and export via your browser session cookie

Downloads

71

Readme

perplexity-pro-mcp

MCP server for Perplexity AI Pro — deep web search, thread management, and export. Uses your browser session cookie, so it works with your existing Perplexity Pro subscription (no API key needed).

⚠️ This server uses Perplexity's unofficial internal API and a browser session cookie. It may break if Perplexity changes their API, and heavy automated use may violate Perplexity's Terms of Service. Use at your own risk.

Tools

| Tool | Description | |------|-------------| | perplexity_search | Deep web search via Perplexity Pro (answer + sources + related queries) | | perplexity_follow_up | Continue conversation in an existing thread | | perplexity_threads | List recent search threads | | perplexity_export | Export an answer as markdown or PDF | | perplexity_collections | List saved collections |

Setup

1. Get your cookie

Open https://www.perplexity.ai (logged in) → DevTools (F12) → Network tab → click any request to perplexity.ai → Headers → copy the full Cookie header value.

2. Configure your MCP client

Claude Code:

claude mcp add perplexity -e PERPLEXITY_COOKIE="<full cookie string>" -- npx -y perplexity-pro-mcp

Claude Desktop / other clients (claude_desktop_config.json or equivalent):

{
  "mcpServers": {
    "perplexity": {
      "command": "npx",
      "args": ["-y", "perplexity-pro-mcp"],
      "env": {
        "PERPLEXITY_COOKIE": "<full cookie string>"
      }
    }
  }
}

Parameters

perplexity_search

  • query — search query
  • modecopilot (deep multi-step) or concise (quick)
  • modelpplx_pro or pplx_alpha
  • focusinternet, academic, writing, youtube, reddit

perplexity_follow_up

  • query — follow-up question
  • thread_uuid — UUID from a previous search result

perplexity_export

  • entry_uuid — entry UUID (from threads list)
  • formatmd or pdf

Cookie refresh

Cookies expire in ~30 days. If you get 403 errors, copy fresh cookies from the browser.

Note: perplexity_search works with just the session token. Other tools require full cookies (including cf_clearance).

Development

npm install
npm run build      # compile TypeScript → dist/
npm start          # run locally (requires PERPLEXITY_COOKIE)

License

MIT