Perplexity
About
Integrates with Perplexity Sonar Pro API to provide real-time research assistance for developers, enabling efficient documentation retrieval, API discovery, and code analysis
Details
- Author
- dainfernalcoder
- Repository
- DaInfernalCoder/perplexity-mcp
- GitHub stars
- 173
- License
- MIT License
- Categories
- Search, AI, Other, Productivity, Developer Tools, Design, Workplace, File Management, Knowledge Base, Frontend
- Tags
- #research, #integration
Jump to
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
PerplexityCommand (node, npx, python, etc.)npxArguments-
Argument 1
-y -
Argument 2
perplexity-mcp
Environment-
PERPLEXITY_API_KEY
your_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
1. Prerequisites
- Node.js (from nodejs.org)
- Perplexity API key (from perplexity.ai/settings/api)
- clone the repo somewhere
2. Configure MCP Settings
Add to your MCP settings file (location varies by platform):
{
"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):
{
"mcpServers": {
"perplexity": {
"command": "npx",
"args": [
"-y",
"perplexity-mcp"
],
"env": {
"PERPLEXITY_API_KEY": "your_api_key"
}
}
}
}
In case the MCP Client is not able to parse the Perplexity API Key from the
environment using methods like "${env:PERPLEXITY_API_KEY}" common in modern
AI Coding Agents (e.g. Kiro), there are two fallback solutions:
Command-Line Argument: Pass the API key directly as a command-line argument, and you can even try to see whether "${env:PERPLEXITY_API_KEY}" works in there.
{
"mcpServers": {
"perplexity": {
"command": "node",
"args": [
"/path/to/perplexity-server/build/index.js",
"--api-key",
"your_api_key_here"
],
"disabled": false,
"autoApprove": []
}
}
}
Read an explicit .env File: specify the location of the project .env file with the environment variables and API keys for your current project with the --cwd command-line argument, and the MCP Server will read the .env file from the directory finding the Perplexity API Key from there.
{
"mcpServers": {
"perplexity": {
"command": "node",
"args": [
"/path/to/perplexity-server/build/index.js",
"--cwd",
"/path/to/your/project"
],
"disabled": false,
"autoApprove": []
}
}
}
Priority Order: Command-line argument > Environment variable > .env file with --cwd (path needed)search
Quick search for simple queries and basic information lookup. Parameters: query (string), force_model (optional boolean)
reason
Handles complex, multi-step tasks requiring detailed analysis. Parameters: query (string), force_model (optional boolean)
deep_research
Conducts comprehensive research and generates detailed reports. Parameters: query (string), focus_areas (array of strings), force_model (optional boolean)
Claude Desktop / Cursor
Paste into your MCP client config file to install this server.
{
"mcpServers": {
"perplexity": {
"env": {
"PERPLEXITY_API_KEY": "your_api_key"
},
"args": [
"-y",
"perplexity-mcp"
],
"command": "npx"
}
}
}
Linux
{
"env": {
"PERPLEXITY_API_KEY": "YOUR_API_KEY_HERE"
},
"args": [
"/path/to/perplexity-server/build/index.js"
],
"command": "node"
}
Macos
{
"env": {
"PERPLEXITY_API_KEY": "your_api_key"
},
"args": [
"-y",
"perplexity-mcp"
],
"command": "npx"
}
Windows
{
"env": {
"PERPLEXITY_API_KEY": "YOUR_API_KEY_HERE"
},
"args": [
"/path/to/perplexity-server/build/index.js"
],
"command": "node"
}
Sign in to leave a review
Use Google, GitHub, or an email account so ratings stay tied to real people.
No reviews posted yet.




