Perplexity MCP サーバー
これは、Perplexity AI を使用して Web を検索できるシンプルな MCP サーバーです。
インストール
前提条件
Node.js 18+ ( nodejs.orgからダウンロード)
Git ( git-scm.comからダウンロード)
Perplexity AI APIキー
Windowsの場合の手順
リポジトリをクローンします。
依存関係をインストールします:
環境ファイルを作成します:
ルートディレクトリに
.env
という名前の新しいファイルを作成します。Perplexity AI APIキーを追加します: GXP3
Windowsでの使用
開発モード
生産モード
プロジェクトをビルドします。
サーバーを起動します。
Windows バッチファイルの使用(推奨)
Windows での環境変数の問題を回避するには、付属のバッチ ファイルを使用します。
まずプロジェクトをビルドします。
バッチファイルを実行します:
または、Windows エクスプローラーでrun-perplexity-server.bat
ファイルをダブルクリックします。
詳細な手順については、 Windows セットアップ ガイドを参照してください。
Windowsの問題のトラブルシューティング
よくある問題
権限エラー
コマンドプロンプトまたはPowerShellを管理者として実行する
プロジェクトディレクトリ内のファイル権限を確認する
環境変数
.env
ファイルがルートディレクトリにあることを確認する.env
ファイル内の=
記号の前後にスペースを入れないでください環境変数を変更した後はターミナルを再起動してください
環境変数の問題を回避するために、提供されているバッチファイルを使用してください。
Node.js の問題
Node.jsのインストールを確認する:
node --version
npm がインストールされていることを確認する:
npm --version
エラーメッセージ
Error: ENOENT: no such file or directory
が表示された場合は、次の点を確認してください。
すべてのパスは正しいWindowsスタイルの区切り文字を使用します
正しいディレクトリにいます
必要なファイルが存在する
プロジェクト構造
APIの使用
サーバーは、Web 検索用の単一のツールperplexity_search
を提供します。
ライセンス
マサチューセッツ工科大学
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
このサーバーは、ユーザーが Perplexity AI を使用して Web 検索を実行できるようにし、シンプルな API インターフェースを通じて検索結果を取得するためのツールを提供します。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA server facilitating web search functionality by utilizing Perplexity AI's API, designed to integrate with the Claude desktop client for enhanced search queries.Last updated -251MIT License
- AsecurityAlicenseAqualityAn MCP server integrating Perplexity AI's API to offer advanced search capabilities with support for multiple models and result configuration.Last updated -4271MIT License
- AsecurityFlicenseAqualityThis server provides access to the Perplexity AI API, enabling interaction through chatting, searching, and documentation retrieval within MCP-based systems.Last updated -2
- AsecurityFlicenseAqualityA server that allows AI assistants to perform web searches using Perplexity's sonar-deep-research model with citation support.Last updated -18