这是一个研究级别的模型上下文协议(MCP)服务器实现,通过与Perplexity网站交互提供由AI驱动的研究能力,而无需API密钥。
search
)在Perplexity.ai上执行搜索查询。支持brief
、normal
或detailed
响应类型。返回原始文本输出。
get_documentation
)请求Perplexity为某项技术/库提供文档和示例,可选地专注于特定上下文。返回原始文本输出。
find_apis
)请求Perplexity根据需求和上下文查找并评估API。返回原始文本输出。
check_deprecated_code
)请求Perplexity在一个特定的技术上下文中分析代码片段中的废弃特性。返回原始文本输出。
extract_url_content
)使用浏览器自动化和Mozilla的Readability从URL中提取主要文章文本内容。通过gitingest.com处理GitHub仓库。支持递归链接探索至指定深度。返回包含内容和元数据的结构化JSON。
chat_perplexity
)与Perplexity AI保持持续对话。将聊天历史本地存储于项目目录下的chat_history.db
文件中。返回一个字符串化的JSON对象,包含chat_id
和response
。
只需复制📋 并粘贴README,让AI处理剩下的事情
git clone https://github.com/wysh3/perplexity-mcp-zerver.git
cd perplexity-mcp-zerver

npm install
npm run build
重要:确保已安装Node.js。如果需要,Puppeteer会在安装过程中下载兼容的浏览器版本。构建并配置项目后,请重启您的IDE/应用程序以使更改生效。
将服务器添加到您的MCP配置文件中(例如,对于VS Code扩展是cline_mcp_settings.json
,对于桌面应用是claude_desktop_config.json
)。
重要:请将/path/to/perplexity-mcp-zerver/build/index.js
替换为您系统中构建好的index.js
文件的绝对路径。
Cline/RooCode扩展示例:
{
"mcpServers": {
"perplexity-server": {
"command": "node",
"args": [
"/full/path/to/your/perplexity-mcp-zerver/build/index.js" // <-- Replace this path! (in case of windows for ex: "C:\\Users\\$USER\\Documents\\Cline\\MCP\\perplexity-mcp-zerver\\build\\index.js"
],
"env": {},
"disabled": false,
"alwaysAllow": [],
"autoApprove": [],
"timeout": 300
}
}
}

Claude Desktop示例:
{
"mcpServers": {
"perplexity-server": {
"command": "node",
"args": [
"/full/path/to/your/perplexity-mcp-zerver/build/index.js" // <-- Replace this path!
],
"env": {},
"disabled": false,
"alwaysAllow": []
}
}
}

感谢DaInfernalCoder:
本项目采用GNU通用公共许可证v3.0发布 - 详情请参阅LICENSE.md文件。部分内容源自MIT许可的工作,具体见许可证文件中的说明。
本项目通过网页自动化技术(Puppeteer)与Perplexity网站交互。仅供教育和研究用途。网络抓取和自动化可能违反目标网站的服务条款。作者不支持也不鼓励任何未经授权的自动化行为或违反服务条款的行为。请负责任且合乎道德地使用。此服务器的稳定性依赖于Perplexity网站结构保持一致。