Perplexity MCP Server
joewilsonai/mcp-perplexity-server · 13 stars · JavaScript · MIT
MCP server
Install
The repo has no one-line install. Follow its README.
Files
🔍 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.
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:
- Root-cause analysis of the error
- Step-by-step solution with code examples
- Best practices to prevent the same issue
- 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
- 🧠 second-opinion-mcp-server (⭐ 16) — Multi-source: Gemini + Perplexity + Stack Overflow
- 🐙 github-meta-mcp-server — Natural-language GitHub repo management
License
MIT
Facts
- Kind
- MCP server
- Group
- Uncategorized
- Stars
- 13
- License
- MIT
- Language
- JavaScript
- Last push
- 2026-05-10
- Forks
- 4
- Topics
- mcp, mcp-server, perplexity, search, perplexity-mcp-server
- 1REAio.github.morluto/reaReverse engineer anything from your terminal or agent with one CLI and MCP server.125.3k
- 2com.browser-use/browser-usecom.browser-use/browser-useControl a real Chrome browser to complete any task: fill forms, extract data, book flights.117.7k
- 3World Monitorapp.worldmonitor/mcpLive markets, conflicts, country risk, chokepoints, energy, and China decision signals. 93 tools.88.3k
- 4Scrapling MCP Serverd4vinci/scrapling🕷️ An adaptive Web Scraping framework that handles everything from a single request to a full-scale crawl! Don't be shy, join here: https://discord.gg/EMgGbDceNQ and follow here for daily tips and tricks: https://x.com/Scraplingdev86.9k
- 5Everythingmodelcontextprotocol/serversThis MCP server attempts to exercise all the features of the MCP protocol. It is not intended to be a useful server, but rather a test server for builders of MCP clients. It implements prompts, tools, resources, sampling, and more to showcase MCP capabilities.85.8k
- 6Fetchmodelcontextprotocol/serversA Model Context Protocol server that provides web content fetching capabilities. This server enables LLMs to retrieve and process content from web pages, converting HTML to markdown for easier consumption.85.8k