MCP Perplexity Server MCP Server

A MCP Perplexity API server written in Typescript with stdio and SSE transport support.

Local serverstdio

What is the MCP Perplexity Server MCP Server?

A MCP Perplexity API server written in Typescript with stdio and SSE transport support.

What it actually does

This repository contains the code for the Model Context Protocol (MCP) Perplexity Server, which is a server that provides an API to ask a question to a model behind the Perplexity API.

Configuration

  • Nodejs * pnpm * Docker Important: Copy the .env.sample to .env and set your Perplexity API key.

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Maintainer setup documentation.

Configuration

  • Nodejs * pnpm * Docker Important: Copy the .env.sample to .env and set your Perplexity API key.
VariableDescriptionRequired
MCP_TRANSPORTConfiguration value read at startup.Optional
MCP_PERPLEXITY_API_KEYCredential the server authenticates with.Yes
ENTER_YOUR_PERPLEXITY_API_KEYCredential the server authenticates with.Yes
MCP_SSE_AUTH_HEADER_KEYCredential the server authenticates with.Yes

Example prompts to try

  • “Use MCP Perplexity Server to MCP PERPLEXITY API KEY.”
  • “Use MCP Perplexity Server to MCP TRANSPORT.”
  • “Use MCP Perplexity Server to MCP PERPLEXITY DEFAULT MODEL.”

Frequently asked questions

Yes, the `MCP_PERPLEXITY_API_KEY` environment variable is required and must contain your Perplexity API key.