DP

dainfernalcoder/perplexity-mcp

Developer tools

Эта страница переведена автоматически. Технические детали смотрите в оригинале. Открыть оригинал

297 stars 38 forks Качество 66 Тренд 19MIT

dainfernalcoder/perplexity-mcp — это кандидат на MCP-сервер, импортированный из https://github.com/dainfernalcoder/perplexity-mcp.

Обзор

dainfernalcoder/perplexity-mcp — это кандидат на MCP-сервер, импортированный из https://github.com/dainfernalcoder/perplexity-mcp.

Обзор (машинный перевод)

Интеллектуальный научный ассистент, работающий на специализированных AI-моделях Perplexity. Оснащен автоматическим обнаружением сложности запросов для направления запросов к наиболее подходящей модели для достижения оптимальных результатов. В отличие от официального сервера, он имеет возможности поиска ДЛЯ КАЖДОЙ ЗАДАЧИ, по сути,

Это также заставляет агента, использующего MCP, быть конкретным

Инструменты

1. Поиск (Sonar Pro)

Быстрый поиск простых запросов и базовой информации. Лучше всего подходит для прямых вопросов, требующих кратких и прямых ответов.

2. Reason (Sonar Reasoning Pro)

Выполняет сложные, многошаговые задачи, требующие детального анализа. Идеально подходит для объяснений, сравнений и решения задач.

3. Глубокие исследования (Sonar Deep Research)

Проводит всесторонние исследования и формирует подробные отчёты. Идеально подходит для глубокого анализа сложных тем.

Подготовка

  1. Предварительные требования
  1. Настройте настройки MCP

Добавьте в файл настроек MCP (местоположение зависит от платформы):

Или используйте NPX, чтобы не устанавливать его локально (рекомендуется для maco):

Эта страница переведена автоматически. Технические детали смотрите в оригинале.

README

Показан фрагмент оригинального README. Открыть оригинал.

Perplexity MCP Server

An intelligent research assistant powered by Perplexity’s specialized AI models. Features automatic query complexity detection to route requests to the most appropriate model for optimal results. Unlike the Official server, it has search capabilities FOR EVERY TASK, essentially

It also forces the agent using the MCP to be specific

Tools

1. Search (Sonar Pro)

Quick search for simple queries and basic information lookup. Best for straightforward questions that need concise, direct answers.

const result = await use_mcp_tool({
  server_name: "perplexity",
  tool_name: "search",
  arguments: {
    query: "What is the capital of France?",
    force_model: false // Optional: force using this model even if query seems complex
  }
});

2. Reason (Sonar Reasoning Pro)

Handles complex, multi-step tasks requiring detailed analysis. Perfect for explanations, comparisons, and problem-solving.

const result = await use_mcp_tool({
  server_name: "perplexity",
  tool_name: "reason",
  arguments: {
    query: "Compare and contrast REST and GraphQL APIs, explaining their pros and cons",
    force_model: false // Optional: force using this model even if query seems simple
  }
});

3. Deep Research (Sonar Deep Research)

Conducts comprehensive research and generates detailed reports. Ideal for in-depth analysis of complex topics.

const result = await use_mcp_tool({
  server_name: "perplexity",
  tool_name: "deep_research",
  arguments: {
    query: "The impact of quantum computing on cryptography",
    focus_areas: [
      "Post-quantum cryptographic algorithms",
      "Timeline for quantum threats",
      "Practical mitigation strategies"
    ],
    force_model: false // Optional: force using this model even if query seems simple
  }
});

Setup

  1. Prerequisites

  2. Configure MCP Settings

Add to your MCP settings file (location varies by platform):

{
  "mcpServers": {
    "perplexity": {
      "command": "node",
      "args": ["/path/to/perplexity-server/build/index.js"],
      "env": {
        "PERPLEXITY_API_KEY": "YOUR_API_KEY_HERE"
      },
      "disabled": false,
      "autoApprove": []
    }
  }
}

Or use NPX to not have to install it locally (recommended for macos):

{
  "mcpServers": {
    "perplexity": {
      "command": "npx",
      "args": [
        "-y",
        "perplexity-mcp"
      ],
      "env": {
        "PERPLEXITY_API_KEY": "your_api_key"
      }
    }
  }
}

In case the MCP Client is not able to parse the Perplexity API Key from the environment using methods like "${env:PERPLEXITY_API_KEY}" common in modern AI Coding Agents (e.g. Kiro), there are two fallback solutions:

Открыть полный README на GitHub

Установка

npx -y perplexity-mcp
Новичок в MCP? Начните с руководства на mcpskill.org →

Конфигурация

{ "mcpServers": { "perplexity": { "command": "node", "args": ["/path/to/perplexity-server/build/index.js"], "env": { "PERPLEXITY_API_KEY": "YOUR_API_KEY_HERE" }, "disabled": false, "autoApprove": [] } } }