@perplexity-ai/mcp-server 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +83 -0
- package/package.json +3 -2
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 perplexity
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
ADDED
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
# Perplexity API Platform MCP Server
|
|
2
|
+
|
|
3
|
+
The official MCP server implementation for the Perplexity API Platform, providing AI assistants with real-time web search, reasoning, and research capabilities through Sonar models and the Search API.
|
|
4
|
+
|
|
5
|
+
Please refer to the official [DeepWiki page](https://deepwiki.com/ppl-ai/modelcontextprotocol) for assistance with implementation.
|
|
6
|
+
|
|
7
|
+
## Quick Start
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npx @perplexity-ai/mcp-server
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Available Tools
|
|
14
|
+
|
|
15
|
+
### **perplexity_search**
|
|
16
|
+
Direct web search using the Perplexity Search API. Returns ranked search results with metadata, perfect for finding current information.
|
|
17
|
+
|
|
18
|
+
### **perplexity_ask**
|
|
19
|
+
General-purpose conversational AI with real-time web search using the `sonar-pro` model. Great for quick questions and everyday searches.
|
|
20
|
+
|
|
21
|
+
### **perplexity_research**
|
|
22
|
+
Deep, comprehensive research using the `sonar-deep-research` model. Ideal for thorough analysis and detailed reports.
|
|
23
|
+
|
|
24
|
+
### **perplexity_reason**
|
|
25
|
+
Advanced reasoning and problem-solving using the `sonar-reasoning-pro` model. Perfect for complex analytical tasks.
|
|
26
|
+
|
|
27
|
+
## Configuration
|
|
28
|
+
|
|
29
|
+
### Get Your API Key
|
|
30
|
+
1. Get your Perplexity API Key from the [API Portal](https://www.perplexity.ai/account/api/group)
|
|
31
|
+
2. Set it as an environment variable: `PERPLEXITY_API_KEY=your_key_here`
|
|
32
|
+
|
|
33
|
+
### Claude Desktop
|
|
34
|
+
Add to your `claude_desktop_config.json`:
|
|
35
|
+
|
|
36
|
+
```json
|
|
37
|
+
{
|
|
38
|
+
"mcpServers": {
|
|
39
|
+
"perplexity": {
|
|
40
|
+
"command": "npx",
|
|
41
|
+
"args": ["-y", "@perplexity-ai/mcp-server"],
|
|
42
|
+
"env": {
|
|
43
|
+
"PERPLEXITY_API_KEY": "your_key_here"
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Cursor & Claude Code
|
|
51
|
+
Use the HTTP-based configuration:
|
|
52
|
+
|
|
53
|
+
```json
|
|
54
|
+
{
|
|
55
|
+
"mcpServers": {
|
|
56
|
+
"perplexity": {
|
|
57
|
+
"type": "http",
|
|
58
|
+
"url": "http://localhost:3000/mcp",
|
|
59
|
+
"env": {
|
|
60
|
+
"PERPLEXITY_API_KEY": "your_key_here"
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
### Other MCP Clients
|
|
68
|
+
For any MCP-compatible client, use:
|
|
69
|
+
|
|
70
|
+
```bash
|
|
71
|
+
npx @perplexity-ai/mcp-server
|
|
72
|
+
```
|
|
73
|
+
|
|
74
|
+
## Troubleshooting
|
|
75
|
+
|
|
76
|
+
- **API Key Issues**: Ensure `PERPLEXITY_API_KEY` is set correctly
|
|
77
|
+
- **Connection Errors**: Check your internet connection and API key validity
|
|
78
|
+
- **Tool Not Found**: Make sure the package is installed and the command path is correct
|
|
79
|
+
|
|
80
|
+
For support, visit [community.perplexity.ai](https://community.perplexity.ai) or [file an issue](https://github.com/perplexityai/modelcontextprotocol/issues).
|
|
81
|
+
|
|
82
|
+
---
|
|
83
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@perplexity-ai/mcp-server",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Official MCP server for Perplexity API Platform",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
|
@@ -27,7 +27,8 @@
|
|
|
27
27
|
"perplexity-mcp": "dist/index.js"
|
|
28
28
|
},
|
|
29
29
|
"files": [
|
|
30
|
-
"dist"
|
|
30
|
+
"dist",
|
|
31
|
+
"README.md"
|
|
31
32
|
],
|
|
32
33
|
"scripts": {
|
|
33
34
|
"build": "tsc && shx chmod +x dist/*.js",
|