What is this?
It's the official MCP server for the Perplexity API Platform, giving AI assistants real-time web search, reasoning, and research tools through Perplexity's Agent API and Search API.
Is this a standalone app or something I plug into my AI assistant?
It's an MCP (Model Context Protocol) server — a connector that any MCP-compatible client (Claude Code, Cursor, VS Code, Codex, Claude Desktop) talks to, either through Perplexity's hosted remote endpoint or a locally run/self-hosted instance.
How do I get it running?
Easiest is the remote server hosted by Perplexity — nothing to install, just connect over Streamable HTTP with your API key (one-click buttons for Cursor/VS Code). For a local setup, add it to Claude Code, Codex, or any client using the same mcpServers config wrapper (e.g. ~/.cursor/mcp.json).
Do I need a Perplexity API key?
Yes — get one from the Perplexity API Portal and set it as PERPLEXITY_API_KEY (or paste it into your client's MCP config).
What happened to the old Sonar models and parameters?
Earlier versions called legacy models like sonar-pro and sonar-deep-research and accepted strip_thinking/reasoning_effort params; those are now ignored. The server runs on Agent API presets instead, and legacy search_context_size values are just translated into token budgets rather than sent to the API directly.
What tools does it actually expose?
Four: perplexity_search for direct ranked web search with recency/domain filters, perplexity_ask for quick conversational search (Agent API fast preset), perplexity_research for deep multi-minute research with progress streaming (high preset), and perplexity_reason for complex analytical tasks (medium preset).
Can I self-host it for a team instead of using Perplexity's hosted endpoint?
Yes, run it in HTTP mode via Docker or Node.js, with PORT, BIND_ADDRESS, ALLOWED_ORIGINS, and ALLOWED_HOSTS to control network exposure and CORS.
Can I embed it in my own app instead of running it as a separate server?
Yes, the package exports a server factory you can mount on any MCP transport (stdio, streamable HTTP, in-memory) inside your own Node process.
Does it work behind a corporate proxy?
Yes — it checks PERPLEXITY_PROXY first, then falls back to the standard HTTPS_PROXY/HTTP_PROXY variables, connecting directly if none are set.
What are similar projects?
wigolo, n8n-mcp, xerj, headroom, davinci-resolve-mcp, overmind, context7, evenfire
Which topics is it in?
claude-desktop, windsurf, web-search, search-engine, node, model-context-protocol, cursor, proxy, rest-api, mcp-server, codex, api