Perplexity

🔎 A Model Context Protocol (MCP) server for integrating Perplexity's AI API with LLMs.
  • javascript

8

GitHub Stars

javascript

Language

6 months ago

First Indexed

2 months ago

Catalog Refreshed

Documentation & install

Readme and setup notes from the catalogue, plus a client-ready config you can copy for your MCP host.

Installation

Add the following to your MCP client configuration file.

Configuration

View docs
{
  "mcpServers": {
    "spences10-mcp-perplexity-search": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-perplexity-search"
      ],
      "env": {
        "PERPLEXITY_API_KEY": "your-perplexity-api-key"
      }
    }
  }
}

You can add Perplexity-powered chat completion to your MCP workflow with the Perplexity Search server. It provides advanced chat responses using Perplexity models, with predefined templates for common tasks and flexible output formats to fit your needs.

How to use

You interact with this MCP server through an MCP client by calling the chat_completion tool. You can choose from predefined templates or supply a custom template to tailor responses. When you request a completion, you can select the output format (text, markdown, or JSON) and decide whether to include source URLs. You can also adjust model parameters like temperature and max_tokens to influence creativity and length. Use specialized templates for scenarios such as technical documentation, security practices, code reviews, or API documentation to get focused results.

How to install

Prerequisites: you need Node.js and npm (or npx) installed on your system. You also must have a Perplexity API key.

{
  "mcpServers": {
    "mcp-perplexity-search": {
      "command": "npx",
      "args": ["-y", "mcp-perplexity-search"],
      "env": {
        "PERPLEXITY_API_KEY": "your-perplexity-api-key"
      }
    }
  }
}

How to install (WSL/Claude Desktop example)

If you are using a WSL environment, you can run the server via a Windows-based launcher that executes a shell command inside WSL.

{
  "mcpServers": {
    "mcp-perplexity-search": {
      "command": "wsl.exe",
      "args": [
        "bash",
        "-c",
        "source ~/.nvm/nvm.sh && PERPLEXITY_API_KEY=your-perplexity-api-key /home/username/.nvm/versions/node/v20.12.1/bin/npx mcp-perplexity-search"
      ]
    }
  }
}

Environment variables

The server requires the following environment variable. Set this to your Perplexity API key to authenticate requests.

PERPLEXITY_API_KEY: Your Perplexity API key (required)

Available tools

chat_completion

Generate chat completions using the Perplexity API with support for specialized prompt templates, output formats, and optional sources.

Built by
VeilStrat
AI signals for GTM teams
© 2026 VeilStrat. All rights reserved.All systems operational
Perplexity MCP Server - spences10/mcp-perplexity-search | VeilStrat