Perplexity AI MCP Server

by fr0ziii
Verified

remote-capable server

The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.

Integrations

  • Used as an HTTP client to communicate with the Perplexity AI API, enabling the server to make requests to Perplexity's endpoints.

  • Required for running the MCP server, providing the JavaScript runtime environment for the server application.

  • Used for package management and running the server via scripts defined in the project.

Perplexity AI MCP 服务器

此代码库包含模型上下文协议 (MCP) 服务器的源代码,该服务器提供对 Perplexity AI API 的访问。该服务器允许用户通过各种工具与 Perplexity AI 进行交互,包括聊天、搜索和检索文档。

目的

该服务器简化了 Perplexity AI 与基于 MCP 的系统的集成,并提供了一种便捷且标准化的方式来访问 Perplexity AI 的功能。

设置

  1. **安装 Node.js 和 npm:**确保您的系统上安装了 Node.js 和 npm。
  2. **克隆存储库:**将此存储库克隆到本地计算机。
  3. **安装依赖项:**导航到项目目录并运行npm install
  4. **配置 API 密钥:**PERPLEXITY_API_KEY环境变量设置为您的 Perplexity API 密钥。
  5. **运行服务器:**运行npm start启动服务器。

用法

该服务器提供了一些可通过 MCP 系统访问的工具。有关如何使用这些工具的详细信息,请参阅 MCP 文档。

使用的技术

  • TypeScript
  • @modelcontextprotocol/sdk
  • axios

已知问题

  • Perplexity API 可能不太可靠。我们提供了错误处理功能,以便妥善处理 API 故障。

贡献

欢迎贡献!请打开一个问题或提交一个拉取请求。

You must be authenticated.

A
security – no known vulnerabilities
F
license - not found
A
quality - confirmed to work

该服务器提供对 Perplexity AI API 的访问,从而实现在基于 MCP 的系统内通过聊天、搜索和文档检索进行交互。

  1. Purpose
    1. Setup
      1. Usage
        1. Technologies Used
          1. Known Issues
            1. Contributing
              ID: s053f29pye