MCP Perplexity Server logo

MCP Perplexity Server

by lostmind008

This is a Model Context Protocol (MCP) server implementation for the Perplexity API. It allows you to easily integrate Perplexity's Ask and Search functionalities into MCP-compatible clients.

View on GitHub

Last updated: N/A

MCP Perplexity Server

A Model Context Protocol (MCP) server implementation for the Perplexity API.

Features

  • Supports both Ask and Search modes
  • Simple configuration via environment variables
  • Direct integration with MCP clients

Installation

You can use this server directly from GitHub in your MCP configuration:

{
  "perplexity-ask": {
    "command": "npx",
    "args": [
      "-y",
      "github:lostmind008/mcp-perplexity-server"
    ],
    "env": {
      "PERPLEXITY_API_KEY": "your-api-key",
      "MCP_SERVER_PORT": "3000",
      "MCP_MODE": "ask"
    }
  },
  "perplexity-search": {
    "command": "npx",
    "args": [
      "-y",
      "github:lostmind008/mcp-perplexity-server"
    ],
    "env": {
      "PERPLEXITY_API_KEY": "your-api-key",
      "MCP_SERVER_PORT": "3001",
      "MCP_MODE": "search"
    }
  }
}

Environment Variables

  • PERPLEXITY_API_KEY: Your Perplexity API key (required)
  • MCP_SERVER_PORT: Port for the MCP server (default: 3000)
  • MCP_MODE: Server mode - 'ask' or 'search' (default: 'ask')

Usage

Once configured, you can use this server with any MCP client by specifying the appropriate server name:

perplexity-ask "What is the capital of France?"
perplexity-search "Best programming languages 2025"

License

MIT