Perplexity MCP Server
Perplexity MCP Zerver 📋
研究级模型上下文协议 (MCP) 服务器实现,通过与 Perplexity 网站交互提供 AI 驱动的研究功能,而无需 API 密钥。
特征
🔍 通过 Perplexity 的网络界面进行网络搜索集成。
💬 持久的聊天历史记录,用于对话上下文。
📄 用于文档检索、API 查找和代码分析的工具。
🚫 无需 API 密钥(依赖于网络交互)。
🛠️ TypeScript 优先实现。
🌐 使用 Puppeteer 实现浏览器自动化。
Related MCP server: Perplexity AI MCP Server
工具
1. 搜索( search )
在 Perplexity.ai 上执行搜索查询。支持brief 、 normal或detailed响应。返回原始文本输出。
2. 获取文档( get_documentation )
请求 Perplexity 提供某项技术/库的文档和示例,可选择关注特定上下文。返回原始文本输出。
3. 查找 API( find_apis )
请求 Perplexity 根据需求和上下文查找并评估 API。返回原始文本输出。
4. 检查弃用代码( check_deprecated_code )
请求 Perplexity 分析代码片段,查找特定技术环境下已弃用的功能。返回原始文本输出。
5.提取URL内容( extract_url_content )
使用浏览器自动化和 Mozilla 的 Readability 从 URL 中提取文章正文内容。通过 gitingest.com 处理 GitHub 仓库。支持递归链接探索直至深度。返回包含内容和元数据的结构化 JSON 数据。
6.聊天( chat_perplexity )
维护与 Perplexity AI 的持续对话。聊天记录存储在项目目录下的chat_history.db中。返回一个包含chat_id和response字符串化 JSON 对象。
安装
只需复制📋并粘贴自述文件,然后让 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
}
}
}克劳德桌面示例:
{
"mcpServers": {
"perplexity-server": {
"command": "node",
"args": [
"/full/path/to/your/perplexity-mcp-zerver/build/index.js" // <-- Replace this path!
],
"env": {},
"disabled": false,
"alwaysAllow": []
}
}
}用法
确保服务器在您的 MCP 设置文件中配置正确。
重新启动您的 IDE(例如带有 Cline/RooCode 扩展的 VS Code)或 Claude Desktop 应用程序。
MCP 客户端应自动连接到服务器。
您现在可以要求连接的 AI 助手(如 Claude)使用这些工具,例如:
“使用 perplexity-server 搜索来查找有关 AI 的最新消息。”
“向 perplexity-server get_documentation 询问有关 React hooks 的信息。”
“开始与 perplexity-server 讨论量子计算。”
致谢
感谢 DaInfernalCoder:
执照
该项目根据 GNU 通用公共许可证 v3.0 获得许可 - 有关详细信息,请参阅LICENSE.md文件。
免责声明
本项目通过网页自动化工具 (Puppeteer) 与 Perplexity 网站交互。本项目仅用于教育和研究目的。网页抓取和自动化操作可能违反目标网站的服务条款。作者不认可或鼓励任何未经授权的自动化操作或违反服务条款的行为。请负责任地、合乎道德地使用本项目。本服务器的稳定性取决于 Perplexity 网站结构的一致性。
Available Tools
6 toolschat_perplexityB
Automatically call this tool for interactive, conversational queries. This tool leverages Perplexitys web search capabilities to provide real-time information and maintains conversation history using an optional chat ID for contextual follow-ups.
Inputs: message (required), chat_id. Returns: Describes the structure of the JSON object returned within the response text fi…
check_deprecated_codeA
Automatically call this tool when reviewing legacy code, planning upgrades, or encountering warnings with real time web access. Helps identify technical debt. Example: During code reviews or before upgrading dependencies.
Inputs: code (required), technology. Returns: response
extract_url_contentA
Uses browser automation (Puppeteer) and Mozilla's Readability library to extract the main article text content from a given URL. Handles dynamic JavaScript rendering and includes fallback logic. For GitHub repository URLs, it attempts to fetch structured content via gitingest.com. Performs a pre-check for non-HTML content types and checks HTTP status after navigation. Ideal for getting clean text from articles/blog posts. Note: May struggle to isolate only core content on complex homepages or dashboards, potentially including UI elements.
Inputs: url (required), depth. Returns: Returns a JSON object with extraction status and content for the URL(s) explore…
find_apisB
Automatically call this tool when needing external services or real time current data (like API info, latest versions, etc.) from web. Compares options based on requirements. Example: When building a shopping site, ask "Find product image APIs with free tiers".
Inputs: requirement (required), context. Returns: response
get_documentationA
Automatically call this tool when working with unfamiliar APIs/libraries, needing usage examples, or checking version specifics as this can access web. Example: When adding a payment gateway, ask "Get Stripe API documentation for creating charges".
Inputs: query (required), context. Returns: response
searchB
Performs a web search using Perplexity AI based on the provided query and desired detail level. Useful for general knowledge questions, finding information, or getting different perspectives.
Inputs: query (required), detail_level, stream. Returns: response
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
The tools have distinct primary purposes (e.g., chat, code review, content extraction, API discovery, documentation lookup, general search), but there is some functional overlap. For instance, 'chat_perplexity' and 'search' both perform web searches, and 'find_apis' and 'get_documentation' both relate to API information, which could cause confusion for an agent in selecting the most appropriate tool for a given task.
Most tool names follow a consistent verb_noun pattern (e.g., 'extract_url_content', 'find_apis', 'get_documentation', 'check_deprecated_code'), which aids readability. However, 'chat_perplexity' deviates slightly by using a noun_verb structure, and 'search' is a standalone verb without a noun, creating minor inconsistencies in the naming convention.
With 6 tools, the count is well-scoped for a server focused on web-based information retrieval and code assistance. Each tool appears to serve a specific function within this domain, avoiding bloat while covering key areas like conversation, search, content extraction, and technical support, making the set manageable and purposeful.
The tool set covers a broad range of web interaction and code-related tasks, including conversational search, content extraction, API discovery, documentation access, and code review. A minor gap exists in lacking explicit tools for updating or managing retrieved information (e.g., saving or organizing results), but agents can likely work around this using the provided tools effectively for most workflows.
Maintenance
Related MCP Connectors
MCP server for AI dialogue using various LLM models via AceDataCloud
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
An MCP server that gives your AI access to the source code and docs of all public github repos
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP Server for the Perplexity API.24 PyPI66MIT
- AlicenseBqualityDmaintenanceAn MCP server integrating Perplexity AI's API to offer advanced search capabilities with support for multiple models and result configuration.11MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI agents to perform search-augmented queries and deep multi-source research using the Perplexity API.26Apache 2.0
- AlicenseAqualityDmaintenanceAn MCP server that enables AI assistants to query Perplexity AI for web-grounded answers with citations and advanced search filters.3MIT
Appeared in Searches
- Official MCP server that runs locally without an API key or paid plan
- Search functionality without API key requirement
- A server for finding the cheapest flights for a specified date range
- Using a search engine to find evidence to answer a question
- A server for delivering personalized latest news updates