MCP Server Studio

Perplexity MCP server

Official Perplexity MCP server: real-time web search, answers and research with the Perplexity API.

Registry name: ai.perplexity/mcp-server

Publisher
perplexity.ai
Runs
Runs locally
Package
npm
Category
Search & knowledge

Source code on GitHub

Set up Perplexity (run locally)

Claude Desktop

Add to claude_desktop_config.json:

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

Claude Code

Run in your terminal:

claude mcp add mcp-server -e PERPLEXITY_API_KEY='<PERPLEXITY_API_KEY>' -- npx -y @perplexity-ai/mcp-server

Cursor

Add to .cursor/mcp.json:

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

VS Code

Add to .vscode/mcp.json:

{
  "servers": {
    "mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@perplexity-ai/mcp-server"
      ],
      "env": {
        "PERPLEXITY_API_KEY": "<PERPLEXITY_API_KEY>"
      }
    }
  }
}

Windsurf

Add to ~/.codeium/windsurf/mcp_config.json:

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

Settings

NameRequiredWhat it is
PERPLEXITY_API_KEYYesPerplexity API key

More search & knowledge MCP servers