智能笔记

@DaInfernalCoder/perplexity-mcp
0 Stars 341 次浏览 DaInfernalCoder 更新于 2026-08-23

这个基于 TypeScript 的服务器使用 MCP 概念实现了一个简单的笔记系统,允许用户通过自然语言提示创建、列出和总结文本笔记。

MCP 服务配置

复制以下 JSON 到 OPClaw 或其他 MCP 客户端的配置文件中即可使用

{
  "mcpServers": {
    "perplexity-server": {
      "args": [
        "[path/to/researcher-mcp/index.js]"
      ],
      "autoApprove": [
        "search",
        "get_documentation",
        "find_apis",
        "check_deprecated_code"
      ],
      "command": "node",
      "disabled": false,
      "env": {
        "PERPLEXITY_API_KEY": ""
      }
    }
  }
}

该服务需要配置环境变量:PERPLEXITY_API_KEY

可用工具 (5 个)

该服务在 MCP 协议中暴露的工具,AI 可按需调用

chat_perplexity 2 个参数 需填 1 项

Maintains ongoing conversations with Perplexity AI. Creates new chats or continues existing ones with full history context.

必填参数:message

search 2 个参数 需填 1 项

Perform a general search query to get comprehensive information on any topic

必填参数:query

get_documentation 2 个参数 需填 1 项

Get documentation and usage examples for a specific technology, library, or API

必填参数:query

find_apis 2 个参数 需填 1 项

Find and evaluate APIs that could be integrated into a project

必填参数:requirement

check_deprecated_code 2 个参数 需填 1 项

Check if code or dependencies might be using deprecated features

必填参数:code

服务介绍

我们有一篇关于困惑度MCP的文章!
https://cline.bot/blog/supercharge-cline-3-ways-to-build-better-with-perplexity-mcp

MCP-researcher 服务器

smithery 徽章

在Cline中拥有您自己的研究助手!利用Perplexity的新Sonar Pro API来获取文档、创建最新的API路由,并在使用Cline创建功能时检查已弃用的代码。

包括链式思维推理和通过SQLite实现的本地聊天记录,感谢Lix提供的想法 :)

工具

1. 搜索

执行一般搜索查询以获取任何主题的全面信息。示例展示了如何使用不同的详细程度(简要、正常、详细)来获得定制化的响应。

2. 获取文档

检索特定技术、库或API的文档和使用示例。示例展示了如何获取React钩子的综合文档,包括最佳实践和常见陷阱。

3. 查找API

发现并评估可以集成到项目中的API。示例展示了如何找到支付处理API,并对功能、价格和集成复杂性进行详细分析。

4. 检查已弃用的代码

分析代码中是否有已弃用的功能或模式,并提供迁移指南。示例展示了如何检查React类组件和生命周期方法是否有现代替代方案。

安装

通过Smithery安装

要通过Smithery自动为Claude Desktop安装MCP-researcher Server:

npx -y @smithery/cli install @DaInfernalCoder/perplexity-mcp --client claude

如果你愿意的话,可以直接将这部分粘贴到claude中,AI可以帮助你安装

  1. 首先安装Node.js(如果尚未安装,请访问nodejs.org)

  2. 克隆仓库

  1. 安装依赖项并构建:
    npm install

  2. https://www.perplexity.ai/settings/api获取Perplexity API密钥

  3. 在适当的位置为您的操作系统创建MCP设置文件:
    macOS: ~/Library/Application Support/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
    Windows: %APPDATA%\Cursor\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
    Linux: ~/.config/Cursor/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

  4. 要与Claude Desktop一起使用,请添加服务器配置:

对于MacOS: ~/Library/Application Support/Claude/claude_desktop_config.json
对于Windows: %APPDATA%/Claude/claude_desktop_config.json

  1. 要与Cline一起使用,请将其添加到mcpServers:
{
  "mcpServers": {
    "perplexity-server": {
      "command": "node",
      "args": [
        "[path/to/researcher-mcp/index.js]"
      ],
      "env": {
        "PERPLEXITY_API_KEY": ""
      },
      "disabled": false,
      "autoApprove": [
        "search",
        "get_documentation",
        "find_apis",
        "check_deprecated_code"
      ]
    }
  }
}
  1. 构建服务器:
    npm run build

星标历史

Star History Chart

请确保:

  • 将 /absolute/path/to 替换为你克隆仓库的实际路径
  • 将 your-api-key-here 替换为你的 Perplexity API 密钥
  • 保持相同的 autoApprove 设置以保证一致的行为

相关 MCP 服务