Perplexity API Platform MCP Server

by @ppl-ai

Perplexity API Platform MCP Server

The Perplexity API Platform MCP Server gives assistants web search, conversational answers, research, and reasoning tools. It connects to Perplexity’s Search API and Sonar models through local stdio or an HTTP deployment.

Search & Web Data2,577nodeMIT

Server facts

Perplexity API Platform MCP Server

GitHub stars

2,577

Last commit

Oct 17, 2026

Runtime

node

License

MIT

Tech

Runtime
node
Transports
stdio
Remote access
No

Activity

GitHub stars
2,577
Last commit
Data as of

Tags

  • Perplexity
  • Reasoning
  • Research
  • Sonar
  • Web Search

Overview

Perplexity API Platform MCP Server is the official integration described in the supplied README for bringing Perplexity capabilities into AI assistants. It separates direct search results from model-generated responses: one tool returns ranked Search API results with metadata, while others use Sonar models for conversational answers, detailed research, or analytical reasoning. The ask operation uses sonar-pro, research uses sonar-deep-research, and reasoning uses sonar-reasoning-pro. Research and reasoning can optionally strip thinking tags from their responses to reduce the context passed back to the client.

The main client configuration launches the @perplexity-ai/mcp-server package through npx and supplies a Perplexity API key. Examples cover command-line clients and editor or desktop integrations. A separate HTTP deployment is documented for shared or cloud use, with configurable binding address, allowed hosts, and CORS origins; it defaults to loopback rather than all interfaces. Settings also cover request timeouts, logging, and an alternate API base URL. Corporate proxy support checks a Perplexity-specific variable before standard HTTPS and HTTP proxy variables. The troubleshooting section highlights long-running research timeouts and initialization failures caused by npx installation output. This is therefore both a retrieval and model-access integration, with different tools suited to finding sources, answering a quick question, or carrying out a deeper research task.

Install & configure

Requirements

  • A Perplexity API key
  • npm/npx tooling for the local command
  • An MCP-compatible client
  • Network access to the configured Perplexity API endpoint
Documented launch / install command
npx -y @perplexity-ai/mcp-server

Use the package named in the README rather than the older config_hint package. HTTP deployment is also documented. PERPLEXITY_TIMEOUT_MS adjusts timeouts, and npx -yq is suggested for clients affected by installation output.

Config file · macOS: ~/Library/Application Support/Claude/claude_desktop_config.json

Windows: %APPDATA%\Claude\claude_desktop_config.json

Use Settings → Developer → Edit Config when available. Do not assume a Linux configuration path; check the client documentation for your platform. Remote servers use the app’s connector flow when supported, not the local stdio file shown here. Merge this example with existing settings; do not overwrite unrelated servers.

Claude Desktop configuration
{
  "mcpServers": {
    "modelcontextprotocol": {
      "command": "npx",
      "args": [
        "-y",
        "@perplexity-ai/mcp-server"
      ],
      "env": {
        "PERPLEXITY_API_KEY": "<Perplexity API key>"
      }
    }
  }
}

Read the Claude Desktop setup guide

Config file · Project: .cursor/mcp.json

User: ~/.cursor/mcp.json

The project path is relative to the workspace root. The tilde denotes your user home directory. Use Cursor’s MCP settings to confirm which configuration and scope your installed version is reading. Merge this example with existing settings; do not overwrite unrelated servers.

Cursor configuration
{
  "mcpServers": {
    "modelcontextprotocol": {
      "command": "npx",
      "args": [
        "-y",
        "@perplexity-ai/mcp-server"
      ],
      "env": {
        "PERPLEXITY_API_KEY": "<Perplexity API key>"
      }
    }
  }
}

Read the Cursor setup guide

Config file · Workspace: .vscode/mcp.json

For user scope, use the “MCP: Open User Configuration” command if available. Do not guess a user configuration path across operating systems, profiles, containers, or remote workspaces; check the client documentation. Merge this example with existing settings; do not overwrite unrelated servers.

VS Code configuration
{
  "servers": {
    "modelcontextprotocol": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@perplexity-ai/mcp-server"
      ],
      "env": {
        "PERPLEXITY_API_KEY": "<Perplexity API key>"
      }
    }
  }
}

Read the VS Code setup guide

Config file · macOS/Linux: ~/.codeium/windsurf/mcp_config.json

Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json

Open the MCP configuration through Windsurf’s settings when possible to confirm the active file. Paths can differ in managed or future releases; check the client documentation if this location is not present. Merge this example with existing settings; do not overwrite unrelated servers.

Windsurf configuration
{
  "mcpServers": {
    "modelcontextprotocol": {
      "command": "npx",
      "args": [
        "-y",
        "@perplexity-ai/mcp-server"
      ],
      "env": {
        "PERPLEXITY_API_KEY": "<Perplexity API key>"
      }
    }
  }
}

Read the Windsurf setup guide

Config file · Project scope: .mcp.json at the repository root

The project file uses mcpServers. For user scope, use claude mcp add --scope user rather than assuming .mcp.json in your home directory is the user configuration. Check the client documentation for managed settings and storage details. Merge this example with existing settings; do not overwrite unrelated servers.

Claude Code configuration
{
  "mcpServers": {
    "modelcontextprotocol": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@perplexity-ai/mcp-server"
      ],
      "env": {
        "PERPLEXITY_API_KEY": "<Perplexity API key>"
      }
    }
  }
}

Read the Claude Code setup guide

Examples are translated from the published configuration. Supply your own credentials and verify requirements in the upstream README. Remote connectors are shown only where a supported configuration format is known.

Tools

Source: repository README. Tool descriptions are a documented snapshot, not a live capability check.

ToolWhat it does
perplexity_searchReturn ranked web results and metadata from the Search API.
perplexity_askAnswer web-aware conversational questions using sonar-pro.
perplexity_researchRun detailed research with sonar-deep-research.
perplexity_reasonHandle analytical reasoning with sonar-reasoning-pro.

Use cases

  • Retrieve ranked web search results with metadata.
  • Answer current-information questions using sonar-pro.
  • Produce detailed research through sonar-deep-research.
  • Handle analytical questions using sonar-reasoning-pro.

Strengths

  • Separates direct search, conversational answers, research, and reasoning.
  • Supports local stdio and shared HTTP deployment.
  • Provides corporate proxy settings and configurable request timeouts.

Limitations

  • Requires a Perplexity API key and connectivity to the API.
  • Long research requests can need higher timeout settings.
  • Some strict clients need quieter npx output to initialize successfully.

Perplexity API Platform MCP Server setup notes

  • Check PERPLEXITY_API_KEY in the Perplexity API Platform MCP Server configuration if startup or authentication fails.
  • Perplexity API Platform MCP Server's stdio example needs a client that launches local processes.

Frequently asked questions

No. The README identifies the project as the Perplexity API Platform MCP Server.

Related MCP servers