Perplexity AI MCP Server

Perplexity AI MCP Server

site icon
2025.02.17 0
JavaScriptAI集成API服务内容生成
Perplexity AI MCP Server 是一个基于 Model Context Protocol (MCP) 的服务器,提供对 Perplexity AI API 的访问。该服务器简化了 Perplexity AI 与 MCP 系统的集成,为用户提供了标准化的方式来访问 Perplexity AI 的功能,包括聊天、搜索和检索文档等。
View on GitHub

Overview

基本能力

产品定位

Perplexity AI MCP Server 旨在简化 Perplexity AI 与 MCP 系统的集成,提供标准化的 API 访问方式。

核心功能

  • 提供对 Perplexity AI API 的访问
  • 支持聊天、搜索和检索文档等功能
  • 基于 TypeScript 和 @modelcontextprotocol/sdk 开发

适用场景

  • 需要集成 Perplexity AI 功能的 MCP 系统
  • 需要标准化访问 Perplexity AI API 的场景

工具列表

  • 聊天工具:支持与 Perplexity AI 进行交互式聊天
  • 搜索工具:支持通过 Perplexity AI 进行信息搜索
  • 文档检索工具:支持从 Perplexity AI 检索相关文档

常见问题解答

  • Perplexity API 可能不稳定,服务器已包含错误处理机制以优雅处理 API 失败情况

使用教程

使用依赖

  1. 确保已安装 Node.js 和 npm

安装教程

  1. 克隆仓库到本地机器
  2. 进入项目目录并运行 npm install
  3. 设置 PERPLEXITY_API_KEY 环境变量为您的 Perplexity API 密钥
  4. 运行 npm start 启动服务器

调试方式

  • 服务器启动后,可以通过 MCP 系统访问提供的工具
  • 参考 MCP 文档了解如何使用这些工具

许可证

None