Perplexity MCP Server
困惑MCP Zerver 📋
API キーを必要とせずに Perplexity Web サイトと対話することで AI を活用した研究機能を提供する、研究レベルのモデル コンテキスト プロトコル (MCP) サーバー実装。
特徴
🔍 Perplexity の Web インターフェースを介した Web 検索の統合。
💬 会話のコンテキストの永続的なチャット履歴。
📄 ドキュメントの取得、API の検索、コード分析のためのツール。
🚫 API キーは不要です (Web インタラクションに依存します)。
🛠️ TypeScript ファーストの実装。
🌐 ブラウザの自動化には Puppeteer を使用します。
Related MCP server: Perplexity AI MCP Server
ツール
1. 検索( search )
Perplexity.ai で検索クエリを実行します。brief brief normal 、 detailedレスポンスをサポートします。生のテキスト出力を返します。
2. ドキュメントを取得する ( get_documentation )
Perplexity に、テクノロジー/ライブラリに関するドキュメントとサンプルを提供するよう依頼します。オプションで特定のコンテキストに焦点を当てることもできます。生のテキスト出力を返します。
3. APIを検索する( find_apis )
Perplexity に、要件とコンテキストに基づいて API を検索および評価するよう指示します。生のテキスト出力を返します。
4. 非推奨コードを確認する( check_deprecated_code )
Perplexity に、特定のテクノロジーコンテキストにおける非推奨機能のコードスニペットの分析を依頼します。生のテキスト出力を返します。
5. URLコンテンツを抽出する( extract_url_content )
ブラウザ自動化とMozillaのReadability機能を使用して、URLから記事のメインテキストコンテンツを抽出します。gitingest.com経由でGitHubリポジトリを処理します。深度までの再帰リンク探索をサポートします。コンテンツとメタデータを含む構造化JSONを返します。
6. チャット( chat_perplexity )
Perplexity AIとの継続的な会話を維持します。チャット履歴はプロジェクトディレクトリ内のchat_history.dbにローカルに保存されます。chat_id chat_id responseを含む文字列化されたJSONオブジェクトを返します。
インストール
📋 をコピーして Readme を貼り付けるだけで、あとは AI に任せられます
このリポジトリをクローンまたはダウンロードします:
git clone https://github.com/wysh3/perplexity-mcp-zerver.git
cd perplexity-mcp-zerver依存関係をインストールします:
npm installサーバーを構築します。
npm run build重要:Node.jsがインストールされていることを確認してください。Puppeteerはインストール中に必要に応じて互換性のあるブラウザバージョンをダウンロードします。プロジェクトのビルドと設定が完了したら、IDE/アプリケーションを再起動して変更を有効にしてください。
構成
サーバーを MCP 構成ファイルに追加します (例: VS Code 拡張機能の場合はcline_mcp_settings.json 、デスクトップ アプリの場合はclaude_desktop_config.json )。
重要: /path/to/perplexity-mcp-zerver/build/index.jsを、システム上に構築されたindex.jsファイルへの絶対パスに置き換えます。
Cline/RooCode拡張機能の例:
{
"mcpServers": {
"perplexity-server": {
"command": "node",
"args": [
"/full/path/to/your/perplexity-mcp-zerver/build/index.js" // <-- Replace this path! (in case of windows for ex: "C:\\Users\\$USER\\Documents\\Cline\\MCP\\perplexity-mcp-zerver\\build\\index.js"
],
"env": {},
"disabled": false,
"alwaysAllow": [],
"autoApprove": [],
"timeout": 300
}
}
}Claude Desktop の例:
{
"mcpServers": {
"perplexity-server": {
"command": "node",
"args": [
"/full/path/to/your/perplexity-mcp-zerver/build/index.js" // <-- Replace this path!
],
"env": {},
"disabled": false,
"alwaysAllow": []
}
}
}使用法
MCP 設定ファイルでサーバーが正しく構成されていることを確認します。
IDE (Cline/RooCode 拡張機能を備えた VS Code など) または Claude デスクトップ アプリケーションを再起動します。
MCP クライアントは自動的にサーバーに接続します。
接続された AI アシスタント (Claude など) にツールを使用するように依頼できるようになりました。例:
「AI に関する最新ニュースを見つけるには、perplexity-server 検索を使用してください。」
「React フックについては、perplexity-server get_documentation に問い合わせてください。」
「量子コンピューティングについて perplexity-server とチャットを始めましょう。」
クレジット
DaInfernalCoderさん、ありがとう:
ライセンス
このプロジェクトは、GNU General Public License v3.0 に基づいてライセンスされています。詳細については、 LICENSE.mdファイルを参照してください。
免責事項
このプロジェクトは、Webオートメーション(Puppeteer)を介してPerplexityウェブサイトと連携します。教育および研究目的のみに使用されます。Webスクレイピングおよび自動化は、対象ウェブサイトの利用規約に違反する可能性があります。作者は、許可されていない自動化や利用規約違反を推奨または奨励するものではありません。責任を持って倫理的にご利用ください。このサーバーの安定性は、Perplexityウェブサイトの構造が一貫していることに依存しています。
Available Tools
6 toolschat_perplexityB
Automatically call this tool for interactive, conversational queries. This tool leverages Perplexitys web search capabilities to provide real-time information and maintains conversation history using an optional chat ID for contextual follow-ups.
Inputs: message (required), chat_id. Returns: Describes the structure of the JSON object returned within the response text fi…
check_deprecated_codeA
Automatically call this tool when reviewing legacy code, planning upgrades, or encountering warnings with real time web access. Helps identify technical debt. Example: During code reviews or before upgrading dependencies.
Inputs: code (required), technology. Returns: response
extract_url_contentA
Uses browser automation (Puppeteer) and Mozilla's Readability library to extract the main article text content from a given URL. Handles dynamic JavaScript rendering and includes fallback logic. For GitHub repository URLs, it attempts to fetch structured content via gitingest.com. Performs a pre-check for non-HTML content types and checks HTTP status after navigation. Ideal for getting clean text from articles/blog posts. Note: May struggle to isolate only core content on complex homepages or dashboards, potentially including UI elements.
Inputs: url (required), depth. Returns: Returns a JSON object with extraction status and content for the URL(s) explore…
find_apisB
Automatically call this tool when needing external services or real time current data (like API info, latest versions, etc.) from web. Compares options based on requirements. Example: When building a shopping site, ask "Find product image APIs with free tiers".
Inputs: requirement (required), context. Returns: response
get_documentationA
Automatically call this tool when working with unfamiliar APIs/libraries, needing usage examples, or checking version specifics as this can access web. Example: When adding a payment gateway, ask "Get Stripe API documentation for creating charges".
Inputs: query (required), context. Returns: response
searchB
Performs a web search using Perplexity AI based on the provided query and desired detail level. Useful for general knowledge questions, finding information, or getting different perspectives.
Inputs: query (required), detail_level, stream. Returns: response
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
The tools have distinct primary purposes (e.g., chat, code review, content extraction, API discovery, documentation lookup, general search), but there is some functional overlap. For instance, 'chat_perplexity' and 'search' both perform web searches, and 'find_apis' and 'get_documentation' both relate to API information, which could cause confusion for an agent in selecting the most appropriate tool for a given task.
Most tool names follow a consistent verb_noun pattern (e.g., 'extract_url_content', 'find_apis', 'get_documentation', 'check_deprecated_code'), which aids readability. However, 'chat_perplexity' deviates slightly by using a noun_verb structure, and 'search' is a standalone verb without a noun, creating minor inconsistencies in the naming convention.
With 6 tools, the count is well-scoped for a server focused on web-based information retrieval and code assistance. Each tool appears to serve a specific function within this domain, avoiding bloat while covering key areas like conversation, search, content extraction, and technical support, making the set manageable and purposeful.
The tool set covers a broad range of web interaction and code-related tasks, including conversational search, content extraction, API discovery, documentation access, and code review. A minor gap exists in lacking explicit tools for updating or managing retrieved information (e.g., saving or organizing results), but agents can likely work around this using the provided tools effectively for most workflows.
Maintenance
Related MCP Connectors
MCP server for AI dialogue using various LLM models via AceDataCloud
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
An MCP server that gives your AI access to the source code and docs of all public github repos
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP Server for the Perplexity API.24 PyPI66MIT
- AlicenseBqualityDmaintenanceAn MCP server integrating Perplexity AI's API to offer advanced search capabilities with support for multiple models and result configuration.11MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI agents to perform search-augmented queries and deep multi-source research using the Perplexity API.26Apache 2.0
- AlicenseAqualityDmaintenanceAn MCP server that enables AI assistants to query Perplexity AI for web-grounded answers with citations and advanced search filters.3MIT
Appeared in Searches
- Official MCP server that runs locally without an API key or paid plan
- Search functionality without API key requirement
- A server for finding the cheapest flights for a specified date range
- Using a search engine to find evidence to answer a question
- A server for delivering personalized latest news updates