Servers › Web & Search › Perplexity

● MaintainedWeb & Search

Perplexity MCP Server

Perplexity's official MCP server for its API Platform: real-time web search, reasoning and research through Perplexity's Agent API and Search API. Use the hosted server at https://api.perplexity.ai/mcp and send Authorization: Bearer <your API key>, or run it locally with npx -y @perplexity-ai/mcp-server and PERPLEXITY_API_KEY. If a strict client fails with EOF or initialize errors, Perplexity suggests npx -yq so npm's install messages don't reach stdout. Version 1.5.0 (Nov 25, 2026) adds perplexity_context, which fetches pages by URL through Perplexity's Context API and returns Markdown by default (or HTML, links, highlights and yes/no answers to your criteria). Version 1.4.0 was never published to npm, so its changes also arrive with 1.5.0: optional max_tokens and max_tokens_per_page budgets for perplexity_ask and perplexity_reason, with the legacy search_context_size translated into those budgets.

Install

npx -y @perplexity-ai/mcp-server

Source: official setup docs

Remote server (hosted)

Point your client at this URL. Depending on the provider, you sign in with OAuth or send an API key header (see the source docs).

https://api.perplexity.ai/mcp
{
  "mcpServers": {
    "perplexity": {
      "url": "https://api.perplexity.ai/mcp"
    }
  }
}

Example for Cursor mcp.json. Other apps use slightly different fields; see the setup guide for your app.

Claude Code: claude mcp add --transport http perplexity https://api.perplexity.ai/mcp

Example config (Cursor / Claude Desktop)

{
  "mcpServers": {
    "perplexity": {
      "command": "npx",
      "args": [
        "-y",
        "@perplexity-ai/mcp-server"
      ],
      "env": {
        "PERPLEXITY_API_KEY": "<your-value>"
      }
    }
  }
}

The same mcpServers block works in Cursor, Claude Desktop and Devin Desktop. VS Code (Copilot) uses a "type" field, Claude Code is easiest with claude mcp add, and Codex uses TOML: see the setup guide for your app. On Windows, wrap npx with cmd /c (fix).

At a glance

Repositoryperplexityai/modelcontextprotocol
GitHub stars2,668
Last commit2026-11-25 (5 days ago)
Statusmaintained
Security advisoriesNo published advisories found as of 2026-11-30. Details
Clients mentioned in READMEClaude Desktop, Claude Code, Cursor, VS Code, Windsurf, Codex
AuthAPI key/token · PERPLEXITY_API_KEY
Language / LicenseTypeScript / MIT

Security advisories

No published advisories found as of 2026-11-30.

Checked 2026-11-30 in the repo's GitHub security advisories and OSV.dev for @perplexity-ai/mcp-server (npm). No advisory doesn't prove a server is safe. How to stay updated.

Weekly MCP digest
New servers, breaking changes, and fresh fixes. One email a week.