Skip to main content
Glama

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

MCP Stars Node License


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

Related MCP server: Perplexity MCP Server

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

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

License

MIT

Available Tools

1 tool

TDQS

B3.4/5.0
Disambiguation5/5

Only one tool exists, so there is no risk of confusion between tools.

Naming Consistency5/5

With a single tool named 'search', the naming is consistent and follows a verb_noun pattern.

Tool Count3/5

A single tool is borderline for a server named 'Perplexity MCP Server', as it may imply broader capabilities, but it is reasonable for a focused search helper.

Completeness3/5

The tool covers the primary search function, but lacks additional features like filtering or retrieving different result types, leaving minor gaps.

Maintenance

ActivityInactive
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    B
    quality
    D
    maintenance
    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.
    4
    5
    MIT
  • F
    license
    A
    quality
    D
    maintenance
    Integrates Perplexity AI's search-enhanced language models with Claude Desktop, providing three tools with different complexity levels for quick fact-checking, technical analysis, and deep research.
    3
    2
  • A
    license
    A
    quality
    C
    maintenance
    Enables real-time code analysis for JavaScript, TypeScript, and Python through Claude Desktop and other MCP clients, detecting bugs, code smells, and security vulnerabilities with automated quick fixes.
    7
    299
    4
    MIT

Latest Blog Posts

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

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