Overview
If you’re running the Perplexity MCP Server behind a company firewall or proxy, you’ll need to configure proxy settings to allow the server to access the Perplexity API.The server supports multiple proxy configuration methods and checks them in priority order:
PERPLEXITY_PROXY → HTTPS_PROXY → HTTP_PROXYQuick Setup
Get your proxy details
Contact your IT department for:
- Proxy host address
- Proxy port (typically
8080,3128, or80) - Username and password (if required)
Proxy Configuration Methods
Method 1: PERPLEXITY_PROXY (Recommended)
The most reliable method specifically for the Perplexity MCP Server.Method 2: Standard Environment Variables
Alternatively, you can use standardHTTPS_PROXY or HTTP_PROXY variables.
Priority Order
The server checks proxy settings in this order:- PERPLEXITY_PROXY - Checked first
- HTTPS_PROXY - Checked if PERPLEXITY_PROXY is not set
- HTTP_PROXY - Checked if neither of the above are set
- Direct connection - If no proxy variables are set
If multiple proxy variables are set, only the highest priority one will be used.
URL Format
Proxy URLs must follow this format:Components
- protocol: Must be
https://(recommended) orhttp:// - username:password: Optional authentication credentials
- host: Proxy server hostname or IP address
- port: Proxy server port (typically
8080,3128, or80)
Examples
Common Proxy Ports
| Port | Common Usage |
|---|---|
8080 | Most common proxy port |
3128 | Squid proxy default |
80 | HTTP proxy |
443 | HTTPS proxy |
8888 | Alternative proxy port |
Complete Configuration Example
Here’s a complete example for a corporate environment:Troubleshooting
Connection Still Fails
Special Characters in Password
If your password contains special characters, URL-encode them:| Character | Encoded |
|---|---|
@ | %40 |
: | %3A |
/ | %2F |
? | %3F |
# | %23 |
& | %26 |
= | %3D |
Timeout Issues
Corporate proxies can be slower. Increase the timeout:Getting Help
If you continue to experience proxy issues:- Check the Troubleshooting guide
- Visit community.perplexity.ai
- File an issue on GitHub
- Your proxy configuration (without credentials)
- Error messages
- Whether you can access other HTTPS sites through the proxy