Perplexity Ai MCP Server

The official TypeScript library for the Perplexity API

Local serverstdioTypeScript

What is the Perplexity Ai MCP Server?

The official TypeScript library for the Perplexity API

What you get

This library provides convenient access to the Perplexity REST API from server-side TypeScript or JavaScript.

Configuration and credentials

TypeScript >= 5.0 is supported.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

How to install the Perplexity Ai MCP Server

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

Add to claude_desktop_config.json, then restart Claude Desktop.

Configuration

TypeScript >= 5.0 is supported.

VariableDescriptionRequired
PERPLEXITY_API_KEYCredential the server authenticates with.Yes

Example prompts to try

  • “Use Perplexity Ai to Retries.”
  • “Use Perplexity Ai to Timeouts.”
  • “Use Perplexity Ai to Logging.”

Frequently asked questions

The official TypeScript library for the Perplexity API Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.