Overview
The Perplexity MCP Server works with multiple MCP clients. This guide shows you how to configure each supported client.Before configuring any client, make sure you have your Perplexity API key ready.
Quick Install Options
One-Click Installation
Several clients support one-click installation:Cursor
Install directly in Cursor
VS Code
Install directly in VS Code
Client-Specific Configuration
- Claude Code
- Cursor
- Claude Desktop
- Windsurf
- VS Code
- Codex
Configuration Formats
Different clients use different configuration formats:Additional Environment Variables
You can add any environment variable to theenv object in your configuration:
Troubleshooting
EOF / Initialize Errors
Some strict MCP clients fail becausenpx writes installation messages to stdout.
Solution: Use npx -yq instead of npx -y to suppress output:
Tool Not Found
Check:- Ensure the package is installed correctly
- Verify the command path is correct
- Try running
npx @perplexity-ai/mcp-servermanually to test
API Key Issues
Check:- Ensure
PERPLEXITY_API_KEYis set correctly in theenvobject - Verify your API key is valid at the API Portal
- Make sure there are no extra spaces or quotes in the key
Connection Errors
Check:- Your internet connection
- Your API key validity
- If behind a corporate firewall, see Proxy Setup
Other MCP Clients
Most MCP clients can be manually configured using themcpServers wrapper format (like Cursor, Claude Desktop, and Windsurf). If your client doesn’t work with this format, check its documentation for the correct configuration wrapper.