mcpField
M
MCP Perplexity Server

MCP Perplexity Server

Local
github.com/lostmind008AI & Agents0Updated 82w ago

About MCP Perplexity Server

MCP Perplexity Server exposes Perplexity API Ask and Search modes to MCP clients. It is configured with environment variables and requires a Perplexity API key.

Key features

  1. 01Ask and Search modes
  2. 02Environment-variable configuration
  3. 03Perplexity API access

Use cases

  1. 01Ask Perplexity questions from an MCP client
  2. 02Search with Perplexity through an MCP client

MCP support

As an MCP server, it makes Perplexity API Ask and Search modes available to MCP clients.

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"perplexity-server-lostmind008": {
"command": "npx",
"args": [
"-y",
"github:lostmind008/mcp-perplexity-server"
],
"env": {
"PERPLEXITY_API_KEY": "<PERPLEXITY_API_KEY>",
"MCP_SERVER_PORT": "<MCP_SERVER_PORT>",
"MCP_MODE": "<MCP_MODE>"
}
}
}
}
Run commandnpx -y github:lostmind008/mcp-perplexity-server
Environment variables to set
PERPLEXITY_API_KEYSecret
MCP_SERVER_PORT
MCP_MODE

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npmgithub:lostmind008/mcp-perplexity-server

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

From the project README

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

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.