Skip to main content
Glama

Perplexity AI MCP Server

by mkusaka

Perplexity AI MCP サーバー

Perplexity AI の API を統合し、複数のモデル オプションによる高度な検索機能を提供する MCP サーバー実装。

特徴

  • Perplexity AIのモデルを使った検索
  • すべての公式Sonarモデルをサポート
  • 設定可能な結果数
  • 詳細なエラー処理とログ記録
  • MCP Inspector対応

利用可能なモデル

  • sonar-reasoning-pro (127k コンテキスト)
  • ソナー推論 (127k コンテキスト)
  • sonar-pro (200kコンテキスト)
  • ソナー(127kコンテキスト)

インストール

pnpm install pnpm build

構成

APIキー

  1. Perplexity AIアカウントに登録する
  2. ダッシュボードからAPIキーを取得する
  3. 環境変数を設定します。
export PERPLEXITY_API_KEY=your_api_key_here

使用法

直接実行

node dist/index.js # or if you made it executable ./dist/index.js

発達

pnpm dev

MCP Inspectorによるテスト

pnpm inspect

ツールリファレンス

困惑_検索

Perplexity AI のモデルを使用して検索を実行します。

パラメータ:

  • query (文字列、必須): 検索クエリ
  • model (文字列、オプション): 使用するモデル (デフォルト: "sonar")
    • 利用可能なオプション: sonar-reasoning-pro、sonar-reasoning、sonar-pro、sonar
  • count (数値、オプション): 結果の数 (1-10、デフォルト: 5)

発達

プロジェクト構造

src/perplexity/ ├── index.ts # Main server implementation ├── lib/ │ └── logger.ts # Logging configuration └── adr.md # Architectural decisions

ログ記録

ログは、プロジェクト ルート ディレクトリのperplexity-mcp.logに書き込まれます。

ライセンス

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

貢献

  1. リポジトリをフォークする
  2. 機能ブランチを作成する
  3. 変更をコミットする
  4. ブランチにプッシュする
  5. 新しいプルリクエストを作成する
Deploy Server
A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

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 を統合し、複数のモデルと結果構成をサポートする高度な検索機能を提供する MCP サーバー。

  1. 特徴
    1. 利用可能なモデル
      1. インストール
        1. 構成
          1. APIキー
        2. 使用法
          1. 直接実行
          2. 発達
          3. MCP Inspectorによるテスト
        3. ツールリファレンス
          1. 困惑_検索
        4. 発達
          1. プロジェクト構造
          2. ログ記録
        5. ライセンス
          1. 貢献

            Related MCP Servers

            • A
              security
              F
              license
              A
              quality
              This server allows users to perform web searches using Perplexity AI, providing a tool for retrieving search results through a simple API interface.
              Last updated -
              1
              49
              3
            • -
              security
              A
              license
              -
              quality
              MCP Server for the Perplexity API.
              Last updated -
              60
              MIT License
              • Linux
              • Apple
            • 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 -
              2
            • A
              security
              A
              license
              A
              quality
              An 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.
              Last updated -
              3
              MIT License
              • 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/mkusaka/mcp-server-perplexity'

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