Server profile

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.

Server facts

Perplexity API Platform MCP Server

Tech

Runtime / language
node
Transports
stdio
Remote available
No
Authentication
Not specified

Activity

GitHub stars
2,573
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.

Names, permissions, and defaults can change. Check the current upstream documentation before granting access.

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.

Frequently asked questions

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

perplexity_search returns Search API results with metadata; perplexity_ask uses sonar-pro for conversational answers with web search.

Yes. The README documents Docker and Node.js deployment, a /mcp endpoint, and loopback binding by default.

The documented precedence is PERPLEXITY_PROXY, then HTTPS_PROXY, then HTTP_PROXY. Without them it connects directly.

Independent listing, not an affiliation or security review. Grant the least access needed and verify the upstream instructions before running code.

Related MCP servers

Firecrawl MCP Server

Search & Web Data

Firecrawl MCP connects AI agents to web search, scraping, crawling, and live browser interaction. It offers hosted access or a local server for collecting structured web context and running research tasks.

Tavily MCP Server

Search & Web Data

Tavily MCP Server connects AI clients to web search, page extraction, site mapping, and crawling. Run it locally with an API key or connect to the hosted service using API-key or OAuth authentication.

AgentQL MCP Server

Search & Web Data

AgentQL MCP Server extracts structured JSON from a web page using a natural-language description of the desired fields. It provides one focused extraction tool for MCP assistants.

Exa MCP Server

Search & Web Data

Exa MCP Server gives AI assistants web search and readable page retrieval, with optional advanced search and agent research tools. It supports hosted connections and a local npm package for research and coding context.

ArXiv MCP Server

Search & Web Data

Search arXiv, download papers, and read their contents through an AI assistant. Local storage and research prompts support repeatable literature review and paper analysis.

Bright Data Web MCP

Search & Web Data

Give AI assistants live web search, page extraction, and optional browser automation through Bright Data. Tool groups also provide structured datasets, package information, and AI brand-visibility queries.

DuckDuckGo Search MCP Server

Search & Web Data

Give MCP assistants DuckDuckGo search and webpage text retrieval. It suits research workflows that need regional results, readable page content, and configurable filtering.

Yargı MCP

Search & Web Data

Search Turkish court and regulatory decisions from MCP-compatible assistants. Yargı MCP retrieves decision texts as Markdown and offers both local execution and a hosted streamable HTTP endpoint.