Skip to main content
Glama

Perplexity MCP Server

Perplexity MCP Zerver 📋

研究级模型上下文协议 (MCP) 服务器实现,通过与 Perplexity 网站交互提供 AI 驱动的研究功能,而无需 API 密钥。

特征

  • 🔍 通过 Perplexity 的网络界面进行网络搜索集成。
  • 💬 持久的聊天历史记录,用于对话上下文。
  • 📄 用于文档检索、API 查找和代码分析的工具。
  • 🚫 无需 API 密钥(依赖于网络交互)。
  • 🛠️ TypeScript 优先实现。
  • 🌐 使用 Puppeteer 实现浏览器自动化。

工具

在 Perplexity.ai 上执行搜索查询。支持briefnormaldetailed响应。返回原始文本输出。

2. 获取文档( get_documentation

请求 Perplexity 提供某项技术/库的文档和示例,可选择关注特定上下文。返回原始文本输出。

3. 查找 API( find_apis

请求 Perplexity 根据需求和上下文查找并评估 API。返回原始文本输出。

4. 检查弃用代码( check_deprecated_code

请求 Perplexity 分析代码片段,查找特定技术环境下已弃用的功能。返回原始文本输出。

5.提取URL内容( extract_url_content

使用浏览器自动化和 Mozilla 的 Readability 从 URL 中提取文章正文内容。通过 gitingest.com 处理 GitHub 仓库。支持递归链接探索直至深度。返回包含内容和元数据的结构化 JSON 数据。

6.聊天( chat_perplexity

维护与 Perplexity AI 的持续对话。聊天记录存储在项目目录下的chat_history.db中。返回一个包含chat_idresponse字符串化 JSON 对象

安装

只需复制📋并粘贴自述文件,然后让 AI 处理其余部分

  1. 克隆或下载此存储库:
git clone https://github.com/wysh3/perplexity-mcp-zerver.git cd perplexity-mcp-zerver
  1. 安装依赖项:
npm install
  1. 构建服务器:
npm run build

重要提示:请确保已安装 Node.js。Puppeteer 会在安装过程中根据需要下载兼容的浏览器版本。构建并配置项目后,请重新启动 IDE/应用程序以使更改生效。

配置

将服务器添加到您的 MCP 配置文件(例如,VS Code 扩展的cline_mcp_settings.json或桌面应用程序的claude_desktop_config.json )。

重要提示:/path/to/perplexity-mcp-zerver/build/index.js替换为系统上构建的index.js文件的绝对路径

Cline/RooCode 扩展的示例:

{ "mcpServers": { "perplexity-server": { "command": "node", "args": [ "/full/path/to/your/perplexity-mcp-zerver/build/index.js" // <-- Replace this path! (in case of windows for ex: "C:\\Users\\$USER\\Documents\\Cline\\MCP\\perplexity-mcp-zerver\\build\\index.js" ], "env": {}, "disabled": false, "alwaysAllow": [], "autoApprove": [], "timeout": 300 } } }

克劳德桌面示例:

{ "mcpServers": { "perplexity-server": { "command": "node", "args": [ "/full/path/to/your/perplexity-mcp-zerver/build/index.js" // <-- Replace this path! ], "env": {}, "disabled": false, "alwaysAllow": [] } } }

用法

  1. 确保服务器在您的 MCP 设置文件中配置正确。
  2. 重新启动您的 IDE(例如带有 Cline/RooCode 扩展的 VS Code)或 Claude Desktop 应用程序。
  3. MCP 客户端应自动连接到服务器。
  4. 您现在可以要求连接的 AI 助手(如 Claude)使用这些工具,例如:
    • “使用 perplexity-server 搜索来查找有关 AI 的最新消息。”
    • “向 perplexity-server get_documentation 询问有关 React hooks 的信息。”
    • “开始与 perplexity-server 讨论量子计算。”

致谢

感谢 DaInfernalCoder:

执照

该项目根据 GNU 通用公共许可证 v3.0 获得许可 - 有关详细信息,请参阅LICENSE.md文件。

免责声明

本项目通过网页自动化工具 (Puppeteer) 与 Perplexity 网站交互。本项目仅用于教育和研究目的。网页抓取和自动化操作可能违反目标网站的服务条款。作者不认可或鼓励任何未经授权的自动化操作或违反服务条款的行为。请负责任地、合乎道德地使用本项目。本服务器的稳定性取决于 Perplexity 网站结构的一致性。

-
security - not tested
A
license - permissive license
-
quality - not tested

local-only server

The server can only run on the client's local machine because it depends on local resources.

利用 Perplexity 的高级 mcp 服务器,无需 API 密钥

  1. 特征
    1. 工具
      1. 搜索( search )
      2. 获取文档( get_documentation )
      3. 查找 API( find_apis )
      4. 检查弃用代码( check_deprecated_code )
      5. 5.提取URL内容( extract_url_content )
      6. 6.聊天( chat_perplexity )
    2. 安装
      1. 配置
        1. 用法
          1. 致谢
            1. 执照
              1. 免责声明

                Related MCP Servers

                • -
                  security
                  A
                  license
                  -
                  quality
                  MCP Server for the Perplexity API.
                  Last updated -
                  50
                  Python
                  MIT License
                  • Linux
                  • Apple
                • A
                  security
                  F
                  license
                  A
                  quality
                  An MCP server implementation that enables interaction with the Unstructured API, providing tools to list, create, update, and manage sources, destinations, and workflows.
                  Last updated -
                  39
                  28
                  • Apple
                • A
                  security
                  A
                  license
                  A
                  quality
                  AniList MCP server for accessing AniList API data
                  Last updated -
                  44
                  153
                  23
                  TypeScript
                  MIT License
                  • Apple
                  • Linux

                View all related MCP servers

                MCP directory API

                We provide all the information about MCP servers via our MCP API.

                curl -X GET 'https://glama.ai/api/mcp/v1/servers/wysh3/perplexity-mcp-zerver'

                If you have feedback or need assistance with the MCP directory API, please join our Discord server