The Perplexity API platform MCP server is the official Perplexity implementation of an MCP (Model Context Protocol) server, designed to provide AI assistants with real-time web search, reasoning, and research capabilities. It offers multiple tools through the Agent API, Search API, and Context API and can be integrated into MCP-compatible clients.
Main capabilities:
- perplexity_search: Performs direct web search using the Perplexity Search API, returning ranked search results with metadata, and supports recency filtering, domain restrictions, and fast search mode.
- perplexity_context: Fetches web page content by URL using the Perplexity Context API, returning Markdown by default, and can also return HTML, links, highlighted passages relevant to the query, and a yes/no rating for a question.
- perplexity_ask: General conversational AI based on the Agent API fast preset, with real-time web search, suitable for quick Q&A and everyday search.
- perplexity_research: Deep research based on the Agent API advanced preset, suitable for comprehensive analysis and detailed reports; runs may take several minutes, and the server streams and reports progress.
- perplexity_reason: Advanced reasoning and problem solving based on the Agent API medium preset, suitable for complex analysis tasks.
Usage: Users can choose a remote MCP server (hosted by Perplexity, requiring no installation or updates, connected via Streamable HTTP) or a local MCP server. Local deployment requires obtaining a Perplexity API key from the API Portal and configuring the environment variable PERPLEXITY_API_KEY. Optional configuration includes timeout (PERPLEXITY_TIMEOUT_MS, default 5 minutes), custom base URL (PERPLEXITY_BASE_URL, default https://api.perplexity.ai)、日志级别(PERPLEXITY_LOG_LEVEL,默认 ERROR). The repository is also packaged as an Agent Plugin, which clients supporting standard plugins can install directly, but the environment variable PERPLEXITY_API_KEY must be set through the client settings.
For enterprise networks, proxies can be configured through the PERPLEXITY_PROXY or standard HTTPS_PROXY/HTTP_PROXY environment variables. Self-hosted HTTP mode is also supported, and the server can be accessed via http://localhost:8080/mcp .
Use cases: Suitable for scenarios that need to enhance AI assistants with real-time search, deep research, and reasoning capabilities, such as integration into development tools like Cursor, VS Code, and Claude Code, or for building AI applications that require web information retrieval.
Limitations: Usage requires a Perplexity API key; some tools (such as perplexity_research) take a long time to run and may require adjusting timeout settings; some strict MCP clients may fail due to npx outputting installation messages, so using npx -yq to suppress output is recommended. Legacy parameters (such as strip_thinking and reasoning_effort) are no longer supported and will be ignored if sent.