Request chat completion with citations from Perplexity
Perplexity MCP Server provides a seamless integration with Perplexity's powerful AI search API, allowing you to perform web searches with AI-generated answers and citations directly from your MCP-compatible client. This server bridges the gap between your AI assistant and Perplexity's knowledge retrieval capabilities, enabling more accurate and up-to-date responses with proper attribution. Note that there are currently some limitations with long-running operations in certain clients like Claude Desktop, which may timeout if Perplexity processing takes too long. Future updates will address these limitations as client support for long-running operations improves.
The Perplexity MCP Server allows you to harness Perplexity's AI search capabilities directly from your MCP-compatible client. This integration enables your AI assistant to perform web searches and provide answers with proper citations, enhancing the accuracy and reliability of responses.
Before installing the Perplexity MCP Server, you'll need:
The simplest way to install the Perplexity MCP Server is using pip or uv:
pip install mcp-server-perplexity
# or
uv install mcp-server-perplexity
To configure the Perplexity MCP Server in Claude Desktop:
Locate your Claude Desktop configuration file:
~/Library/Application\ Support/Claude/claude_desktop_config.json
%APPDATA%/Claude/claude_desktop_config.json
Add the Perplexity MCP Server configuration to the mcpServers
section:
"mcpServers": {
"Perplexity": {
"command": "uvx",
"args": [
"mcp-server-perplexity"
],
"env": {
"PERPLEXITY_API_KEY": "your-perplexity-api-key"
}
}
}
Replace your-perplexity-api-key
with your actual Perplexity API key.
Once installed and configured, you can use the Perplexity MCP Server by asking your AI assistant to search for information using Perplexity. The assistant will use the ask_perplexity
tool to query Perplexity's API and return results with citations.
Example prompt: "Can you search Perplexity for the latest information about quantum computing advancements?"
If you encounter issues with the Perplexity MCP Server:
For more detailed information or to report issues, visit the GitHub repository.