MCP HubMCP Hub
DaInfernalCoder

perplexity-mcp

by: DaInfernalCoder

A Model Context Protocol (MCP) server for research and documentation assistance using Perplexity AI. Won 1st @ Cline Hackathon

167created 26/01/2025
Visit
AI
research

📌Overview

Purpose: To provide a comprehensive research assistant tool within the Cline environment using Perplexity's Sonar Pro API, enhancing development efficiency.

Overview: The MCP-researcher Server integrates various functionalities aimed at improving the process of gathering information and managing code. It allows users to access documentation, check for deprecated code, and discover APIs seamlessly during development tasks.

Key Features:

  • Search Tool: Enables users to perform tailored search queries to gather comprehensive information on any topic, with customizable levels of detail.

  • Get Documentation: Retrieves extensive documentation and examples for specific technologies or APIs, assisting developers in following best practices effectively.

  • Find APIs: Identifies potential APIs for project integration, providing detailed analysis on features and implementation complexity.

  • Check Deprecated Code: Scans code for deprecated features, offering guidance on modern alternatives to ensure up-to-date coding practices.


MCP-researcher Server

Your own research assistant inside of Cline! Utilizes Perplexity's new Sonar Pro API to get docs, create up-to-date API routes, and check deprecated code while you create features with Cline.

Tools

1. 1

Perform general search queries to get tailored responses with varying detail levels.

2. 1

Retrieve documentation and usage examples for specific technologies or APIs.

3. 1

Discover and evaluate APIs for integration into projects.

4. 1

Analyze code for deprecated features and receive migration guidance.

Installation

Installing via Smithery

To install MCP-researcher Server for Claude Desktop via Smithery:

npx -y @smithery/cli install @DaInfernalCoder/perplexity-mcp --client claude

Manual Installation Steps

  1. Install Node.js if not already installed (from nodejs.org).
  2. Clone the repository:
    git clone https://github.com/DaInfernalCoder/researcher-mcp perplexity-server
    cd perplexity-server
    
  3. Install dependencies:
    npm install
    
  4. Get a Perplexity API key from Perplexity API Settings.
  5. Create the MCP settings file based on your OS:
    • macOS: ~/Library/Application Support/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
    • Windows: %APPDATA%\Cursor\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
    • Linux: ~/.config/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
  6. Configure Claude Desktop with the server config based on your OS:
    • MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
    • Windows: %APPDATA%/Claude/claude_desktop_config.json
  7. Update mcpServers section in the configuration:
    {
      "mcpServers": {
        "perplexity-server": {
          "command": "node",
          "args": [
            "[path/to/researcher-mcp/index.js]"
          ],
          "env": {
            "PERPLEXITY_API_KEY": ""
          },
          "disabled": false,
          "autoApprove": [
            "search",
            "get_documentation",
            "find_apis",
            "check_deprecated_code"
          ]
        }
      }
    }
    
  8. Build the server:
    npm run build
    

Make sure to replace paths and the API key appropriately.