Uses the Perplexity API so Claude Desktop can do web research and answer with citations.
Setup
Choose your client, copy the config, then fill in any required environment variables.
claude mcp add perplexity-tool --env PERPLEXITY_API_KEY='<PERPLEXITY_API_KEY>' -- node /full/path/to/perplexity-tool/server.js~/.codex/config.toml
[mcp_servers.perplexity-tool]
command = "node"
args = ["/full/path/to/perplexity-tool/server.js"]
env = { PERPLEXITY_API_KEY = "<PERPLEXITY_API_KEY>" }
# codex mcp add perplexity-tool --env PERPLEXITY_API_KEY='<PERPLEXITY_API_KEY>' -- node /full/path/to/perplexity-tool/server.js~/.cursor/mcp.json
{
"mcpServers": {
"perplexity-tool": {
"command": "node",
"args": [
"/full/path/to/perplexity-tool/server.js"
],
"env": {
"PERPLEXITY_API_KEY": "<PERPLEXITY_API_KEY>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"perplexity-tool": {
"type": "stdio",
"command": "node",
"args": [
"/full/path/to/perplexity-tool/server.js"
],
"env": {
"PERPLEXITY_API_KEY": "<PERPLEXITY_API_KEY>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"perplexity-tool": {
"command": "node",
"args": [
"/full/path/to/perplexity-tool/server.js"
],
"env": {
"PERPLEXITY_API_KEY": "<PERPLEXITY_API_KEY>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"perplexity-tool": {
"command": "node",
"args": [
"/full/path/to/perplexity-tool/server.js"
],
"env": {
"PERPLEXITY_API_KEY": "<PERPLEXITY_API_KEY>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"perplexity-tool": {
"command": "node",
"args": [
"/full/path/to/perplexity-tool/server.js"
],
"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.