https://github.com/DaInfernalCoder/perplexity-mcp
A Model Context Protocol (MCP) server for research and documentation assistance using Perplexity AI. Won 1st @ Cline Hackathon
Science Score: 26.0%
This score indicates how likely this project is to be science-related based on various indicators:
-
○CITATION.cff file
-
✓codemeta.json file
Found codemeta.json file -
✓.zenodo.json file
Found .zenodo.json file -
○DOI references
-
○Academic publication links
-
○Committers with academic emails
-
○Institutional organization owner
-
○JOSS paper metadata
-
○Scientific vocabulary similarity
Low similarity (8.9%) to scientific vocabulary
Repository
A Model Context Protocol (MCP) server for research and documentation assistance using Perplexity AI. Won 1st @ Cline Hackathon
Basic Info
- Host: GitHub
- Owner: DaInfernalCoder
- License: mit
- Language: JavaScript
- Default Branch: main
- Homepage: https://www.youtube.com/watch?v=hNdWjp6uDmE
- Size: 72.3 KB
Statistics
- Stars: 234
- Watchers: 2
- Forks: 23
- Open Issues: 3
- Releases: 1
Metadata Files
README.md
Perplexity MCP Server
An intelligent research assistant powered by Perplexity's specialized AI models. Features automatic query complexity detection to route requests to the most appropriate model for optimal results. Unlike the Official server, it has search capabilities FOR EVERY TASK, essentially
Tools
Quick Note: The Deep Research tool is going to timeout with some tools like cline, but not with others like cursor due to implementation differences, but the reason tool makes up for it.
1. Search (Sonar Pro)
Quick search for simple queries and basic information lookup. Best for straightforward questions that need concise, direct answers.
javascript
const result = await use_mcp_tool({
server_name: "perplexity",
tool_name: "search",
arguments: {
query: "What is the capital of France?",
force_model: false // Optional: force using this model even if query seems complex
}
});
2. Reason (Sonar Reasoning Pro)
Handles complex, multi-step tasks requiring detailed analysis. Perfect for explanations, comparisons, and problem-solving.
javascript
const result = await use_mcp_tool({
server_name: "perplexity",
tool_name: "reason",
arguments: {
query: "Compare and contrast REST and GraphQL APIs, explaining their pros and cons",
force_model: false // Optional: force using this model even if query seems simple
}
});
3. Deep Research (Sonar Deep Research)
Conducts comprehensive research and generates detailed reports. Ideal for in-depth analysis of complex topics.
javascript
const result = await use_mcp_tool({
server_name: "perplexity",
tool_name: "deep_research",
arguments: {
query: "The impact of quantum computing on cryptography",
focus_areas: [
"Post-quantum cryptographic algorithms",
"Timeline for quantum threats",
"Practical mitigation strategies"
],
force_model: false // Optional: force using this model even if query seems simple
}
});
Intelligent Model Selection
The server automatically analyzes query complexity to route requests to the most appropriate model:
Simple Queries → Sonar Pro
- Basic information lookup
- Straightforward questions
- Quick facts
Complex Queries → Sonar Reasoning Pro
- How/why questions
- Comparisons
- Step-by-step explanations
- Problem-solving tasks
Research Queries → Sonar Deep Research
- In-depth analysis
- Comprehensive research
- Detailed investigations
- Multi-faceted topics
You can override the automatic selection using force_model: true in any tool's arguments.
Setup
Prerequisites
- Node.js (from nodejs.org)
- Perplexity API key (from perplexity.ai/settings/api)
- clone the repo somewhere
Configure MCP Settings
Add to your MCP settings file (location varies by platform):
json
{
"mcpServers": {
"perplexity": {
"command": "node",
"args": ["/path/to/perplexity-server/build/index.js"],
"env": {
"PERPLEXITY_API_KEY": "YOUR_API_KEY_HERE"
},
"disabled": false,
"autoApprove": []
}
}
}
Or use NPX to not have to install it locally (recommended for macos):
json
{
"mcpServers": {
"perplexity": {
"command": "npx",
"args": [
"-y",
"perplexity-mcp"
],
"env": {
"PERPLEXITY_API_KEY": "your_api_key"
}
}
}
}
Owner
- Login: DaInfernalCoder
- Kind: user
- Repositories: 1
- Profile: https://github.com/DaInfernalCoder
GitHub Events
Total
- Issues event: 11
- Watch event: 124
- Issue comment event: 12
- Push event: 10
- Pull request event: 5
- Fork event: 13
Last Year
- Issues event: 11
- Watch event: 124
- Issue comment event: 12
- Push event: 10
- Pull request event: 5
- Fork event: 13
Committers
Last synced: about 1 year ago
Top Committers
| Name | Commits | |
|---|---|---|
| Sumit Datta | 1****r | 28 |
| Henry Mao | 1****a | 6 |
| Jack Steam | j****v@g****m | 1 |
| Frank Fiegel | 1****e | 1 |
Issues and Pull Requests
Last synced: 11 months ago
All Time
- Total issues: 7
- Total pull requests: 11
- Average time to close issues: 11 days
- Average time to close pull requests: 7 days
- Total issue authors: 7
- Total pull request authors: 6
- Average comments per issue: 0.71
- Average comments per pull request: 0.64
- Merged pull requests: 9
- Bot issues: 0
- Bot pull requests: 0
Past Year
- Issues: 7
- Pull requests: 11
- Average time to close issues: 11 days
- Average time to close pull requests: 7 days
- Issue authors: 7
- Pull request authors: 6
- Average comments per issue: 0.71
- Average comments per pull request: 0.64
- Merged pull requests: 9
- Bot issues: 0
- Bot pull requests: 0
Top Authors
Issue Authors
- surapuramakhil (1)
- adenta (1)
- michael-ford (1)
- jelling (1)
- kr3t3n (1)
- Adricz22 (1)
- jakobsturm (1)
Pull Request Authors
- calclavia (3)
- cpbotha (3)
- lwsinclair (2)
- jacksteamdev (1)
- punkpeye (1)
- DaInfernalCoder (1)
Top Labels
Issue Labels
Pull Request Labels
Dependencies
- @types/node 20.17.14 development
- typescript 5.7.3 development
- undici-types 6.19.8 development
- @modelcontextprotocol/sdk 0.6.0
- asynckit 0.4.0
- axios 1.7.9
- bytes 3.1.2
- combined-stream 1.0.8
- content-type 1.0.5
- delayed-stream 1.0.0
- depd 2.0.0
- follow-redirects 1.15.9
- form-data 4.0.1
- http-errors 2.0.0
- iconv-lite 0.6.3
- inherits 2.0.4
- mime-db 1.52.0
- mime-types 2.1.35
- proxy-from-env 1.1.0
- raw-body 3.0.0
- safer-buffer 2.1.2
- setprototypeof 1.2.0
- statuses 2.0.1
- toidentifier 1.0.1
- unpipe 1.0.0
- zod 3.24.1
- @types/node ^20.11.24 development
- typescript ^5.3.3 development
- @modelcontextprotocol/sdk 0.6.0
- axios ^1.7.9