JP

jsonallen/perplexity-mcp

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

310 stars 46 forks 品質 71 トレンド 19MIT

Perplexity AIのAPIを用いてウェブ検索機能を提供するモデルコンテキストプロトコル(MCP)サーバーです。

概要

Perplexity AIのAPIを使ったウェブ検索機能を提供するモデルコンテキストプロトコル(MCP)サーバー。Anthropic Claudeデスクトップクライアントと連携。 「過去1週間のAnthropicの最新情報をウェブで検索しよう」といったプロンプトを使うことができます。 - perplexity_search_web: Perplexity AIを使ったウェブ検索 - 検索クエリに必須の「query」引数 - 期間別に結果を絞り込むためのオプション「最近」引数: - 'day': 直近24時間 - 'week': 直近7日間 - 'month': 直近30日(デフォルト) - 'year': 直近365日 - PerplexityのAPIを使用してウェブ検索を行う - perplexity_search_web: Perplexity AIを使ったウェブ検索 - 「query」を必須の文字列引数として受け取る - 結果(日/週/月/年)をフィルタリングするためのオプションの「最近」パラメータ - PerplexityのAPIから検索結果を返す Smithery経由でClaude Desktop用のPerplexity MCPを自動的にインストールするには: 以下の環境変数はあなたのclaude_desktop_config.jsonで必要です。

概要(AI 翻訳)

Perplexity AIのAPIを使ったウェブ検索機能を提供するモデルコンテキストプロトコル(MCP)サーバー。Anthropic Claudeデスクトップクライアントと連携。

例

「過去1週間のAnthropicの最新情報をウェブで検索しよう」といったプロンプトを使うことができます。

グラマスコア

構成要素

プロンプト

サーバーは単一のプロンプトを提供します:

  • perplexity_search_web:Perplexity AIを使ったウェブ検索
  • 検索クエリに必要な「query」引数
  • 時間帯で結果をフィルタリングするためのオプションの「最近性」の議論:
  • 「日」:最後の24時間
  • 「週」:最後の7日間
  • 「月」:直近30日間(デフォルト)
  • 「年」:過去365日間
  • PerplexityのAPIを使ってウェブ検索を行う

道具

サーバーは1つのツールを実装しています:

  • perplexity_search_web:Perplexity AIを使ったウェブ検索
  • 「query」を必須の文字列引数として取ります
  • 結果(日/週/月/年)をフィルタリングするためのオプションの「最近」パラメータ
  • PerplexityのAPIから検索結果を返す

設置

Smithery経由のインストール

Smithery経由でClaude Desktop用のPerplexity MCPを自動的にインストールするには:

UVが必要(Fast Pythonパッケージとプロジェクトマネージャー)

UVが設置されていなければ。

または

環境変数

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

perplexity-mcp MCP server

A Model Context Protocol (MCP) server that provides web search functionality using Perplexity AI’s API. Works with the Anthropic Claude desktop client.

Example

Let’s you use prompts like, “Search the web to find out what’s new at Anthropic in the past week.”

Glama Scores

Components

Prompts

The server provides a single prompt:

  • perplexity_search_web: Search the web using Perplexity AI
    • Required “query” argument for the search query
    • Optional “recency” argument to filter results by time period:
      • ‘day’: last 24 hours
      • ‘week’: last 7 days
      • ‘month’: last 30 days (default)
      • ‘year’: last 365 days
    • Uses Perplexity’s API to perform web searches

Tools

The server implements one tool:

  • perplexity_search_web: Search the web using Perplexity AI
    • Takes “query” as a required string argument
    • Optional “recency” parameter to filter results (day/week/month/year)
    • Returns search results from Perplexity’s API

Installation

Installing via Smithery

To install Perplexity MCP for Claude Desktop automatically via Smithery:

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

Requires UV (Fast Python package and project manager)

If uv isn’t installed.

# Using Homebrew on macOS
brew install uv

or

# On macOS and Linux.
curl -LsSf https://astral.sh/uv/install.sh | sh

# On Windows.
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Environment Variables

The following environment variable is required in your claude_desktop_config.json. You can obtain an API key from Perplexity

  • PERPLEXITY_API_KEY: Your Perplexity AI API key

Optional environment variables:

  • PERPLEXITY_MODEL: The Perplexity model to use (defaults to “sonar” if not specified)

    Available models:

    • sonar-deep-research: 128k context - Enhanced research capabilities
    • sonar-reasoning-pro: 128k context - Advanced reasoning with professional focus
    • sonar-reasoning: 128k context - Enhanced reasoning capabilities
    • sonar-pro: 200k context - Professional grade model
    • sonar: 128k context - Default model
    • r1-1776: 128k context - Alternative architecture

And updated list of models is avaiable (here)[https://docs.perplexity.ai/guides/model-cards]

Cursor & Claude Desktop Installation

Add this tool as a mcp server by editing the Cursor/Claude config file.

  "perplexity-mcp": {
    "env": {
GitHub で README 全文を見る

インストール

uvx perplexity-mcp
MCP 初心者?mcpskill.org のガイドから始めましょう →