Web search through the Perplexity API, with domain filtering, recency filters and model selection by query intent.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add perplexity-rossh121 --env PERPLEXITY_API_KEY='<PERPLEXITY_API_KEY>' --env PERPLEXITY_MODEL='<PERPLEXITY_MODEL>' -- node /absolute/path/to/perplexity-mcp/build/index.js~/.codex/config.toml
[mcp_servers.perplexity-rossh121]
command = "node"
args = ["/absolute/path/to/perplexity-mcp/build/index.js"]
env = { PERPLEXITY_API_KEY = "<PERPLEXITY_API_KEY>", PERPLEXITY_MODEL = "<PERPLEXITY_MODEL>" }
# codex mcp add perplexity-rossh121 --env PERPLEXITY_API_KEY='<PERPLEXITY_API_KEY>' --env PERPLEXITY_MODEL='<PERPLEXITY_MODEL>' -- node /absolute/path/to/perplexity-mcp/build/index.js~/.cursor/mcp.json
{
"mcpServers": {
"perplexity-rossh121": {
"command": "node",
"args": [
"/absolute/path/to/perplexity-mcp/build/index.js"
],
"env": {
"PERPLEXITY_API_KEY": "<PERPLEXITY_API_KEY>",
"PERPLEXITY_MODEL": "<PERPLEXITY_MODEL>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"perplexity-rossh121": {
"type": "stdio",
"command": "node",
"args": [
"/absolute/path/to/perplexity-mcp/build/index.js"
],
"env": {
"PERPLEXITY_API_KEY": "<PERPLEXITY_API_KEY>",
"PERPLEXITY_MODEL": "<PERPLEXITY_MODEL>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"perplexity-rossh121": {
"command": "node",
"args": [
"/absolute/path/to/perplexity-mcp/build/index.js"
],
"env": {
"PERPLEXITY_API_KEY": "<PERPLEXITY_API_KEY>",
"PERPLEXITY_MODEL": "<PERPLEXITY_MODEL>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"perplexity-rossh121": {
"command": "node",
"args": [
"/absolute/path/to/perplexity-mcp/build/index.js"
],
"env": {
"PERPLEXITY_API_KEY": "<PERPLEXITY_API_KEY>",
"PERPLEXITY_MODEL": "<PERPLEXITY_MODEL>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"perplexity-rossh121": {
"command": "node",
"args": [
"/absolute/path/to/perplexity-mcp/build/index.js"
],
"env": {
"PERPLEXITY_API_KEY": "<PERPLEXITY_API_KEY>",
"PERPLEXITY_MODEL": "<PERPLEXITY_MODEL>"
}
}
}
}Environment variables
PERPLEXITY_API_KEYPERPLEXITY_MODEL
Replace the placeholders with your own credentials and keep them out of version control.