基本能力
产品定位
Perplexity MCP Zerver 是一个研究级别的 Model Context Protocol (MCP) 服务器实现,通过无API密钥的方式与Perplexity网站交互,提供AI驱动的研究能力。
核心功能
- 🔍 Web搜索集成:通过Perplexity的Web界面进行搜索。
- 💬 持久化聊天历史:支持对话上下文。
- 📄 文档检索、API查找和代码分析工具。
- 🚫 无需API密钥(依赖Web交互)。
- 🛠️ TypeScript优先实现。
- 🌐 使用Puppeteer进行浏览器自动化。
适用场景
- 开发和研究场景中的Web搜索和文档检索。
- 代码分析和API查找。
- 与AI助手的持续对话。
工具列表
- Search (
search
):在Perplexity.ai上执行搜索查询,支持brief
、normal
或detailed
响应。 - Get Documentation (
get_documentation
):请求Perplexity提供技术/库的文档和示例。 - Find APIs (
find_apis
):根据需求和上下文查找和评估API。 - Check Deprecated Code (
check_deprecated_code
):分析代码片段中的废弃特性。 - Extract URL Content (
extract_url_content
):从URL提取主要内容文本,支持递归链接探索。 - Chat (
chat_perplexity
):与Perplexity AI进行持续对话,本地存储聊天历史。
常见问题解答
- 依赖问题:确保已安装Node.js,Puppeteer会自动下载兼容的浏览器版本。
- 配置问题:确保在MCP配置文件中正确指定了
index.js
的绝对路径。 - 使用限制:该工具依赖于Perplexity网站的结构稳定性,使用时需遵守其服务条款。
使用教程
使用依赖
- 确保已安装Node.js。
安装教程
- 克隆或下载仓库:
bash
git clone https://github.com/wysh3/perplexity-mcp-zerver.git
cd perplexity-mcp-zerver - 安装依赖:
bash
npm install - 构建服务器:
bash
npm run build
调试方式
- 确保服务器已正确配置在MCP设置文件中。
- 重启IDE或Claude Desktop应用。
- MCP客户端应自动连接到服务器。
- 使用示例命令测试工具功能,如:
bash
"Use perplexity-server search to find the latest news on AI."
"Ask perplexity-server get_documentation about React hooks."
"Start a chat with perplexity-server about quantum computing."