The Perplexity Ask MCP Server is a Model Context Protocol (MCP) server designed to integrate the Perplexity API with AI assistants like Claude (Code and Desktop) and Cursor. Written in Go, this server enables seamless access to Perplexity's powerful search and reasoning capabilities directly within these AI interfaces.
perplexity_ask
tool.perplexity_reason
tool.brew tap alcova-ai/tap
brew install perplexity-mcp
Clone the repository and build manually:
git clone https://github.com/Alcova-AI/perplexity-mcp.git
cd perplexity-mcp
go build -o perplexity-mcp-server .
Download pre-built binaries from the releases page.
Add the Perplexity MCP server to Claude Code:
claude mcp add-json --scope user perplexity-mcp '{"type":"stdio","command":"perplexity-mcp","env":{"PERPLEXITY_API_KEY":"pplx-YOUR-API-KEY-HERE"}}'
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
{
"mcpServers": {
+ "perplexity-mcp": {
+ "command": "perplexity-mcp",
+ "args": [
+ "--model",
+ "sonar-pro",
+ "--reasoning-model",
+ "sonar-reasoning-pro"
+ ],
+ "env": {
+ "PERPLEXITY_API_KEY": "pplx-YOUR-API-KEY-HERE"
+ }
+ }
}
}
--model, -m
: Specify the Perplexity model to use for search (default: "sonar-pro").--reasoning-model, -r
: Specify the Perplexity model to use for reasoning (default: "sonar-reasoning-pro").Example:
perplexity-mcp --model sonar-pro --reasoning-model sonar-reasoning-pro
export PERPLEXITY_API_KEY=your-api-key-here
perplexity-mcp
This project is licensed under the MIT License.
The Perplexity Ask MCP Server enhances AI assistants like Claude with advanced search and reasoning capabilities by integrating the Perplexity API. It is developed by Alcova-AI.