Coding With Perplexity AI
About
Enables intelligent code analysis and debugging through the Perplexity AI's API, offering detailed error analysis, pattern detection, and comprehensive solutions, with integration support for the Claude desktop client.
Details
- Author
- politwit1984
- Repository
- joewilsonai/mcp-perplexity-server
- GitHub stars
- 10
- License
- MIT License
- Categories
- Productivity, Design, Developer Tools, AI, Project Management, Frontend, Infrastructure
Jump to
- 🐛 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
Setting up with Highlight
This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:
- Download and install Highlight from highlightai.com/download
- Navigate to the plugins tab and select "Add Custom Plugin"
-
Configure the plugin with the settings below
Plugin Name
Coding With Perplexity AICommand (node, npx, python, etc.)nodeArguments-
Argument 1
/absolute/path/to/mcp-perplexity-server/build/index.js
Environment-
PERPLEXITY_API_KEY
your-perplexity-api-key
Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.
-
Argument 1
- Enable "Start Automatically" if you want the plugin to start when Highlight launches
From the repository
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
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.
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"coding with perplexity ai": {
"env": {
"PERPLEXITY_API_KEY": "your-perplexity-api-key"
},
"args": [
"/absolute/path/to/mcp-perplexity-server/build/index.js"
],
"command": "node"
}
}
}
Linux
{
"env": {
"PERPLEXITY_API_KEY": "your-perplexity-api-key"
},
"args": [
"/absolute/path/to/mcp-perplexity-server/build/index.js"
],
"command": "node"
}
Macos
{
"env": {
"PERPLEXITY_API_KEY": "your-perplexity-api-key"
},
"args": [
"/absolute/path/to/mcp-perplexity-server/build/index.js"
],
"command": "node"
}
Windows
{
"env": {
"PERPLEXITY_API_KEY": "your-perplexity-api-key"
},
"args": [
"/absolute/path/to/mcp-perplexity-server/build/index.js"
],
"command": "node"
}
<div align="center">
🔍 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.
<a href="https://glama.ai/mcp/servers/oxchzx8c75"></a>
</div>
---
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
- 🧠 second-opinion-mcp-server (⭐ 16) — Multi-source: Gemini + Perplexity + Stack Overflow
- 🐙 github-meta-mcp-server — Natural-language GitHub repo management
License
MIT
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.





