Skip to main content
Glama
mkusaka

Perplexity AI MCP Server

by mkusaka

Perplexity AI MCP サーバー

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

特徴

  • Perplexity AIのモデルを使った検索

  • すべての公式Sonarモデルをサポート

  • 設定可能な結果数

  • 詳細なエラー処理とログ記録

  • MCP Inspector対応

Related MCP server: PPX-MCP

利用可能なモデル

  • 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. 新しいプルリクエストを作成する

Available Tools

1 tool

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 1 tool updatev1.0.0
    • First observedperplexity_search

TDQS

B3.1/5.0

Scored across 1 tool

Disambiguation5/5

With only one tool, there is no possibility of ambiguity or overlap between tools. The tool's purpose is clearly defined as searching using Perplexity AI's models, making it distinct by default.

Naming Consistency5/5

The single tool name 'perplexity_search' follows a clear and consistent verb_noun pattern (search as the verb, perplexity as a modifier). With only one tool, naming consistency is inherently perfect as there are no other tools to compare against.

Tool Count2/5

A single tool is generally too few for most server purposes, as it limits functionality and flexibility. For a search-focused server, additional tools like filtering, citation management, or model selection might be expected to provide a more complete experience.

Completeness2/5

The server's domain appears to be search using Perplexity AI, but with only one search tool, there are significant gaps. Missing operations could include advanced search parameters, result refinement, citation handling, or integration with other Perplexity features, making the surface incomplete for typical search workflows.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    D
    maintenance
    An unofficial MCP server for Perplexity AI that leverages Pro subscriptions and browser cookies to enable real-time web searches and model selection without an API key. It provides tools for performing queries, listing available models, and automating the login process to manage authentication.
    4
    29 npm
    MIT
  • A
    license
    Not graded
    quality
    D
    maintenance
    An MCP server that enables AI agents to perform search-augmented queries and deep multi-source research using the Perplexity API.
    59 npm
    25
    Apache 2.0