Perplexity MCP Server
Perplexity MCP サーバー
Perplexity AIのAPIを活用したインテリジェントなコード分析とデバッグ機能を提供するModel Context Protocol(MCP)サーバー。Claudeデスクトップクライアントとシームレスに連携します。
特徴
インテリジェントなエラー分析: 根本原因分析によるコーディングエラーの詳細な内訳
パターン検出: 一般的なエラーパターンを自動的に認識し、ターゲットを絞った解決策を提供します。
包括的なソリューション: 複数の実装オプションを備えた段階的な修正
ベストプラクティス: コーディング標準とエラー防止のヒントが含まれています
Python サポート: Python の型エラーと一般的なコーディングの問題を専門的に処理します
Related MCP server: Perplexity MCP Server
使用例
次のような質問をします。
「Pythonコード内のこのTypeErrorを修正してください」
「このエラーメッセージの原因は何ですか?」
「このコードを修正するにはどうすればいいですか?」
対象を絞った分析のためにコード スニペットを含めます。
def calculate_total(items):
total = 0
for item in items:
total = total + item['price'] # TypeError: string + int
data = [
{'name': 'Book', 'price': '10'},
{'name': 'Pen', 'price': '2'}
]
result = calculate_total(data)サーバーは以下を提供します:
エラーの根本原因分析
コード例付きのステップバイステップのソリューション
同様の問題を防ぐためのベストプラクティス
代替的な実装アプローチ
インストール
前提条件
Node.js 18以上
Perplexity AI APIキー
オプション1: npmからインストールする(推奨)
# Using npm
npm install -g perplexity-mcp
# Or using the repository directly
npm install -g git+https://github.com/yourusername/perplexity-mcp.gitオプション2: ソースからインストールする
リポジトリをクローンします。
git clone https://github.com/yourusername/perplexity-server.git
cd perplexity-server依存関係をインストールします:
npm installグローバルにビルドしてインストールします。
npm run build
npm install -g .Claudeデスクトップの設定
Claude デスクトップ構成ファイルに以下を追加します:
MacOS : ~/Library/Application Support/Claude/claude_desktop_config.json Windows : %APPDATA%/Claude/claude_desktop_config.json
{
"mcpServers": {
"perplexity": {
"command": "perplexity-mcp",
"args": [],
"env": {
"PERPLEXITY_API_KEY": "your-api-key-here"
}
}
}
}またはソースからインストールした場合:
{
"mcpServers": {
"perplexity": {
"command": "node",
"args": ["/absolute/path/to/perplexity-server/build/index.js"],
"env": {
"PERPLEXITY_API_KEY": "your-api-key-here"
}
}
}
}安全
APIキーはClaudeのデスクトップ構成ファイルに安全に保存されます
キーは環境変数としてサーバーに渡されます
リポジトリには機密データは保存されません
サーバーは、Claude の環境から API キーが提供されることを期待しています。
発達
プロジェクト構造
perplexity-server/
├── src/
│ └── index.ts # Main server implementation
├── package.json # Project configuration
└── tsconfig.json # TypeScript configuration利用可能なスクリプト
npm run build: プロジェクトをビルドするnpm run watch: 変更を監視し、自動的に再構築するnpm run prepare: 公開用のパッケージを準備するnpm run inspector: デバッグ用に MCP インスペクタを実行する
貢献
リポジトリをフォークする
機能ブランチを作成します(
git checkout -b feature/amazing-feature)変更をコミットします (
git commit -m 'Add some amazing feature')ブランチにプッシュする (
git push origin feature/amazing-feature)プルリクエストを開く
ライセンス
このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細についてはLICENSEファイルを参照してください。
謝辞
強力なAPIを提供してくれたPerplexity AIに感謝します
Available Tools
1 toolsearchB
Search Perplexity for coding help
Inputs: query (required), code, language.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 1 tool
Only one tool exists, so there is no risk of confusion between tools.
With a single tool named 'search', the naming is consistent and follows a verb_noun pattern.
A single tool is borderline for a server named 'Perplexity MCP Server', as it may imply broader capabilities, but it is reasonable for a focused search helper.
The tool covers the primary search function, but lacks additional features like filtering or retrieving different result types, leaving minor gaps.
Maintenance
Related MCP Connectors
AI code governance and code review for Claude Code, Copilot and Cursor. Checks rules and security.
Errors, logs and AI-call costs for apps on Node.js, Next.js, Cloudflare Workers or the browser. Ask your AI what’s broken, why, and how to fix it, right inside Cursor or Claude.
Code intelligence for LLMs. Analyze, search, and retrieve code from any public git repository.
Persistent memory for Claude Code and Cursor. Stop re-explaining your project every session.
Related MCP Servers
- AlicenseBqualityDmaintenanceA powerful research assistant that integrates with Cline and Claude Desktop to leverage Perplexity AI for intelligent search, documentation retrieval, API discovery, and code modernization assistance while coding.45MIT
- 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-
- AlicenseCqualityDmaintenanceEnables AI-powered automated testing, security scanning, code review, and maintenance tasks directly within Claude Code or desktop.1252 PyPI4MIT
- AlicenseAqualityDmaintenanceEnables real-time code analysis for JavaScript, TypeScript, and Python through Claude Desktop and other MCP clients, detecting bugs, code smells, and security vulnerabilities with automated quick fixes.787 npm4MIT