
dainfernalcoder/perplexity-mcp
Developer toolsこのページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る
dainfernalcoder/perplexity-mcpは、https://github.com/dainfernalcoder/perplexity-mcp.からインポートされたMCPサーバー候補です。
概要
dainfernalcoder/perplexity-mcpは、https://github.com/dainfernalcoder/perplexity-mcp.からインポートされたMCPサーバー候補です。
概要(AI 翻訳)
Perplexityの専門AIモデルを搭載した知能的なリサーチアシスタント。最適な結果を得るために、リクエストを最適なモデルにルーティングする自動クエリ複雑性検出機能を備えています。公式サーバーとは異なり、ほぼすべてのタスクに対して検索機能を備えています
また、MCPを使用するエージェントに具体的であることを強制します
道具
1.サーチ(Sonar Pro)
簡単なクエリや基本情報の検索が速い。簡潔で直接的な回答が必要な率直な質問に最適です。
2.Reason(Sonar Reasoning Pro)
詳細分析が必要な複雑で多段階の作業を扱います。説明、比較、問題解決に最適です。
3.ディープリサーチ(ソナー・ディープリサーチ)
包括的な調査を行い、詳細な報告書を作成します。複雑なテーマの詳細な分析に最適です。
セットアップ
- 前提条件
- Node.js(nodejs.org 年より)
- Perplexity APIキー(perplexity.ai/settings/api より)
- どこかでリポジトリをクローン
- MCP設定の設定
MCPの設定ファイルに追加してください(場所はプラットフォームによって異なります):
あるいは、ローカルインストールせずにNPXを使う(macOS推奨):
このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。
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
-
Prerequisites
- Node.js (from nodejs.org)
- Perplexity API key (from perplexity.ai/settings/api)
- clone the repo somewhere
-
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:
インストール
npx -y perplexity-mcp設定
{
"mcpServers": {
"perplexity": {
"command": "node",
"args": ["/path/to/perplexity-server/build/index.js"],
"env": {
"PERPLEXITY_API_KEY": "YOUR_API_KEY_HERE"
},
"disabled": false,
"autoApprove": []
}
}
}