You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+5Lines changed: 5 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -29,6 +29,7 @@ Advanced reasoning and problem-solving using the `sonar-reasoning-pro` model. Pe
29
29
### Get Your API Key
30
30
1. Get your Perplexity API Key from the [API Portal](https://www.perplexity.ai/account/api/group)
31
31
2. Set it as an environment variable: `PERPLEXITY_API_KEY=your_key_here`
32
+
3. (Optional) Set a timeout for requests: `PERPLEXITY_TIMEOUT_MS=600000`. The default is 5 minutes.
32
33
33
34
### Claude Code
34
35
@@ -51,6 +52,7 @@ Or add to your `claude.json`:
51
52
],
52
53
"env": {
53
54
"PERPLEXITY_API_KEY": "your_key_here",
55
+
"PERPLEXITY_TIMEOUT_MS": "600000"
54
56
}
55
57
}
56
58
}
@@ -68,6 +70,7 @@ Add to your `mcp.json`:
68
70
"args": ["-y", "@perplexity-ai/mcp-server"],
69
71
"env": {
70
72
"PERPLEXITY_API_KEY": "your_key_here",
73
+
"PERPLEXITY_TIMEOUT_MS": "600000"
71
74
}
72
75
}
73
76
}
@@ -86,6 +89,7 @@ Add to your `claude_desktop_config.json`:
86
89
"args": ["-y", "@perplexity-ai/mcp-server"],
87
90
"env": {
88
91
"PERPLEXITY_API_KEY": "your_key_here",
92
+
"PERPLEXITY_TIMEOUT_MS": "600000"
89
93
}
90
94
}
91
95
}
@@ -105,6 +109,7 @@ npx @perplexity-ai/mcp-server
105
109
-**API Key Issues**: Ensure `PERPLEXITY_API_KEY` is set correctly
106
110
-**Connection Errors**: Check your internet connection and API key validity
107
111
-**Tool Not Found**: Make sure the package is installed and the command path is correct
112
+
-**Timeout Errors**: For very long research queries, set `PERPLEXITY_TIMEOUT_MS` to a higher value
108
113
109
114
For support, visit [community.perplexity.ai](https://community.perplexity.ai) or [file an issue](https://github.com/perplexityai/modelcontextprotocol/issues).
0 commit comments