Cover image
Try Now
2025-03-20

用于与Claude Code和Claude Desktop一起使用的MCP服务器,可为您提供增强的搜索和推理可结合性。

3 years

Works with Finder

1

Github Watches

0

Github Forks

5

Github Stars

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:

  1. Search the web and retrieve up-to-date information using Perplexity's Sonar Pro model via the perplexity_ask tool
  2. Perform complex reasoning tasks using Perplexity's Sonar Reasoning Pro model via the perplexity_reason tool

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:

  1. Exit the Claude Desktop MCP config:
code ~/Library/Application\ Support/Claude/claude_desktop_config.json
  1. 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_MODEL environment variable
  • --reasoning-model, -r: Specify the Perplexity model to use for reasoning (default: "sonar-reasoning-pro")
    • Can also be set with the PERPLEXITY_REASONING_MODEL environment variable

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):

  1. Set your Perplexity API key as an environment variable:

    export PERPLEXITY_API_KEY=your-api-key-here
    
  2. Run the server:

    perplexity-mcp
    

License

MIT

相关推荐

  • NiKole Maxwell
  • I craft unique cereal names, stories, and ridiculously cute Cereal Baby images.

  • Joshua Armstrong
  • Confidential guide on numerology and astrology, based of GG33 Public information

  • https://suefel.com
  • Latest advice and best practices for custom GPT development.

  • Callycode Limited
  • A geek-themed horoscope generator blending Bitcoin prices, tech jargon, and astrological whimsy.

  • Alexandru Strujac
  • Efficient thumbnail creator for YouTube videos

  • Emmet Halm
  • Converts Figma frames into front-end code for various mobile frameworks.

  • Beniyam Berhanu
  • Therapist adept at identifying core issues and offering practical advice with images.

  • Khalid kalib
  • Write professional emails

  • Elijah Ng Shi Yi
  • Advanced software engineer GPT that excels through nailing the basics.

  • INFOLAB OPERATIONS 2
  • A medical specialist offering assistance grounded in clinical guidelines. Disclaimer: This is intended for research and is NOT safe for clinical use!

  • apappascs
  • 发现市场上最全面,最新的MCP服务器集合。该存储库充当集中式枢纽,提供了广泛的开源和专有MCP服务器目录,并提供功能,文档链接和贡献者。

  • ShrimpingIt
  • MCP系列GPIO Expander的基于Micropython I2C的操作,源自ADAFRUIT_MCP230XX

  • huahuayu
  • 统一的API网关,用于将多个Etherscan样区块链Explorer API与对AI助手的模型上下文协议(MCP)支持。

  • deemkeen
  • 用电源组合控制您的MBOT2:MQTT+MCP+LLM

  • zhaoyunxing92
  • MCP(消息连接器协议)服务

  • ravitemer
  • 一个功能强大的Neovim插件,用于管理MCP(模型上下文协议)服务器

  • jae-jae
  • MCP服务器使用剧作《无头浏览器》获取网页内容。

    Reviews

    2 (1)
    Avatar
    user_wFaQi2zo
    2025-04-16

    Perplexity-mcp by Alcova-AI is a game-changer for anyone needing deep insights into complex data sets. With its comprehensive features and user-friendly interface, it's a must-have tool for researchers and data scientists. Highly recommended! Check it out on GitHub for more details.