Skip to main content
Glama
jaacob

Perplexity MCP Server

by jaacob

Perplexity MCP 服务器

铁匠徽章

使用 Perplexity 的 API 提供网络搜索功能的 MCP 服务器。

先决条件

Related MCP server: Perplexity Web Search MCP Server

安装

通过 Smithery 安装

要通过Smithery自动为 Claude Desktop 安装 Perplexity Server:

npx -y @smithery/cli install @jaacob/perplexity-mcp --client claude

手动安装

  1. 克隆此存储库:

    git clone https://github.com/jaacob/perplexity-mcp
    cd perplexity-mcp
  2. 安装依赖项:

    npm install
  3. 构建服务器:

    npm run build

配置

  1. 从https://www.perplexity.ai/settings/api获取您的 Perplexity API 密钥

  2. 将服务器添加到 Claude 的配置文件中,地址为~/Library/Application Support/Claude/claude_desktop_config.json :

{
  "mcpServers": {
    "perplexity-server": {
      "command": "node",
      "args": [
        "/absolute/path/to/perplexity-mcp/build/index.js"
      ],
      "env": {
        "PERPLEXITY_API_KEY": "your-api-key-here",
        "PERPLEXITY_MODEL": "sonar"
      }
    }
  }
}

将/absolute/path/to替换为您克隆存储库的实际路径。

可用型号

您可以通过设置PERPLEXITY_MODEL环境变量来指定要使用的模型。可用选项:

  • sonar-reasoning-pro - 推理能力最强的模型

  • sonar-reasoning - 增强推理能力

  • sonar-pro响应时间更快

  • sonar默认模型(如果未指定模型则使用)

如需了解最新的模型定价和供货情况,请访问: https://docs.perplexity.ai/guides/pricing

用法

配置服务器并重启 Claude 后,你就可以简单地让 Claude 搜索信息了。例如:

  • “关于SpaceX有什么最新消息吗?”

  • “搜索芝加哥最好的餐厅”

  • “查找有关爵士乐历史的信息”

Claude 会自动使用 Perplexity 搜索工具来查找并返回相关信息。

如果出于某种原因它决定不这样做,您可以通过在提示前加上“搜索网络”来强制执行此问题。

发展

修改服务器:

  1. 编辑src/index.ts

  2. 使用npm run build重建

  3. 重新启动 Claude 以加载更改

执照

麻省理工学院

Available Tools

1 tool

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 1 tool updatev1.0.0
    • First observedsearch

TDQS

B3.1/5.0

Scored across 1 tool

Disambiguation5/5

With only one tool, there is no possibility of confusion or overlap between tools, making disambiguation perfect. The tool's purpose is clearly defined as web search using Perplexity AI, leaving no room for misselection.

Naming Consistency5/5

A single tool named 'search' follows a consistent and straightforward verb-based naming pattern. There are no other tools to compare against, so no inconsistency can exist in the naming scheme.

Tool Count2/5

One tool is too few for a server named 'Perplexity MCP Server', which implies broader capabilities beyond just search. A single tool feels thin and under-scoped for what might be expected from a Perplexity AI integration, such as additional operations like summarization or follow-up queries.

Completeness2/5

The tool surface is severely incomplete for a web search domain; it only offers a basic search function without any complementary tools for refining results, getting summaries, or handling related queries. This creates significant gaps that could lead to agent failures in complex tasks.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    maintenance
    Integrates the Sonar API to provide Claude with real-time web-wide research capabilities. Enables conversational web searches through Perplexity's AI-powered search engine for up-to-date information retrieval.
    1,406 npm
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    Exposes Perplexity AI's search capabilities to Claude, enabling real-time web search and information retrieval within the assistant. The project is currently in active development with plans to support Perplexity Spaces and multi-source data synthesis.
    Apache 2.0