Skip to main content
Glama
mnthe

perplexity-mcp-server

by mnthe

Server Configuration

Describes the environment variables required to run the server.

NameRequiredDescriptionDefault
LOG_DIRNoDirectory for file-based logging (only used if LOG_TO_STDERR is false)./logs
MAX_HISTORYNoMaximum number of messages per session20
LOG_TO_STDERRNoLog to stderr (recommended for npx/MCP usage)true
DISABLE_LOGGINGNoDisable all loggingfalse
SESSION_TIMEOUTNoSession timeout in seconds (default 30 minutes)1800
PERPLEXITY_MODELNoModel to use: sonar, sonar-pro, sonar-reasoningsonar
PERPLEXITY_API_KEYYesYour Perplexity API key (required)
ENABLE_CONVERSATIONSNoEnable session management for multi-turn conversationstrue

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
{}

Tools

Functions exposed to the LLM to take actions

NameDescription
queryA

Query Perplexity AI with a prompt. Specialized for web search with citations, sources, and related questions. Supports multi-turn conversations when sessionId is provided. Returns rich metadata (citations, sources, images, related questions).

searchB

Search for information using Perplexity. Returns a list of relevant search results. Follows OpenAI MCP specification for search tools.

fetchA

Fetch the full contents of a search result document by its ID. Follows OpenAI MCP specification for fetch tools.

Prompts

Interactive templates invoked by user choice

NameDescription

No prompts

Resources

Contextual data attached and managed by the client

NameDescription

No resources

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/mnthe/perplexity-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server