Install the Perplexity MCP Server
mainThe Perplexity MCP Server provides AI assistants with real-time web search, reasoning, and research capabilities. You can install it in various environments using the following methods:
Claude Code
claude mcp add perplexity --env PERPLEXITY_API_KEY="your_key_here" -- npx -y @perplexity-ai/mcp-serverAlternatively, via the plugin system:
export PERPLEXITY_API_KEY="your_key_here"
claude
# Then run:
# /plugin marketplace add perplexityai/modelcontextprotocol
# /plugin install perplexityCodex
codex mcp add perplexity --env PERPLEXITY_API_KEY="your_key_here" -- npx -y @perplexity-ai/mcp-serverIDEs (Cursor, Claude Desktop, Kiro, Windsurf, VS Code)
Most clients use an mcpServers configuration object. Add the following to your client's configuration file:
| Client | Config File |
|---|---|
| Cursor | ~/.cursor/mcp.json |
| Claude Desktop | claude_desktop_config.json |
| Kiro | .kiro/settings/mcp.json |
| Windsurf | ~/.codeium/windsurf/mcp_config.json |
| VS Code | .vscode/mcp.json |
{
"mcpServers": {
"perplexity": {
"command": "npx",
"args": ["-y", "@perplexity-ai/mcp-server"],
"env": {
"PERPLEXITY_API_KEY": "your_key_here"
}
}
}
}