Perplexity Tool for Claude Desktop
Claudeデスクトップ用のPerplexityツール
Perplexity AI の API を Claude Desktop と統合するカスタム MCP ツール。これにより、Claude は Web ベースの調査を実行し、引用付きの回答を提供できるようになります。
前提条件のインストール
Git をインストールします。
Macの場合:
まずターミナルにこれを貼り付けてHomebrewをインストールします: GXP1
次にGitをインストールします: GXP2
Windowsの場合:
git-scm.comからGitをダウンロードする
インストーラーを実行する
Node.js をインストールします。
Macの場合:
brew install nodeWindowsの場合:
nodejs.orgからダウンロード
インストーラーを実行する
次のコマンドを実行してインストールを確認します。
git --version
node --versionRelated MCP server: Perplexity MCP Server
ツールのインストール
リポジトリをクローンする
git clone https://github.com/letsbuildagent/perplexity-tool
cd perplexity-tool依存関係をインストールする
npm installAPIキーを設定する
次の 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-heredotenvをインストールします。
npm install dotenvserver.js を更新します。
import 'dotenv/config' const PERPLEXITY_API_KEY = process.env.PERPLEXITY_API_KEY;
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リポジトリのクローンを作成した実際のパスに置き換えます。
Claudeデスクトップを再起動します
使用法
インストールが完了すると、次のようなコマンドを使用して Claude 経由でツールを使用できるようになります。
「AIの最新動向についてPerplexityに聞いてみよう」
「Perplexity を使って量子コンピューティングの歴史を研究する」
「気候変動に関する情報をPerplexityで検索し、過去1か月に焦点を当てる」
詳細オプション
追加のパラメータを指定できます:
temperature: 応答のランダム性を制御します(0-2)max_tokens: レスポンスの長さを制限するsearch_domain_filter: 検索を特定のドメインに制限しますsearch_recency_filter: 期間(日/週/月/年)でフィルタリングします
トラブルシューティング
Gitが見つかりません:
Gitが正しくインストールされていることを確認してください
端末を再起動してみてください
Macでは、HomebrewがPATHに入っていることを確認してください。
Node.js エラー:
node --versionで Node.js のインストールを確認するNode.jsを再インストールしてみてください
API キーの問題:
APIキーを正しくコピーしたことを確認してください
.envファイルに余分なスペースがないことを確認してください
オプション2を使用する場合は、dotenvがインストールされていることを確認してください。
Claude にツールが表示されない:
claude_desktop_config.json のパスを確認してください
パスがserver.jsファイルを指していることを確認してください
Claudeデスクトップを再起動します
コンソールにエラーメッセージがないか確認してください
ライセンス
マサチューセッツ工科大学
セキュリティに関する注意事項
コードを共有したり公開したりする予定がある場合:
APIキーをGitにコミットしないでください
.env メソッドを使用する (オプション 2)
.gitignore ファイルに .env を追加します
Available Tools
1 toolask_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
Scored across 1 tool
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.
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.
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.
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
Related MCP Connectors
Live AI-native web search with citations. One tool for every MCP client. Flat per-request pricing.
Real-time web search, reasoning, and research through Perplexity's API
Web search, scraping, RAG answers with citations, and translation as MCP tools.
Official Exa MCP for web search, content fetching, and multi-step research.
Related MCP Servers
- AlicenseAqualityCmaintenanceAn 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.64MIT
- AlicenseAqualityDmaintenanceMCP server that enables Claude to request chat completions with citations from the Perplexity API.1MIT
- FlicenseAqualityDmaintenanceIntegrates 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.32-
- FlicenseNot gradedqualityDmaintenanceIntegrates Perplexity API into Claude/Cowork as MCP tools for search, trend scouting, and deep research.-