Skip to main content
Glama
khronos224

Perplexity API Platform MCP Server

by khronos224

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
PORTNoHTTP server port for self-hosted HTTP mode. Defaults to 8080.8080
HTTP_PROXYNoStandard HTTP proxy environment variable. Used if PERPLEXITY_PROXY and HTTPS_PROXY are not set.
HTTPS_PROXYNoStandard HTTPS proxy environment variable. Used if PERPLEXITY_PROXY is not set.
BIND_ADDRESSNoNetwork interface to bind to for HTTP mode. Defaults to 127.0.0.1. Set to 0.0.0.0 to expose on all interfaces.127.0.0.1
ALLOWED_HOSTSNoComma-separated list of additional Host header values to accept in HTTP mode. Loopback hosts on PORT are always allowed.
ALLOWED_ORIGINSNoComma-separated list of allowed CORS origins for HTTP mode. Defaults to empty (no cross-origin browser requests).
PERPLEXITY_PROXYNoProxy URL for outbound requests, e.g. https://user:pass@proxy-host:8080. Overrides HTTPS_PROXY and HTTP_PROXY.
PERPLEXITY_API_KEYYesYour Perplexity API key. This is required.
PERPLEXITY_BASE_URLNoCustom base URL for API requests. Defaults to https://api.perplexity.aihttps://api.perplexity.ai
PERPLEXITY_LOG_LEVELNoLog level for the server. One of DEBUG, INFO, WARN, ERROR. Defaults to ERROR.ERROR
PERPLEXITY_TIMEOUT_MSNoTimeout in milliseconds for API requests. Defaults to 5 minutes.

Instructions

Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.

This server publishes no instructions, or was last inspected before Glama recorded them.

Capabilities

Features and capabilities supported by this server

Protocol revision2025-11-25

CapabilityDetails
tools
{
  "listChanged": true
}

Tools

Functions exposed to the LLM to take actions

NameDescription
perplexity_askA

Answer a question using web-grounded AI (Perplexity Agent API, fast preset). Best for: quick factual questions, summaries, explanations, and general Q&A. Returns a text response with numbered citations. Fastest and cheapest option. Supports filtering by recency (hour/day/week/month/year), domain restrictions, and search context size. For in-depth multi-source research, use perplexity_research instead. For step-by-step reasoning and analysis, use perplexity_reason instead.

perplexity_researchA

Conduct deep, multi-source research on a topic (Perplexity Agent API, high preset). Best for: literature reviews, comprehensive overviews, investigative queries needing many sources. Returns a detailed response with numbered citations. Significantly slower than other tools (can take minutes). For quick factual questions, use perplexity_ask instead. For logical analysis and reasoning, use perplexity_reason instead.

perplexity_reasonA

Analyze a question using step-by-step reasoning with web grounding (Perplexity Agent API, medium preset). Best for: math, logic, comparisons, complex arguments, and tasks requiring chain-of-thought. Returns a reasoned response with numbered citations. Supports filtering by recency (hour/day/week/month/year), domain restrictions, and search context size. For quick factual questions, use perplexity_ask instead. For comprehensive multi-source research, use perplexity_research instead.

perplexity_searchA

Search the web and return a ranked list of results with titles, URLs, snippets, and dates. Best for: finding specific URLs, checking recent news, verifying facts, discovering sources. Returns formatted results (title, URL, snippet, date) with no AI synthesis. Supports recency filters and domain restrictions. For AI-generated answers with citations, use perplexity_ask instead.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources