Skip to main content
Glama

Perplexity Insight MCP Server

Perplexity Insight MCP サーバー

Perplexity AI API とインターフェイスするための MCP サーバー実装。標準化されたモデル コンテキスト プロトコルを通じて高度な質問回答機能を提供します。

特徴

  • Perplexity AI APIとのシームレスな統合
  • さまざまな Perplexity モデルのサポート (sonar-reasoning、sonar-pro、sonar-deep-research)
  • カスタマイズ可能なシステムプロンプトとユーザークエリ
  • 適切なエラー処理と応答フォーマット
  • レート制限保護
  • Windsurf IDEとの簡単な統合

要件

  • Node.js 18歳以上
  • Perplexity APIキー

インストール

npm install

環境変数

次の変数を含む.envファイルを作成します。

PERPLEXITY_API_KEY=your_api_key_here

使用法

サーバーを実行します。

npm start

APIツール

サーバーは次のツールを公開します。

  1. perplexity_ask - Perplexity AIに直接質問を送信
  2. perplexity_search - Perplexity AIで検索クエリを実行する

モデルの変更

どちらのツールも、次の Perplexity モデルをサポートしています。

  • sonar-reasoning (デフォルト) - Perplexity の推論重視のモデル。一般的な質問に最適
  • sonar-pro - プロフェッショナルユースケース向けに機能強化された拡張モデル
  • sonar-deep-research - 詳細な調査と複雑なクエリに特化しています

ツールを使用するときにモデルを指定するには、リクエストにmodelパラメータを含めます。

Ask Perplexity using sonar-deep-research: What are the latest advancements in quantum computing?

システムプロンプトと最大トークン数をカスタマイズすることもできます。

Search with Perplexity using sonar-pro with system prompt "You are a helpful research assistant" and max tokens 2000: Latest developments in renewable energy

ツール応答形式

サーバーは、ツール応答に関して MCP 仕様に従います。

{ content: [ { type: "text", text: "Response content from Perplexity AI" } ], isError: false // or true if an error occurred }

ウィンドサーフィン統合

ウィンドサーフィンのセットアップ

  1. サーバーを構築します。
    npm run build
  2. Windsurfを開き、設定に移動します
  3. 「AI設定」または「モデルコンテキストプロトコル」セクションを見つけます
  4. 次の詳細で新しい MCP サーバーを追加します。
    • 名前: Perplexity Insight
    • タイプ: ローカルプロセス
    • コマンド: Node.js実行ファイルへのパス
    • 引数: コンパイルされたindex.jsファイルへのパス
    • 作業ディレクトリ: プロジェクトディレクトリへのパス
    • 環境変数: PERPLEXITY_API_KEY=your_api_key_hereを必ず含めてください
  5. サーバーを有効にし、必要に応じてWindsurfを再起動します。

構成例

mcp_config.jsonファイルの構成例を次に示します。

"perplexity-ask": { "command": "node", "args": [ "/path/to/perplexity-insight-MCP/dist/index.js" ], "cwd": "/path/to/perplexity-insight-MCP", "env": { "PERPLEXITY_API_KEY": "pplx-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" } }

/path/to/perplexity-insight-MCP実際のインストール ディレクトリへのパスに置き換え、実際の Perplexity API キーを使用します。

ウィンドサーフィンにおけるPerplexityの利用

  • AIアシスタントパネルを使用して、Perplexityに問い合わせる質問をします。
  • ウェブ検索の場合は、「検索」などの具体的な語句をクエリに含めます
  • モデルを変更するには、「モデルの変更」セクションに示されているように、クエリにモデル名を含めます。
  • Windsurfはクエリに基づいて適切なPerplexityツールを自動的に使用します

発達

地域開発の場合:

npm run dev

トラブルシューティング

MCP サーバーで問題が発生した場合:

  1. APIキーが有効であり、 .envファイルに正しく設定されていることを確認してください。
  2. 応答形式がMCP仕様と一致していることを確認する
  3. サーバーログでエラーメッセージを探します
  4. WindsurfがMCPサーバーを使用するように適切に設定されていることを確認します

ライセンス

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

-
security - not tested
-
license - not tested
-
quality - not tested

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.

Perplexity AI API とのインターフェースにより、標準化されたモデル コンテキスト プロトコルを通じて高度な質問回答機能を提供し、複数の Perplexity モデルをサポートします。

  1. 特徴
    1. 要件
      1. インストール
        1. 環境変数
          1. 使用法
            1. APIツール
              1. モデルの変更
              2. ツール応答形式
            2. ウィンドサーフィン統合
              1. ウィンドサーフィンのセットアップ
              2. 構成例
              3. ウィンドサーフィンにおけるPerplexityの利用
            3. 発達
              1. トラブルシューティング
                1. ライセンス

                  Related MCP Servers

                  • A
                    security
                    F
                    license
                    A
                    quality
                    This server provides access to the Perplexity AI API, enabling interaction through chatting, searching, and documentation retrieval within MCP-based systems.
                    Last updated -
                    5
                    2
                    JavaScript
                  • A
                    security
                    F
                    license
                    A
                    quality
                    Provides a standardized way to integrate Perplexity AI's features like chat, search, and documentation access into MCP-based systems.
                    Last updated -
                    5
                    JavaScript
                  • A
                    security
                    F
                    license
                    A
                    quality
                    A Node.js implementation that enables Claude to interact with Perplexity AI's language models through Anthropic's Model Context Protocol, providing tools for advanced chat completions and quick queries.
                    Last updated -
                    2
                    6
                    TypeScript
                    • Apple
                    • Linux
                  • -
                    security
                    A
                    license
                    -
                    quality
                    Provides access to Perplexity AI models through two tools: ask\_perplexity for expert programming assistance and chat\_perplexity for maintaining ongoing conversations with context preservation.
                    Last updated -
                    Python
                    MIT License
                    • Linux
                    • Apple

                  View all related MCP servers

                  MCP directory API

                  We provide all the information about MCP servers via our MCP API.

                  curl -X GET 'https://glama.ai/api/mcp/v1/servers/TheoLawrence86/perplexity-insight-MCP'

                  If you have feedback or need assistance with the MCP directory API, please join our Discord server