Skip to main content
Glama
Perplexity Tool for Claude Desktop

Perplexity Tool for Claude Desktop

Claudeデスクトップ用のPerplexityツール

Perplexity AI の API を Claude Desktop と統合するカスタム MCP ツール。これにより、Claude は Web ベースの調査を実行し、引用付きの回答を提供できるようになります。

前提条件のインストール

  1. Git をインストールします。

    • Macの場合:

      • まずターミナルにこれを貼り付けてHomebrewをインストールします: GXP1

      • 次にGitをインストールします: GXP2

    • Windowsの場合:

      • git-scm.comからGitをダウンロードする

      • インストーラーを実行する

  2. Node.js をインストールします。

    • Macの場合:

      brew install node
    • Windowsの場合:

      • nodejs.orgからダウンロード

      • インストーラーを実行する

  3. 次のコマンドを実行してインストールを確認します。

git --version
node --version

Related MCP server: Perplexity MCP Server

ツールのインストール

  1. リポジトリをクローンする

git clone https://github.com/letsbuildagent/perplexity-tool
cd perplexity-tool
  1. 依存関係をインストールする

npm install
  1. APIキーを設定する

次の 2 つのオプションがあります。

オプション 1 (クイックセットアップ):

  • server.jsを開く

  • 次の行を見つけます:

const PERPLEXITY_API_KEY = "YOUR-API-KEY-HERE";
  • Perplexity APIキーに置き換えてください

オプション 2 (ベストプラクティス):

  • .env ファイルを作成します。

    # On Mac/Linux:
    touch .env
    open .env
    
    # On Windows:
    notepad .env

    または、テキストエディタで.envという名前の新しいファイルを作成するだけです。

  • API キーを .env ファイルに追加します。

    PERPLEXITY_API_KEY=your-api-key-here
  • dotenvをインストールします。

    npm install dotenv
  • server.js を更新します。

    import 'dotenv/config'
    const PERPLEXITY_API_KEY = process.env.PERPLEXITY_API_KEY;
  1. Claudeデスクトップの設定

  • ~/Library/Application Support/Claude/claude_desktop_config.jsonを開きます。

  • 次の構成を追加します。

{
  "mcpServers": {
    "perplexity-tool": {
      "command": "node",
      "args": [
        "/full/path/to/perplexity-tool/server.js"
      ]
    }
  }
}

/full/path/toリポジトリのクローンを作成した実際のパスに置き換えます。

  1. Claudeデスクトップを再起動します

使用法

インストールが完了すると、次のようなコマンドを使用して Claude 経由でツールを使用できるようになります。

  • 「AIの最新動向についてPerplexityに聞いてみよう」

  • 「Perplexity を使って量子コンピューティングの歴史を研究する」

  • 「気候変動に関する情報をPerplexityで検索し、過去1か月に焦点を当てる」

詳細オプション

追加のパラメータを指定できます:

  • temperature : 応答のランダム性を制御します(0-2)

  • max_tokens : レスポンスの長さを制限する

  • search_domain_filter : 検索を特定のドメインに制限します

  • search_recency_filter : 期間(日/週/月/年)でフィルタリングします

トラブルシューティング

  1. Gitが見つかりません:

    • Gitが正しくインストールされていることを確認してください

    • 端末を再起動してみてください

    • Macでは、HomebrewがPATHに入っていることを確認してください。

  2. Node.js エラー:

    • node --versionで Node.js のインストールを確認する

    • Node.jsを再インストールしてみてください

  3. API キーの問題:

    • APIキーを正しくコピーしたことを確認してください

    • .envファイルに余分なスペースがないことを確認してください

    • オプション2を使用する場合は、dotenvがインストールされていることを確認してください。

  4. Claude にツールが表示されない:

    • claude_desktop_config.json のパスを確認してください

    • パスがserver.jsファイルを指していることを確認してください

    • Claudeデスクトップを再起動します

    • コンソールにエラーメッセージがないか確認してください

ライセンス

マサチューセッツ工科大学

セキュリティに関する注意事項

コードを共有したり公開したりする予定がある場合:

  • APIキーをGitにコミットしないでください

  • .env メソッドを使用する (オプション 2)

  • .gitignore ファイルに .env を追加します

Available Tools

1 tool
ask_perplexityC

Ask a question to Perplexity AI

Inputs: question (required), temperature, max_tokens, search_domain_filter, +1 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    C2.9/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of ambiguity or overlap between tools. The single tool 'ask_perplexity' has a clearly distinct purpose that cannot be confused with any other tool in this server.

    Naming Consistency5/5

    The single tool name follows a clear verb_noun pattern ('ask_perplexity'), and with only one tool, there is perfect consistency. No other naming conventions exist to create inconsistency.

    Tool Count2/5

    A single tool is generally too few for most server purposes, as it provides minimal functionality and limits agent capabilities. For a Perplexity AI integration, one tool might suffice for basic queries, but it feels thin and lacks operations like follow-up questions or context management.

    Completeness2/5

    The tool surface is severely incomplete for interacting with Perplexity AI. While 'ask_perplexity' covers basic queries, there are significant gaps such as no support for conversation history, context setting, or handling different query types, which will likely cause agent failures in complex tasks.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      A
      quality
      C
      maintenance
      An MCP server that enables Claude to perform web searches using Perplexity's API with intelligent model selection based on query intent and support for domain and recency filtering.
      6
      4
      MIT
    • F
      license
      A
      quality
      D
      maintenance
      Integrates Perplexity AI's search-enhanced language models with Claude Desktop, providing three tools with different complexity levels for quick fact-checking, technical analysis, and deep research.
      3
      2
      -