Perplexity MCP Server
Alcova-AI/perplexity-mcp · 27 stars · Go · MIT
MCP server An MCP server for the Perplexity for use with Claude Code and Claude Desktop, giving you enhanced search and reasoning capabilties.
Install
The repo has no one-line install. Follow its README.
Files
Perplexity MCP Server
A Model Context Protocol (MCP) server for the Perplexity API written in Go. This server enables AI assistants like Claude (Code and Desktop) and Cursor to seamlessly access Perplexity's powerful search and reasoning capabilities directly from their interfaces.
Description
The Perplexity MCP Server acts as a bridge between AI assistants and the Perplexity API, allowing them to:
- Search the web and retrieve up-to-date information using Perplexity's Sonar Pro model via the
perplexity_asktool - Perform complex reasoning tasks using Perplexity's Sonar Reasoning Pro model via the
perplexity_reasontool
This integration lets AI assistants like Claude access real-time information and specialized reasoning capabilities without leaving their interface, creating a seamless experience for users.
Key Benefits
- Access to real-time information: Get current data, news, and information from the web
- Enhanced reasoning capabilities: Leverage specialized models for complex problem-solving tasks
- Seamless integration: Works natively with Claude Code, Claude Desktop, and Cursor
- Simple installation: Quick setup with Homebrew, Go, or pre-built binaries
- Customizable: Configure which Perplexity models to use for different tasks
Installation
Using Homebrew (macOS and Linux)
brew tap alcova-ai/tap brew install perplexity-mcp
From Source
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 .
From Binary Releases (Other platforms)
Download pre-built binaries from the releases page.
Usage
This server supports only the stdio protocol for MCP communication.
Setup with Claude Code
Adding 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"}}'
That's it! You can now use Perplexity in Claude Code.
Setup with Claude Desktop
Adding to Claude Desktop:
- Exit the Claude Desktop MCP config:
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
- Add the Perplexity MCP server:
{
"mcpServers": {
+ "perplexity-mcp": {
+ "command": "perplexity-mcp",
+ "args": [
+ "--model",
+ "sonar-pro",
+ "--reasoning-model",
+ "sonar-reasoning-pro"
+ ],
+ "env": {
+ "PERPLEXITY_API_KEY": "pplx-YOUR-API-KEY-HERE"
+ }
+ }
}
}
Command Line Options
--model, -m: Specify the Perplexity model to use for search (default: "sonar-pro")- Can also be set with the
PERPLEXITY_MODELenvironment variable
- Can also be set with the
--reasoning-model, -r: Specify the Perplexity model to use for reasoning (default: "sonar-reasoning-pro")- Can also be set with the
PERPLEXITY_REASONING_MODELenvironment variable
- Can also be set with the
Example:
perplexity-mcp --model sonar-pro --reasoning-model sonar-reasoning-pro
Direct Execution
If you want to run the server directly (not recommended for most users):
-
Set your Perplexity API key as an environment variable:
export PERPLEXITY_API_KEY=your-api-key-here
-
Run the server:
perplexity-mcp
License
MIT
Facts
- Kind
- MCP server
- Group
- Uncategorized
- Stars
- 27
- License
- MIT
- Language
- Go
- Last push
- 2025-03-20
- Forks
- 6
- Topics
- ai, claude, llm, mcp-server, perplexity-api
- 1REAio.github.morluto/reaReverse engineer anything from your terminal or agent with one CLI and MCP server.125.3k
- 2com.browser-use/browser-usecom.browser-use/browser-useControl a real Chrome browser to complete any task: fill forms, extract data, book flights.117.7k
- 3World Monitorapp.worldmonitor/mcpLive markets, conflicts, country risk, chokepoints, energy, and China decision signals. 93 tools.88.3k
- 4Scrapling MCP Serverd4vinci/scrapling🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scraplingdev86.9k
- 5Everythingmodelcontextprotocol/serversThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.85.8k
- 6Fetchmodelcontextprotocol/serversA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.85.8k