Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| PORT | No | HTTP server port (for HTTP server deployment) | 8080 |
| HTTP_PROXY | No | Standard HTTP proxy environment variable (alternative to PERPLEXITY_PROXY) | |
| HTTPS_PROXY | No | Standard HTTPS proxy environment variable (alternative to PERPLEXITY_PROXY) | |
| BIND_ADDRESS | No | Network interface to bind to (for HTTP server deployment) | 0.0.0.0 |
| ALLOWED_ORIGINS | No | CORS origins, comma-separated (for HTTP server deployment) | * |
| PERPLEXITY_PROXY | No | Proxy URL for corporate networks (e.g., https://your-proxy-host:8080 or https://username:password@your-proxy-host:8080) | |
| PERPLEXITY_API_KEY | Yes | Your Perplexity API key from the API Portal | |
| PERPLEXITY_LOG_LEVEL | No | Log level: DEBUG, INFO, WARN, or ERROR | ERROR |
| PERPLEXITY_TIMEOUT_MS | No | Timeout in milliseconds (default: 5 minutes) | 300000 |
Capabilities
Features and capabilities supported by this server
| Capability | Details |
|---|---|
| tools | {
"listChanged": true
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| perplexity_ask | Engages in a conversation using the Sonar API. Accepts an array of messages (each with a role and content) and returns a chat completion response from the Perplexity model. |
| perplexity_research | Performs deep research using the Perplexity API. Accepts an array of messages (each with a role and content) and returns a comprehensive research response with citations. |
| perplexity_reason | Performs reasoning tasks using the Perplexity API. Accepts an array of messages (each with a role and content) and returns a well-reasoned response using the sonar-reasoning-pro model. |
| perplexity_search | Performs web search using the Perplexity Search API. Returns ranked search results with titles, URLs, snippets, and metadata. Perfect for finding up-to-date facts, news, or specific information. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |