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
Provides access to the Perplexity AI API, allowing users to interact with Perplexity AI through various tools, including chatting, searching, and retrieving documentation
Perplexity AI MCP 服务器
此代码库包含模型上下文协议 (MCP) 服务器的源代码,该服务器提供对 Perplexity AI API 的访问。该服务器允许用户通过各种工具与 Perplexity AI 进行交互,包括聊天、搜索和检索文档。
目的
该服务器简化了 Perplexity AI 与基于 MCP 的系统的集成,并提供了一种便捷且标准化的方式来访问 Perplexity AI 的功能。
设置
- **安装 Node.js 和 npm:**确保您的系统上安装了 Node.js 和 npm。
- **克隆存储库:**将此存储库克隆到本地计算机。
- **安装依赖项:**导航到项目目录并运行
npm install
。 - **配置 API 密钥:**将
PERPLEXITY_API_KEY
环境变量设置为您的 Perplexity API 密钥。 - **运行服务器:**运行
npm start
启动服务器。
用法
该服务器提供了一些可通过 MCP 系统访问的工具。有关如何使用这些工具的详细信息,请参阅 MCP 文档。
使用的技术
- TypeScript
- @modelcontextprotocol/sdk
- axios
已知问题
- Perplexity API 可能不太可靠。我们提供了错误处理功能,以便妥善处理 API 故障。
贡献
欢迎贡献!请打开一个问题或提交一个拉取请求。
You must be authenticated.
提供一种标准化的方式将 Perplexity AI 的功能(如聊天、搜索和文档访问)集成到基于 MCP 的系统中。