Back to Home
perplexityai icon

modelcontextprotocol

Verified Safe

by perplexityai

Overview

Provides AI assistants with real-time web search, reasoning, and research capabilities through Perplexity's Sonar models and Search API.

Installation

Run Command
npx -y @perplexity-ai/mcp-server

Environment Variables

  • PERPLEXITY_API_KEY
  • PERPLEXITY_TIMEOUT_MS
  • PERPLEXITY_LOG_LEVEL
  • PERPLEXITY_PROXY
  • HTTPS_PROXY
  • HTTP_PROXY
  • PORT
  • BIND_ADDRESS
  • ALLOWED_ORIGINS

Security Notes

The server correctly requires a PERPLEXITY_API_KEY environment variable, avoiding hardcoded secrets. It employs Zod for robust input and output validation, enhancing resilience against malformed data. Network requests have configurable timeouts. However, when run in HTTP mode, the default 'ALLOWED_ORIGINS' for CORS is set to '*' (all origins), which is overly permissive and insecure for production deployments. Users must explicitly configure 'ALLOWED_ORIGINS' to restrict access. Proxy configuration is well-supported via environment variables, adding flexibility for corporate networks.

Similar Servers

Stats

Interest Score100
Security Score7
Cost ClassMedium
Avg Tokens500
Stars1880
Forks268
Last Update2026-01-13

Tags

AIPerplexityMCPWeb SearchReasoning