joewilsonai

๐Ÿ” Perplexity MCP Server

Community joewilsonai
Updated

A Model Context Protocol (MCP) server for intelligent code analysis and debugging using Perplexity AIโ€™s API, seamlessly integrated with the Claude desktop client.

๐Ÿ” Perplexity MCP Server

Perplexity-backed code analysis and debugging โ€” straight from your Claude conversation.

A Model Context Protocol (MCP) server that lets Claude (or any MCP client) ask Perplexity AI for code analysis, error explanations, and debugging help.

MCPStarsNodeLicense

Features

  • ๐Ÿ› Intelligent Error Analysis โ€” Root-cause breakdown of coding errors
  • ๐Ÿ”ฌ Pattern Detection โ€” Recognizes common error patterns and provides targeted solutions
  • โœ… Comprehensive Solutions โ€” Step-by-step fixes with multiple implementation alternatives
  • ๐Ÿ“š Best Practices โ€” Coding standards and error-prevention tips
  • ๐Ÿ Python Support โ€” Specialized handling of Python type errors and common issues

Example usage

Ask Claude:

"Fix this TypeError in my Python code""What's causing this error message?""How do I fix this code?"

Include your code snippet:

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)

The server returns:

  1. Root-cause analysis of the error
  2. Step-by-step solution with code examples
  3. Best practices to prevent the same issue
  4. Alternative implementations

Install

From npm (recommended)

npm install -g mcp-perplexity-server

From source

git clone https://github.com/joewilsonai/mcp-perplexity-server
cd mcp-perplexity-server
npm install
npm run build

Configure in Claude Desktop

Edit claude_desktop_config.json:

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

Get a Perplexity API key at perplexity.ai/settings/api.

Prerequisites

  • Node.js 18 or higher
  • A Perplexity AI API key

Stack

  • TypeScript + Node.js 18+
  • @modelcontextprotocol/sdk
  • Perplexity API

Related MCP servers

License

MIT

MCP Server ยท Populars

MCP Server ยท New

    archetyx

    Telegram MCP Server

    Remote control AI coding assistants (Claude Code/Codex) via Telegram

    Community archetyx
    dtkmn

    MCP ZAP Server

    Give AI agents a safe, self-hosted OWASP ZAP operator for guided web security scans, findings, reports, and production guardrails.

    Community dtkmn
    dlt-hub

    dltHub AI Workbench

    MCP Server

    Community dlt-hub
    rasinmuhammed

    Misata

    High-performance open-source synthetic data engine. Uses LLMs for schema design and vectorized NumPy for deterministic, scalable generation.

    Community rasinmuhammed
    Silung

    Scholar Search MCP

    An MCP server for academic paper search that integrates with AI assistants (e.g., Claude Code, Cursor), enabling them to search and retrieve academic paper metadata.

    Community Silung