githubPerplexity API平台的官方MCP服务器实现,通过Sonar模型和搜索API为AI助手提供实时网络搜索、推理和研究能力。
具体实现请参考官方DeepWiki页面。
使用Perplexity搜索API直接进行网络搜索。返回带有元数据的排名搜索结果,非常适合查找最新信息。
通用对话AI工具,使用sonar-pro模型进行实时网络搜索。适用于快速提问和日常搜索。
使用sonar-deep-research模型进行深度综合研究。适合深入分析和详细报告。
使用sonar-reasoning-pro模型进行高级推理和问题解决。完美应对复杂分析任务。
PERPLEXITY_API_KEY=your_key_herePERPLEXITY_TIMEOUT_MS=600000。默认为5分钟。在终端运行:
claude mcp add perplexity --transport stdio --env PERPLEXITY_API_KEY=your_key_here -- npx -y perplexity-mcp

或添加到claude.json:
"mcpServers": {
"perplexity": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"perplexity-mcp"
],
"env": {
"PERPLEXITY_API_KEY": "your_key_here",
"PERPLEXITY_TIMEOUT_MS": "600000"
}
}
}

添加到mcp.json:
{
"mcpServers": {
"perplexity": {
"command": "npx",
"args": ["-y", "@perplexity-ai/mcp-server"],
"env": {
"PERPLEXITY_API_KEY": "your_key_here",
"PERPLEXITY_TIMEOUT_MS": "600000"
}
}
}
}

在终端运行:
codex mcp add perplexity --env PERPLEXITY_API_KEY=your_key_here -- npx -y @perplexity-ai/mcp-server

添加到claude_desktop_config.json:
{
"mcpServers": {
"perplexity": {
"command": "npx",
"args": ["-y", "@perplexity-ai/mcp-server"],
"env": {
"PERPLEXITY_API_KEY": "your_key_here",
"PERPLEXITY_TIMEOUT_MS": "600000"
}
}
}
}

对于任何兼容MCP的客户端,使用:
npx @perplexity-ai/mcp-server
PERPLEXITY_API_KEYPERPLEXITY_TIMEOUT_MS值如需支持,请访问community.perplexity.ai或提交问题。