Skip to main content
Glama

Perplexity AI MCP Server

Perplexity AI MCP 服务器

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

目的

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

Related MCP server: Perplexity AI MCP Server

设置

  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 故障。

贡献

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

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

Latest Blog Posts

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/rileyedwards77/perplexity-mcp-server'

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