drio
Open app

Perplexity MCP Server

Source

Mirror of

Catalog onlyCatalog onlySTDIO

Overview

Perplexity MCP Server is a Model Context Protocol (MCP) server that provides intelligent code analysis and debugging capabilities using Perplexity AI's API, designed to work seamlessly with the Claude desktop client.

To use the server, install it via npm or from source, configure it with your Perplexity AI API key, and then ask questions related to coding errors by including your code snippets for targeted analysis.

  • Intelligent Error Analysis: Detailed breakdown of coding errors with root cause analysis. - Pattern Detection: Automatically recognizes common error patterns and provides targeted solutions. - Comprehensive Solutions: Step-by-step fixes with multiple implementation alternatives. - Best Practices: Includes coding standards and error prevention tips. - Python Support: Specialized handling of Python type errors and common coding issues.
  1. Debugging Python code errors.
  2. Learning coding best practices through error analysis.
  3. Assisting developers in understanding and fixing common coding issues.

Add to your AI client

Use these steps to connect Perplexity MCP Server in Cursor, Claude, VS Code, and other MCP-compatible apps. The same JSON appears in the Use with menu above for one-click copy.

Cursor

Add this to your .cursor/mcp.json file in your project root, then restart Cursor.

.cursor/mcp.json

{
  "mcpServers": {
    "politwit1984-mcp-perplexity-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-politwit1984-mcp-perplexity-server-mcp-mirror"
      ]
    }
  }
}

Claude Desktop

Add this server entry to the mcpServers object in your Claude Desktop config, then restart the app.

~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)

{
  "mcpServers": {
    "politwit1984-mcp-perplexity-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-politwit1984-mcp-perplexity-server-mcp-mirror"
      ]
    }
  }
}

Claude Code

Add this to your project's .mcp.json file. Claude Code will detect it automatically.

.mcp.json (project root)

{
  "mcpServers": {
    "politwit1984-mcp-perplexity-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-politwit1984-mcp-perplexity-server-mcp-mirror"
      ]
    }
  }
}

VS Code (Copilot)

Add this to your .vscode/mcp.json file. Requires the GitHub Copilot extension with MCP support enabled.

.vscode/mcp.json

{
  "servers": {
    "politwit1984-mcp-perplexity-server-mcp-mirror": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-politwit1984-mcp-perplexity-server-mcp-mirror"
      ]
    }
  }
}

Windsurf

Add this to your Windsurf MCP config file, then restart Windsurf.

~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "politwit1984-mcp-perplexity-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-politwit1984-mcp-perplexity-server-mcp-mirror"
      ]
    }
  }
}

Cline

Open Cline settings, navigate to MCP Servers, and add this server configuration.

Cline MCP Settings (via UI)

{
  "mcpServers": {
    "politwit1984-mcp-perplexity-server-mcp-mirror": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-politwit1984-mcp-perplexity-server-mcp-mirror"
      ]
    }
  }
}

FAQ

Can I use this server for languages other than Python?

While it specializes in Python, it can assist with general coding issues in other languages as well.

Is there a cost associated with using the Perplexity MCP Server?

The server is free to use, but requires a Perplexity AI API key which may have its own usage limits.

How secure is my API key?

The API key is stored securely in the Claude desktop configuration file and is passed to the server as an environment variable.7:["$","div",null,{"className":"container mx-auto flex flex-col gap-4","children":["$L26","$L27",["$","$L28",null,{"currentProject":{"id":1173,"uuid":"ecb19324-a1bb-45a9-8597-c67333059990","name":"PoliTwit1984_mcp-perplexity-server","title":"Perplexity MCP Server","description":"Mirror of","avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","created_at":"2025-01-28T02:35:58.881Z","updated_at":"2025-02-23T07:13:18.407Z","status":"created","author_name":"MCP-Mirror","author_avatar_url":"https://avatars.githubusercontent.com/u/192820360?v=4","tags":"mathgpt,math-solver,math-assistant","category":"developer-tools","is_featured":false,"sort":1,"url":"https://github.com/MCP-Mirror/PoliTwit1984_mcp-perplexity-server","target":"_self","content":"$29","summary":"$2a","img_url":null,"type":null,"metadata":null,"user_uuid":null,"tools":null,"sse_url":null,"sse_provider":null,"sse_params":null,"is_official":false,"server_command":null,"server_params":null,"server_config":null,"allow_call":false,"is_innovation":false,"is_dxt":false,"dxt_manifest":null,"dxt_file_url":null,"is_audit":false},"randomProjects":[],"currentServerKey":"$undefined"}]]}]