Skip to content

Commit 05c45e6

Browse files
authored
Update proxy setup instructions in README
1 parent c61ac2a commit 05c45e6

File tree

1 file changed

+10
-17
lines changed

1 file changed

+10
-17
lines changed

README.md

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -136,45 +136,38 @@ If you are running this server at work—especially behind a company firewall or
136136

137137
**1. Get your proxy details**
138138

139-
- Ask your IT department for your HTTP(S) proxy address and port.
139+
- Ask your IT department for your HTTPS proxy address and port.
140140
- You may also need a username and password.
141141

142142
**2. Set the proxy environment variable**
143143

144144
The easiest and most reliable way for Perplexity MCP is to use `PERPLEXITY_PROXY`. For example:
145145

146146
```bash
147-
export PERPLEXITY_PROXY=http://your-proxy-host:8080
147+
export PERPLEXITY_PROXY=https://your-proxy-host:8080
148148
```
149149

150-
- If your proxy needs a username and password, use:
151-
```bash
152-
export PERPLEXITY_PROXY=http://username:password@your-proxy-host:8080
153-
```
150+
If your proxy needs a username and password, use:
151+
152+
```bash
153+
export PERPLEXITY_PROXY=https://username:password@your-proxy-host:8080
154+
```
154155

155156
**3. Alternate: Standard environment variables**
156157

157158
If you'd rather use the standard variables, we support `HTTPS_PROXY` and `HTTP_PROXY`.
158159

159160
> [!NOTE]
160-
>The server checks proxy settings in this order: `PERPLEXITY_PROXY``HTTPS_PROXY``HTTP_PROXY`. If none are set, it connects directly to the internet.
161+
> The server checks proxy settings in this order: `PERPLEXITY_PROXY``HTTPS_PROXY``HTTP_PROXY`. If none are set, it connects directly to the internet.
162+
> URLs must include `https://`. Typical ports are `8080`, `3128`, and `80`.
161163
162164
## Troubleshooting
163165

164166
- **API Key Issues**: Ensure `PERPLEXITY_API_KEY` is set correctly
165167
- **Connection Errors**: Check your internet connection and API key validity
166168
- **Tool Not Found**: Make sure the package is installed and the command path is correct
167169
- **Timeout Errors**: For very long research queries, set `PERPLEXITY_TIMEOUT_MS` to a higher value
168-
- **Proxy Issues**: If you're behind a corporate firewall and experience connection errors, you likely need to set up a proxy:
169-
- Obtain your proxy server address and port from your IT department.
170-
- Set the environment variable before running the server, e.g.:
171-
- `export PERPLEXITY_PROXY=http://proxy-address:port`
172-
- If authentication is needed: `export PERPLEXITY_PROXY=http://username:password@proxy-address:port`
173-
- Typical proxy ports include 8080, 3128, or 80.
174-
- The format for authenticated proxies is:
175-
`http://username:password@proxy-host:port`
176-
- Double-check the address, port, and credentials if connections fail or time out.
177-
- If you continue to have issues, your firewall may be blocking traffic; ask IT if traffic for `api.perplexity.ai` is being restricted.
170+
- **Proxy Issues**: Verify your `PERPLEXITY_PROXY` or `HTTPS_PROXY` setup and ensure `api.perplexity.ai` isn’t blocked by your firewall.
178171

179172
For support, visit [community.perplexity.ai](https://community.perplexity.ai) or [file an issue](https://github.com/perplexityai/modelcontextprotocol/issues).
180173

0 commit comments

Comments
 (0)