Research and documentation assistance powered by Perplexity AI.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add researcher --env PERPLEXITY_API_KEY='<PERPLEXITY_API_KEY>' -- npx -y perplexity-mcp~/.codex/config.toml
[mcp_servers.researcher]
command = "npx"
args = ["-y", "perplexity-mcp"]
env = { PERPLEXITY_API_KEY = "<PERPLEXITY_API_KEY>" }
# codex mcp add researcher --env PERPLEXITY_API_KEY='<PERPLEXITY_API_KEY>' -- npx -y perplexity-mcp~/.cursor/mcp.json
{
"mcpServers": {
"researcher": {
"command": "npx",
"args": [
"-y",
"perplexity-mcp"
],
"env": {
"PERPLEXITY_API_KEY": "<PERPLEXITY_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"researcher": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"perplexity-mcp"
],
"env": {
"PERPLEXITY_API_KEY": "<PERPLEXITY_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"researcher": {
"command": "npx",
"args": [
"-y",
"perplexity-mcp"
],
"env": {
"PERPLEXITY_API_KEY": "<PERPLEXITY_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"researcher": {
"command": "npx",
"args": [
"-y",
"perplexity-mcp"
],
"env": {
"PERPLEXITY_API_KEY": "<PERPLEXITY_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"researcher": {
"command": "npx",
"args": [
"-y",
"perplexity-mcp"
],
"env": {
"PERPLEXITY_API_KEY": "<PERPLEXITY_API_KEY>"
}
}
}
}Environment variables
PERPLEXITY_API_KEY
Replace the placeholders with your own credentials and keep them out of version control.