Perplexity MCP Server - MCP服务,MCP服务器,MCP教程

基本能力

产品定位

Perplexity MCP Server 是一个基于 Perplexity API 的搜索服务,旨在通过自动模型选择提供高效的网页搜索能力。

核心功能

  • 自动模型选择:根据查询意图自动选择最适合的模型。
  • 多种模型支持:包括 sonar-deep-researchsonar-reasoning-prosonar-reasoningsonar-prosonar
  • 域名过滤:允许或阻止特定域名的搜索结果。
  • 时间过滤:限制搜索结果的发布时间范围。
  • 手动模型控制:可以手动指定使用的模型。

适用场景

  • 深度研究:如学术研究或复杂问题分析。
  • 逻辑推理:解决复杂问题或进行高级推理。
  • 一般搜索:快速获取信息或新闻。
  • 时间敏感查询:如当前事件或突发新闻。

工具列表

  • domain_filter:管理允许或阻止的域名。
  • list_filters:查看当前设置的过滤器。
  • clear_filters:清除所有过滤器。
  • recency_filter:设置或禁用时间过滤器。
  • model_info:查看或设置使用的模型。

常见问题解答

  • 如何获取 API 密钥:访问 Perplexity API 设置页面
  • 如何手动指定模型:使用 model_info 工具设置特定模型。
  • 如何清除过滤器:使用 clear_filters 工具。

使用教程

使用依赖

  • Node.js (v14 或更高版本)
  • Perplexity API 密钥
  • Claude Desktop App

安装教程

  1. 克隆仓库:
    bash
    git clone https://github.com/RossH121/perplexity-mcp.git
    cd perplexity-mcp
  2. 安装依赖:
    bash
    npm install
  3. 构建服务:
    bash
    npm run build

配置

  1. 获取 Perplexity API 密钥。
  2. 将服务添加到 Claude 的配置文件中:
    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"
    }
    }
    }
    }

调试方式

  1. 修改 src/index.ts
  2. 重新构建:
    bash
    npm run build
  3. 重启 Claude 以加载更改。

点击访问

搜索工具

MCP Server Collection - MCP服务,MCP服务器,MCP教程

2025-5-3 4:24:25

搜索工具

Google Scholar MCP Server - MCP服务,MCP服务器,MCP教程

2025-5-3 4:24:32

0 条回复 A文章作者 M管理员
    暂无讨论,说说你的看法吧
个人中心
购物车
优惠劵
今日签到
有新私信 私信列表
搜索