1. Conduid
  2. Search
  3. Server Perplexity
MCP server · Search

Server Perplexity

Enhanced MCP server with comprehensive Perplexity API parameter support for advanced development assistance

37Low

Scored 6 months ago · breakdown

About Server Perplexity

Server Perplexity is an MCP server in the Search category: enhanced MCP server with comprehensive Perplexity API parameter support for advanced development assistance.

Install

Claude Code
claude mcp add server-perplexity -- npx -y mcp-server-perplexity
npx
npx -y mcp-server-perplexity

This server has no ConduID identity, so agent calls to it are not receipted. Pin the version you install and review the source before granting it credentials.

Ask AI

✦

Ask AI about Server Perplexity

Powered by Claude · Grounded in docs

I know everything about Server Perplexity. Ask me about installation, configuration, usage, or troubleshooting.

Security checks

  • ✓README presentThe repository ships documentation.

5 checks have not been run yet.

README

Perplexity Ask MCP Server

An MCP server implementation that integrates the Sonar API to provide Claude with unparalleled real-time, web-wide research.

Please refer to the official DeepWiki page for assistance with implementation.

High-level System Architecture

Credits: DeepWiki powered by Devin

System Architecture

Demo

Tools

  • perplexity_ask
    • Engage in a conversation with the Sonar API for live web searches.
    • Inputs:
      • messages (array): An array of conversation messages.
        • Each message must include:
          • role (string): The role of the message (e.g., system, user, assistant).
          • content (string): The content of the message.

Configuration

Step 1:

Clone this repository:

git clone git@github.com:ppl-ai/modelcontextprotocol.git

Navigate to the perplexity-ask directory and install the necessary dependencies:

Using pnpm (recommended):

cd modelcontextprotocol/perplexity-ask && pnpm install

Installing pnpm (if not already installed):

npm install -g pnpm

Or use alternative installation methods from pnpm documentation.

Step 2: Get a Sonar API Key

  1. Sign up for a Sonar API account.
  2. Follow the account setup instructions and generate your API key from the developer dashboard.
  3. Set the API key in your environment as PERPLEXITY_API_KEY.

Step 2.1: Configure Base URL (Optional)

The server supports configuring a custom base URL for the Perplexity API through the BASE_URL environment variable. This is useful for api providers like oipenrouter.

Default behavior: If not set, the server uses https://api.perplexity.ai/chat/completions

Step 3: Configure Claude Desktop

  1. Download Claude desktop here.

  2. Add this to your claude_desktop_config.json:

{
  "mcpServers": {
    "perplexity-ask": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "PERPLEXITY_API_KEY",
        "-e",
        "BASE_URL",
        "mcp/perplexity-ask"
      ],
      "env": {
        "PERPLEXITY_API_KEY": "YOUR_API_KEY_HERE",
        "BASE_URL": "https://api.perplexity.ai/chat/completions"
      }
    }
  }
}

NPX

{
  "mcpServers": {
    "perplexity-ask": {
      "command": "npx",
      "args": [
        "-y",
        "server-perplexity-ask"
      ],
      "env": {
        "PERPLEXITY_API_KEY": "YOUR_API_KEY_HERE",
        "BASE_URL": "https://api.perplexity.ai/chat/completions"
      }
    }
  }
}

You can access the file using:

vim ~/Library/Application\ Support/Claude/claude_desktop_config.json

Step 4: Build the Docker Image

Docker build:

docker build -t mcp/perplexity-ask:latest -f Dockerfile .

Step 5: Testing

Let's make sure Claude for Desktop is picking up the two tools we've exposed in our perplexity-ask server. You can do this by looking for the hammer icon:

Claude Visual Tools

After clicking on the hammer icon, you should see the tools that come with the Filesystem MCP Server:

Available Integration

If you see both of these this means that the integration is active. Congratulations! This means Claude can now ask Perplexity. You can then simply use it as you would use the Perplexity web app.

Step 6: Advanced parameters

Currently, the search parameters used are the default ones. You can modify any search parameter in the API call directly in the index.ts script. For this, please refer to the official API documentation.

Troubleshooting

The Claude documentation provides an excellent troubleshooting guide you can refer to. However, you can still reach out to us at api@perplexity.ai for any additional support or file a bug.

Cursor integration

You can also use our MCP with Cursor (or any other app that supports this). To use Sonar with Cursor, you can follow the following steps.

Step 1: Navigate to your Cursor settings:

Cursor Settings

Step 2: Navigate to the MCP directory

And click on Add new global MCP server

Add Server

Step 3: Insert the MCP Server Configuration from above

This is the same configuration you would use for any other application that supports MCP.

You should then see the application being part of your available tools like this:

Cursor MCP

License

This MCP server is licensed under the MIT License. This means you are free to use, modify, and distribute the software, subject to the terms and conditions of the MIT License. For more details, please see the LICENSE file in the project repository.

README copy captured when this server was indexed; it may lag the repository. The original is authoritative.

Questions

About Server Perplexity

How do I install Server Perplexity?

Run claude mcp add server-perplexity -- npx -y mcp-server-perplexity, then add the server to your MCP client's configuration.

Is Server Perplexity safe to use with an AI agent?

Its trust score is 37 out of 100 (low). It passes 1 of the 1 static security checks run so far. It has no ConduID identity yet, so agent calls to it are not receipted.

Is Server Perplexity still maintained?

Conduid hasn't recorded a commit date for this repository yet. Check the repository directly for recent activity.