Skip to main content
Glama

Perplexity MCP Server

by PoliTwit1984

Perplexity MCP サーバー

Perplexity AIのAPIを活用したインテリジェントなコード分析とデバッグ機能を提供するModel Context Protocol(MCP)サーバー。Claudeデスクトップクライアントとシームレスに連携します。

特徴

  • インテリジェントなエラー分析: 根本原因分析によるコーディングエラーの詳細な内訳
  • パターン検出: 一般的なエラーパターンを自動的に認識し、ターゲットを絞った解決策を提供します。
  • 包括的なソリューション: 複数の実装オプションを備えた段階的な修正
  • ベストプラクティス: コーディング標準とエラー防止のヒントが含まれています
  • Python サポート: Python の型エラーと一般的なコーディングの問題を専門的に処理します

使用例

次のような質問をします。

  • 「Pythonコード内のこのTypeErrorを修正してください」
  • 「このエラーメッセージの原因は何ですか?」
  • 「このコードを修正するにはどうすればいいですか?」

対象を絞った分析のためにコード スニペットを含めます。

def calculate_total(items): total = 0 for item in items: total = total + item['price'] # TypeError: string + int data = [ {'name': 'Book', 'price': '10'}, {'name': 'Pen', 'price': '2'} ] result = calculate_total(data)

サーバーは以下を提供します:

  1. エラーの根本原因分析
  2. コード例付きのステップバイステップのソリューション
  3. 同様の問題を防ぐためのベストプラクティス
  4. 代替的な実装アプローチ

インストール

前提条件

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

オプション1: npmからインストールする(推奨)

# Using npm npm install -g perplexity-mcp # Or using the repository directly npm install -g git+https://github.com/yourusername/perplexity-mcp.git

オプション2: ソースからインストールする

  1. リポジトリをクローンします。
git clone https://github.com/yourusername/perplexity-server.git cd perplexity-server
  1. 依存関係をインストールします:
npm install
  1. グローバルにビルドしてインストールします。
npm run build npm install -g .

Claudeデスクトップの設定

Claude デスクトップ構成ファイルに以下を追加します:

MacOS : ~/Library/Application Support/Claude/claude_desktop_config.json Windows : %APPDATA%/Claude/claude_desktop_config.json

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

またはソースからインストールした場合:

{ "mcpServers": { "perplexity": { "command": "node", "args": ["/absolute/path/to/perplexity-server/build/index.js"], "env": { "PERPLEXITY_API_KEY": "your-api-key-here" } } } }

安全

  • APIキーはClaudeのデスクトップ構成ファイルに安全に保存されます
  • キーは環境変数としてサーバーに渡されます
  • リポジトリには機密データは保存されません
  • サーバーは、Claude の環境から API キーが提供されることを期待しています。

発達

プロジェクト構造

perplexity-server/ ├── src/ │ └── index.ts # Main server implementation ├── package.json # Project configuration └── tsconfig.json # TypeScript configuration

利用可能なスクリプト

  • npm run build : プロジェクトをビルドする
  • npm run watch : 変更を監視し、自動的に再構築する
  • npm run prepare : 公開用のパッケージを準備する
  • npm run inspector : デバッグ用に MCP インスペクタを実行する

貢献

  1. リポジトリをフォークする
  2. 機能ブランチを作成します( git checkout -b feature/amazing-feature
  3. 変更をコミットします ( git commit -m 'Add some amazing feature' )
  4. ブランチにプッシュする ( git push origin feature/amazing-feature )
  5. プルリクエストを開く

ライセンス

このプロジェクトは MIT ライセンスに基づいてライセンスされています - 詳細についてはLICENSEファイルを参照してください。

謝辞

Install 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.

Tools

Perplexity AI の API を通じてインテリジェントなコード分析とデバッグを可能にし、詳細なエラー分析、パターン検出、包括的なソリューションを提供し、Claude デスクトップ クライアントとの統合をサポートします。

  1. 特徴
    1. 使用例
      1. インストール
        1. 前提条件
        2. オプション1: npmからインストールする(推奨)
        3. オプション2: ソースからインストールする
        4. Claudeデスクトップの設定
      2. 安全
        1. 発達
          1. プロジェクト構造
          2. 利用可能なスクリプト
          3. 貢献
        2. ライセンス
          1. 謝辞

            Related MCP Servers

            • A
              security
              A
              license
              A
              quality
              A server facilitating web search functionality by utilizing Perplexity AI's API, designed to integrate with the Claude desktop client for enhanced search queries.
              Last updated -
              1
              94
              Python
              MIT License
              • Apple
            • -
              security
              F
              license
              -
              quality
              Provides AI-powered assistance for coding problems using Google's Gemini AI, combined with Perplexity insights and Stack Overflow references, facilitating contextual analysis and automatic response archiving for improved troubleshooting.
              Last updated -
              10
              TypeScript
            • -
              security
              A
              license
              -
              quality
              A Cursor-compatible toolkit that provides intelligent coding assistance through custom AI tools for code architecture planning, screenshot analysis, code review, and file reading capabilities.
              Last updated -
              839
              2
              TypeScript
              MIT License
            • -
              security
              A
              license
              -
              quality
              A powerful research assistant that integrates with Cline and Claude Desktop to leverage Perplexity AI for intelligent search, documentation retrieval, API discovery, and code modernization assistance while coding.
              Last updated -
              2
              JavaScript
              MIT License

            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/PoliTwit1984/mcp-perplexity-server'

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