Perplexity MCP 服务器
基于 Perplexity API 的 MCP 服务器,支持领域过滤、搜索时效性和模型路由。
快速入门
-
安装依赖
- 确保已安装 Node.js (v14 或更高版本)。
- 获取 Perplexity API 密钥:https://www.perplexity.ai/settings/api
-
克隆仓库并安装依赖
git clone https://github.com/RossH121/perplexity-mcp.git cd perplexity-mcp npm install npm run build
-
配置环境
- 编辑 Claude 配置文件
~/Library/Application Support/Claude/claude_desktop_config.json
,添加以下内容:{ "mcpServers": { "perplexity-server": { "command": "node", "args": ["/absolute/path/to/perplexity-mcp/build/index.js"], "env": { "PERPLEXITY_API_KEY": "your-api-key-here", "PERPLEXITY_MODEL": "sonar" } } } }
- 替换
/absolute/path/to
为实际路径。
- 编辑 Claude 配置文件
-
运行服务
- 启动 Claude 桌面应用,发送查询即可自动使用 Perplexity 搜索功能。
功能特性
- 支持自动模型选择(如 sonar-deep-research、sonar-reasoning-pro)。
- 提供领域过滤和时效性筛选工具。
- 可手动控制模型选择。
更多详情请查看 README。