Skip to main content
Glama
MCP Perplexity Search

MCP Perplexity Search

by spences10

mcp-perplexity-search


⚠️お知らせ

このリポジトリはメンテナンスされなくなりました。

このツールの機能は、複数の MCP ツールを 1 つの統合パッケージにまとめたmcp-omnisearchで利用できるようになりました。

代わりにmcp-omnisearchを使用してください。


PerplexityのAI APIとLLMを統合するためのモデルコンテキストプロトコル(MCP)サーバー。このサーバーは、様々なユースケースに対応する専用のプロンプトテンプレートを備えた高度なチャット補完機能を提供します。

Related MCP server: DocGen MCP Server

特徴

  • 🤖 Perplexity の AI モデルを使用した高度なチャット補完

  • 📝 一般的なシナリオ向けの定義済みプロンプト テンプレート:

    • 技術文書の作成

    • セキュリティのベストプラクティス分析

    • コードレビューと改善

    • 構造化された形式のAPIドキュメント

  • 🎯 特殊なユースケース向けのカスタムテンプレートのサポート

  • 📊 複数の出力形式(テキスト、マークダウン、JSON)

  • 🔍 レスポンスにオプションでソース URL を含める

  • ⚙️ 設定可能なモデルパラメータ(温度、最大トークン数)

  • 🚀 Sonar や LLaMA を含むさまざまな Perplexity モデルのサポート

構成

このサーバーはMCPクライアント経由で設定する必要があります。以下に、様々な環境における設定例を示します。

傾斜構成

Cline MCP 設定に以下を追加します:

{
	"mcpServers": {
		"mcp-perplexity-search": {
			"command": "npx",
			"args": ["-y", "mcp-perplexity-search"],
			"env": {
				"PERPLEXITY_API_KEY": "your-perplexity-api-key"
			}
		}
	}
}

WSL 構成の Claude デスクトップ

WSL 環境の場合は、Claude Desktop 構成に以下を追加します。

{
	"mcpServers": {
		"mcp-perplexity-search": {
			"command": "wsl.exe",
			"args": [
				"bash",
				"-c",
				"source ~/.nvm/nvm.sh && PERPLEXITY_API_KEY=your-perplexity-api-key /home/username/.nvm/versions/node/v20.12.1/bin/npx mcp-perplexity-search"
			]
		}
	}
}

環境変数

サーバーには次の環境変数が必要です。

  • PERPLEXITY_API_KEY : Perplexity API キー (必須)

API

サーバーは、構成可能なパラメータを持つ単一の MCP ツールを実装します。

チャット完了

特殊なプロンプト テンプレートをサポートする Perplexity API を使用して、チャット補完を生成します。

パラメータ:

  • messages (配列、必須):次の内容を含むメッセージオブジェクトの配列:

    • role (文字列): 'system'、'user'、または 'assistant'

    • content (文字列): メッセージの内容

  • prompt_template (文字列、オプション): 使用する定義済みテンプレート:

    • technical_docs : コード例を含む技術ドキュメント

    • security_practices : セキュリティ実装ガイドライン

    • code_review : コード分析と改善

    • api_docs : JSON形式のAPIドキュメント

  • custom_template (オブジェクト、オプション): 次の内容を含むカスタム プロンプト テンプレート:

    • system (文字列): アシスタントの動作に関するシステムメッセージ

    • format (文字列): 出力形式の設定

    • include_sources (boolean): ソースを含めるかどうか

  • format (文字列、オプション): 'text'、'markdown'、または 'json'(デフォルト: 'text')

  • include_sources (ブール値、オプション): ソース URL を含める (デフォルト: false)

  • model (文字列、オプション): 使用するパープレキシティモデル (デフォルト: 'sonar')

  • temperature (数値, オプション): 出力のランダム性 (0-1, デフォルト: 0.7)

  • max_tokens (数値、オプション):最大レスポンス長(デフォルト:1024)

発達

設定

  1. リポジトリをクローンする

  2. 依存関係をインストールします:

pnpm install
  1. プロジェクトをビルドします。

pnpm build
  1. 開発モードで実行:

pnpm dev

出版

このプロジェクトではバージョン管理に変更セットを使用しています。公開するには:

  1. 変更セットを作成します。

pnpm changeset
  1. パッケージのバージョン:

pnpm changeset version
  1. npm に公開:

pnpm release

貢献

貢献を歓迎します!お気軽にプルリクエストを送信してください。

ライセンス

MIT ライセンス - 詳細についてはLICENSEファイルを参照してください。

謝辞

Available Tools

1 tool
chat_completionC

Generate chat completions using the Perplexity API

Inputs: messages (required), prompt_template, custom_template, format, +4 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3.2/5.0

    Scored across 1 tool

    Disambiguation5/5

    With only one tool, there is no possibility of ambiguity or overlap between tools. The single tool's purpose is clearly defined as generating chat completions using the Perplexity API, leaving no room for misselection.

    Naming Consistency5/5

    Since there is only one tool, naming consistency is inherently perfect. The tool name 'chat_completion' follows a clear verb_noun pattern, and there are no other tools to compare or create inconsistencies with.

    Tool Count2/5

    A single tool is generally too few for a server's purpose, as it limits functionality and may indicate an incomplete or overly narrow scope. While it could be appropriate for a very simple service, it often feels thin and lacks the breadth needed for typical agent workflows.

    Completeness3/5

    The tool provides a core function for chat completions, but with only one tool, the surface is notably incomplete. There are obvious gaps, such as missing operations for managing conversations, handling different models, or supporting related search functionalities, which could hinder agent performance in broader tasks.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • -
      license
      Not graded
      quality
      Not graded
      maintenance
      Enables AI assistants to generate professional documentation using structured templates based on the POWER framework. Provides access to standardized templates for README, architecture, API, components, and schema documentation.
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      Provides LLMs with up-to-date, version-specific documentation and code examples from library sources directly into prompts, eliminating outdated code generation and hallucinated APIs.
      MIT