基本能力
产品定位
perplexity-mcp 是一个网络搜索服务,通过集成 Perplexity AI 的 API,为用户提供高效、准确的网络信息检索能力。
核心功能
- 网络搜索:通过 Perplexity AI API 执行网络搜索。
- 时间过滤:支持按时间范围(天、周、月、年)过滤搜索结果。
- 多模型支持:可选多种 Perplexity AI 模型,适应不同需求。
适用场景
- 查询特定时间范围内的新闻或信息。
- 快速获取网络上的最新资讯或研究资料。
- 在 Claude 桌面客户端中通过自然语言提示进行搜索。
工具列表
- perplexity_search_web:
- 功能:使用 Perplexity AI 进行网络搜索。
- 参数:
query
(必需):搜索查询字符串。recency
(可选):时间范围过滤(day/week/month/year)。
常见问题解答
- 如何获取 API 密钥:从 Perplexity AI 官网获取。
- 支持的模型:包括 sonar-deep-research、sonar-reasoning-pro、sonar-reasoning、sonar-pro、sonar、r1-1776 等。
使用教程
使用依赖
安装 UV(Fast Python 包和项目管理器):
```bash
使用 Homebrew 在 macOS 上安装
brew install uv
或
bash
在 macOS 和 Linux 上
curl -LsSf https://astral.sh/uv/install.sh | sh
在 Windows 上
powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"
```
安装教程
通过 Smithery 自动安装:
bash
npx -y @smithery/cli install perplexity-mcp --client claude
调试方式
- 在 Claude 桌面客户端中使用提示如 "search the web for news about openai in the past week"。
- 确认工具使用弹窗,点击 "Allow for this chat"。
- 检查搜索结果是否符合预期。