[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"similar-perplexityai--modelcontextprotocol":3,"tool-perplexityai--modelcontextprotocol":64},[4,17,25,39,48,56],{"id":5,"name":6,"github_repo":7,"description_zh":8,"stars":9,"difficulty_score":10,"last_commit_at":11,"category_tags":12,"status":16},1381,"everything-claude-code","affaan-m\u002Feverything-claude-code","everything-claude-code 是一套专为 AI 编程助手（如 Claude Code、Codex、Cursor 等）打造的高性能优化系统。它不仅仅是一组配置文件，而是一个经过长期实战打磨的完整框架，旨在解决 AI 代理在实际开发中面临的效率低下、记忆丢失、安全隐患及缺乏持续学习能力等核心痛点。\n\n通过引入技能模块化、直觉增强、记忆持久化机制以及内置的安全扫描功能，everything-claude-code 能显著提升 AI 在复杂任务中的表现，帮助开发者构建更稳定、更智能的生产级 AI 代理。其独特的“研究优先”开发理念和针对 Token 消耗的优化策略，使得模型响应更快、成本更低，同时有效防御潜在的攻击向量。\n\n这套工具特别适合软件开发者、AI 研究人员以及希望深度定制 AI 工作流的技术团队使用。无论您是在构建大型代码库，还是需要 AI 协助进行安全审计与自动化测试，everything-claude-code 都能提供强大的底层支持。作为一个曾荣获 Anthropic 黑客大奖的开源项目，它融合了多语言支持与丰富的实战钩子（hooks），让 AI 真正成长为懂上",138956,2,"2026-04-05T11:33:21",[13,14,15],"开发框架","Agent","语言模型","ready",{"id":18,"name":19,"github_repo":20,"description_zh":21,"stars":22,"difficulty_score":10,"last_commit_at":23,"category_tags":24,"status":16},3704,"NextChat","ChatGPTNextWeb\u002FNextChat","NextChat 是一款轻量且极速的 AI 助手，旨在为用户提供流畅、跨平台的大模型交互体验。它完美解决了用户在多设备间切换时难以保持对话连续性，以及面对众多 AI 模型不知如何统一管理的痛点。无论是日常办公、学习辅助还是创意激发，NextChat 都能让用户随时随地通过网页、iOS、Android、Windows、MacOS 或 Linux 端无缝接入智能服务。\n\n这款工具非常适合普通用户、学生、职场人士以及需要私有化部署的企业团队使用。对于开发者而言，它也提供了便捷的自托管方案，支持一键部署到 Vercel 或 Zeabur 等平台。\n\nNextChat 的核心亮点在于其广泛的模型兼容性，原生支持 Claude、DeepSeek、GPT-4 及 Gemini Pro 等主流大模型，让用户在一个界面即可自由切换不同 AI 能力。此外，它还率先支持 MCP（Model Context Protocol）协议，增强了上下文处理能力。针对企业用户，NextChat 提供专业版解决方案，具备品牌定制、细粒度权限控制、内部知识库整合及安全审计等功能，满足公司对数据隐私和个性化管理的高标准要求。",87618,"2026-04-05T07:20:52",[13,15],{"id":26,"name":27,"github_repo":28,"description_zh":29,"stars":30,"difficulty_score":10,"last_commit_at":31,"category_tags":32,"status":16},2268,"ML-For-Beginners","microsoft\u002FML-For-Beginners","ML-For-Beginners 是由微软推出的一套系统化机器学习入门课程，旨在帮助零基础用户轻松掌握经典机器学习知识。这套课程将学习路径规划为 12 周，包含 26 节精炼课程和 52 道配套测验，内容涵盖从基础概念到实际应用的完整流程，有效解决了初学者面对庞大知识体系时无从下手、缺乏结构化指导的痛点。\n\n无论是希望转型的开发者、需要补充算法背景的研究人员，还是对人工智能充满好奇的普通爱好者，都能从中受益。课程不仅提供了清晰的理论讲解，还强调动手实践，让用户在循序渐进中建立扎实的技能基础。其独特的亮点在于强大的多语言支持，通过自动化机制提供了包括简体中文在内的 50 多种语言版本，极大地降低了全球不同背景用户的学习门槛。此外，项目采用开源协作模式，社区活跃且内容持续更新，确保学习者能获取前沿且准确的技术资讯。如果你正寻找一条清晰、友好且专业的机器学习入门之路，ML-For-Beginners 将是理想的起点。",84991,"2026-04-05T10:45:23",[33,34,35,36,14,37,15,13,38],"图像","数据工具","视频","插件","其他","音频",{"id":40,"name":41,"github_repo":42,"description_zh":43,"stars":44,"difficulty_score":45,"last_commit_at":46,"category_tags":47,"status":16},3128,"ragflow","infiniflow\u002Fragflow","RAGFlow 是一款领先的开源检索增强生成（RAG）引擎，旨在为大语言模型构建更精准、可靠的上下文层。它巧妙地将前沿的 RAG 技术与智能体（Agent）能力相结合，不仅支持从各类文档中高效提取知识，还能让模型基于这些知识进行逻辑推理和任务执行。\n\n在大模型应用中，幻觉问题和知识滞后是常见痛点。RAGFlow 通过深度解析复杂文档结构（如表格、图表及混合排版），显著提升了信息检索的准确度，从而有效减少模型“胡编乱造”的现象，确保回答既有据可依又具备时效性。其内置的智能体机制更进一步，使系统不仅能回答问题，还能自主规划步骤解决复杂问题。\n\n这款工具特别适合开发者、企业技术团队以及 AI 研究人员使用。无论是希望快速搭建私有知识库问答系统，还是致力于探索大模型在垂直领域落地的创新者，都能从中受益。RAGFlow 提供了可视化的工作流编排界面和灵活的 API 接口，既降低了非算法背景用户的上手门槛，也满足了专业开发者对系统深度定制的需求。作为基于 Apache 2.0 协议开源的项目，它正成为连接通用大模型与行业专有知识之间的重要桥梁。",77062,3,"2026-04-04T04:44:48",[14,33,13,15,37],{"id":49,"name":50,"github_repo":51,"description_zh":52,"stars":53,"difficulty_score":45,"last_commit_at":54,"category_tags":55,"status":16},519,"PaddleOCR","PaddlePaddle\u002FPaddleOCR","PaddleOCR 是一款基于百度飞桨框架开发的高性能开源光学字符识别工具包。它的核心能力是将图片、PDF 等文档中的文字提取出来，转换成计算机可读取的结构化数据，让机器真正“看懂”图文内容。\n\n面对海量纸质或电子文档，PaddleOCR 解决了人工录入效率低、数字化成本高的问题。尤其在人工智能领域，它扮演着连接图像与大型语言模型（LLM）的桥梁角色，能将视觉信息直接转化为文本输入，助力智能问答、文档分析等应用场景落地。\n\nPaddleOCR 适合开发者、算法研究人员以及有文档自动化需求的普通用户。其技术优势十分明显：不仅支持全球 100 多种语言的识别，还能在 Windows、Linux、macOS 等多个系统上运行，并灵活适配 CPU、GPU、NPU 等各类硬件。作为一个轻量级且社区活跃的开源项目，PaddleOCR 既能满足快速集成的需求，也能支撑前沿的视觉语言研究，是处理文字识别任务的理想选择。",74913,"2026-04-05T10:44:17",[15,33,13,37],{"id":57,"name":58,"github_repo":59,"description_zh":60,"stars":61,"difficulty_score":45,"last_commit_at":62,"category_tags":63,"status":16},2181,"OpenHands","OpenHands\u002FOpenHands","OpenHands 是一个专注于 AI 驱动开发的开源平台，旨在让智能体（Agent）像人类开发者一样理解、编写和调试代码。它解决了传统编程中重复性劳动多、环境配置复杂以及人机协作效率低等痛点，通过自动化流程显著提升开发速度。\n\n无论是希望提升编码效率的软件工程师、探索智能体技术的研究人员，还是需要快速原型验证的技术团队，都能从中受益。OpenHands 提供了灵活多样的使用方式：既可以通过命令行（CLI）或本地图形界面在个人电脑上轻松上手，体验类似 Devin 的流畅交互；也能利用其强大的 Python SDK 自定义智能体逻辑，甚至在云端大规模部署上千个智能体并行工作。\n\n其核心技术亮点在于模块化的软件智能体 SDK，这不仅构成了平台的引擎，还支持高度可组合的开发模式。此外，OpenHands 在 SWE-bench 基准测试中取得了 77.6% 的优异成绩，证明了其解决真实世界软件工程问题的能力。平台还具备完善的企业级功能，支持与 Slack、Jira 等工具集成，并提供细粒度的权限管理，适合从个人开发者到大型企业的各类用户场景。",70612,"2026-04-05T11:12:22",[15,14,13,36],{"id":65,"github_repo":66,"name":67,"description_en":68,"description_zh":69,"ai_summary_zh":70,"readme_en":71,"readme_zh":72,"quickstart_zh":73,"use_case_zh":74,"hero_image_url":75,"owner_login":76,"owner_name":77,"owner_avatar_url":78,"owner_bio":79,"owner_company":80,"owner_location":80,"owner_email":81,"owner_twitter":82,"owner_website":83,"owner_url":84,"languages":85,"stars":98,"forks":99,"last_commit_at":100,"license":101,"difficulty_score":10,"env_os":102,"env_gpu":103,"env_ram":103,"env_deps":104,"category_tags":109,"github_topics":80,"view_count":10,"oss_zip_url":80,"oss_zip_packed_at":80,"status":16,"created_at":110,"updated_at":111,"faqs":112,"releases":143},2518,"perplexityai\u002Fmodelcontextprotocol","modelcontextprotocol","The official MCP server implementation for the Perplexity API Platform","modelcontextprotocol 是 Perplexity API 平台推出的官方 MCP（模型上下文协议）服务器实现，旨在为 AI 助手赋予强大的实时联网搜索、逻辑推理及深度研究能力。通过集成先进的 Sonar 系列模型与搜索 API，它让本地运行的 AI 客户端能够直接访问最新、最准确的网络信息，有效解决了传统大语言模型因训练数据截止而无法获取实时资讯，以及在处理复杂事实核查时容易产生“幻觉”的痛点。\n\n该工具提供了四种核心功能模块：perplexity_search 用于快速获取带元数据的 ranked 搜索结果；perplexity_ask 适合日常问答与即时信息查询；perplexity_research 依托 sonar-deep-research 模型进行详尽的深度分析与报告生成；而 perplexity_reason 则利用 sonar-reasoning-pro 模型处理高难度的逻辑推理与分析任务。此外，它还支持通过 strip_thinking 参数优化上下文令牌消耗，提升运行效率。\n\nmodelcontextprotocol 主要面向开发者、研究人员以及重","modelcontextprotocol 是 Perplexity API 平台推出的官方 MCP（模型上下文协议）服务器实现，旨在为 AI 助手赋予强大的实时联网搜索、逻辑推理及深度研究能力。通过集成先进的 Sonar 系列模型与搜索 API，它让本地运行的 AI 客户端能够直接访问最新、最准确的网络信息，有效解决了传统大语言模型因训练数据截止而无法获取实时资讯，以及在处理复杂事实核查时容易产生“幻觉”的痛点。\n\n该工具提供了四种核心功能模块：perplexity_search 用于快速获取带元数据的 ranked 搜索结果；perplexity_ask 适合日常问答与即时信息查询；perplexity_research 依托 sonar-deep-research 模型进行详尽的深度分析与报告生成；而 perplexity_reason 则利用 sonar-reasoning-pro 模型处理高难度的逻辑推理与分析任务。此外，它还支持通过 strip_thinking 参数优化上下文令牌消耗，提升运行效率。\n\nmodelcontextprotocol 主要面向开发者、研究人员以及重度依赖 AI 辅助工作的专业人士。无论是需要编写代码时查询最新技术文档的程序员，还是需要进行文献综述与数据分析的研究者，都能从中受益。它完美兼容 Cursor、VS Code、Claude Desktop、Windsurf 等主流 AI 开发环境与客户端，配置简便，只需填入 API Key 即可一键启用。对于希望将实时网络智能无缝融入本地工作流的用户而言，这是一个高效且专业的连接桥梁。","# Perplexity API Platform MCP Server\n\n[![Install in Cursor](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fperplexityai_modelcontextprotocol_readme_28a840b32442.png)](https:\u002F\u002Fcursor.com\u002Fen\u002Finstall-mcp?name=perplexity&config=eyJ0eXBlIjoic3RkaW8iLCJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBwZXJwbGV4aXR5LWFpL21jcC1zZXJ2ZXIiXSwiZW52Ijp7IlBFUlBMRVhJVFlfQVBJX0tFWSI6IiJ9fQ==)\n&nbsp;\n[![Install in VS Code](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fperplexityai_modelcontextprotocol_readme_ddb6399414e8.png)](https:\u002F\u002Fvscode.dev\u002Fredirect\u002Fmcp\u002Finstall?name=perplexity&config=%7B%22type%22%3A%22stdio%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40perplexity-ai%2Fmcp-server%22%5D%2C%22env%22%3A%7B%22PERPLEXITY_API_KEY%22%3A%22%22%7D%7D)\n&nbsp;\n[![npm version](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002F%40perplexity-ai%2Fmcp-server?style=for-the-badge&logo=npm&logoColor=white&color=CB3837)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@perplexity-ai\u002Fmcp-server)\n\nThe official MCP server implementation for the Perplexity API Platform, providing AI assistants with real-time web search, reasoning, and research capabilities through Sonar models and the Search API.\n\n## Available Tools\n\n### **perplexity_search**\nDirect web search using the Perplexity Search API. Returns ranked search results with metadata, perfect for finding current information.\n\n### **perplexity_ask**\nGeneral-purpose conversational AI with real-time web search using the `sonar-pro` model. Great for quick questions and everyday searches.\n\n### **perplexity_research**\nDeep, comprehensive research using the `sonar-deep-research` model. Ideal for thorough analysis and detailed reports.\n\n### **perplexity_reason**\nAdvanced reasoning and problem-solving using the `sonar-reasoning-pro` model. Perfect for complex analytical tasks.\n\n> [!TIP]\n> Available as an optional parameter for **perplexity_reason** and **perplexity_research**: `strip_thinking`\n>\n> Set to `true` to remove `\u003Cthink>...\u003C\u002Fthink>` tags from the response, saving context tokens. Default: `false`\n\n## Configuration\n\n### Get Your API Key\n\n1. Get your Perplexity API Key from the [API Portal](https:\u002F\u002Fwww.perplexity.ai\u002Faccount\u002Fapi\u002Fgroup)\n2. Replace `your_key_here` in the configurations below with your API key\n3. (Optional) Set timeout: `PERPLEXITY_TIMEOUT_MS=600000` (default: 5 minutes)\n4. (Optional) Set custom base URL: `PERPLEXITY_BASE_URL=https:\u002F\u002Fyour-custom-url.com` (default: https:\u002F\u002Fapi.perplexity.ai)\n5. (Optional) Set log level: `PERPLEXITY_LOG_LEVEL=DEBUG|INFO|WARN|ERROR` (default: ERROR)\n\n### Claude Code\n\n```bash\nclaude mcp add perplexity --env PERPLEXITY_API_KEY=\"your_key_here\" -- npx -y @perplexity-ai\u002Fmcp-server\n```\n\nOr install via plugin:\n```bash\nexport PERPLEXITY_API_KEY=\"your_key_here\"\nclaude\n# Then run: \u002Fplugin marketplace add perplexityai\u002Fmodelcontextprotocol\n# Then run: \u002Fplugin install perplexity\n```\n\n### Cursor, Claude Desktop & Windsurf\n\nWe recommend using the one-click install badge at the top of this README for Cursor.\n\nFor manual setup, all these clients use the same `mcpServers` format:\n\n| Client | Config File |\n|--------|-------------|\n| Cursor | `~\u002F.cursor\u002Fmcp.json` |\n| Claude Desktop | `claude_desktop_config.json` |\n| Windsurf | `~\u002F.codeium\u002Fwindsurf\u002Fmcp_config.json` |\n\n```json\n{\n  \"mcpServers\": {\n    \"perplexity\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@perplexity-ai\u002Fmcp-server\"],\n      \"env\": {\n        \"PERPLEXITY_API_KEY\": \"your_key_here\"\n      }\n    }\n  }\n}\n```\n\n### VS Code\n\nWe recommend using the one-click install badge at the top of this README for VS Code, or for manual setup, add to `.vscode\u002Fmcp.json`:\n\n```json\n{\n  \"servers\": {\n    \"perplexity\": {\n      \"type\": \"stdio\",\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@perplexity-ai\u002Fmcp-server\"],\n      \"env\": {\n        \"PERPLEXITY_API_KEY\": \"your_key_here\"\n      }\n    }\n  }\n}\n```\n\n### Codex\n\n```bash\ncodex mcp add perplexity --env PERPLEXITY_API_KEY=\"your_key_here\" -- npx -y @perplexity-ai\u002Fmcp-server\n```\n\n### Other MCP Clients\n\nMost clients can be manually configured to use the `mcpServers` wrapper in their configuration file (like Cursor). If your client doesn't work, check its documentation for the correct wrapper format.\n\n### Proxy Setup (For Corporate Networks)\n\nIf you are running this server at work—especially behind a company firewall or proxy—you may need to tell the program how to send its internet traffic through your network's proxy. Follow these steps:\n\n**1. Get your proxy details**\n\n- Ask your IT department for your HTTPS proxy address and port.\n- You may also need a username and password.\n\n**2. Set the proxy environment variable**\n\nThe easiest and most reliable way for Perplexity MCP is to use `PERPLEXITY_PROXY`. For example:\n\n```bash\nexport PERPLEXITY_PROXY=https:\u002F\u002Fyour-proxy-host:8080\n```\n\nIf your proxy needs a username and password, use:\n\n```bash\nexport PERPLEXITY_PROXY=https:\u002F\u002Fusername:password@your-proxy-host:8080\n```\n\n**3. Alternate: Standard environment variables**\n\nIf you'd rather use the standard variables, we support `HTTPS_PROXY` and `HTTP_PROXY`.\n\n> [!NOTE]\n> The server checks proxy settings in this order: `PERPLEXITY_PROXY` → `HTTPS_PROXY` → `HTTP_PROXY`. If none are set, it connects directly to the internet.\n> URLs must include `https:\u002F\u002F`. Typical ports are `8080`, `3128`, and `80`.\n\n### HTTP Server Deployment\n\nFor cloud or shared deployments, run the server in HTTP mode.\n\n#### Environment Variables\n\n| Variable | Description | Default |\n|----------|-------------|---------|\n| `PERPLEXITY_API_KEY` | Your Perplexity API key | *Required* |\n| `PERPLEXITY_BASE_URL` | Custom base URL for API requests | `https:\u002F\u002Fapi.perplexity.ai` |\n| `PORT` | HTTP server port | `8080` |\n| `BIND_ADDRESS` | Network interface to bind to | `0.0.0.0` |\n| `ALLOWED_ORIGINS` | CORS origins (comma-separated) | `*` |\n\n#### Docker\n\n```bash\ndocker build -t perplexity-mcp-server .\ndocker run -p 8080:8080 -e PERPLEXITY_API_KEY=your_key_here perplexity-mcp-server\n```\n\n#### Node.js\n\n```bash\nexport PERPLEXITY_API_KEY=your_key_here\nnpm install && npm run build && npm run start:http\n```\n\nThe server will be accessible at `http:\u002F\u002Flocalhost:8080\u002Fmcp`\n\n## Troubleshooting\n\n- **API Key Issues**: Ensure `PERPLEXITY_API_KEY` is set correctly\n- **Connection Errors**: Check your internet connection and API key validity\n- **Tool Not Found**: Make sure the package is installed and the command path is correct\n- **Timeout Errors**: For very long research queries, set `PERPLEXITY_TIMEOUT_MS` to a higher value\n- **Proxy Issues**: Verify your `PERPLEXITY_PROXY` or `HTTPS_PROXY` setup and ensure `api.perplexity.ai` isn't blocked by your firewall.\n- **EOF \u002F Initialize Errors**: Some strict MCP clients fail because `npx` writes installation messages to stdout. Use `npx -yq` instead of `npx -y` to suppress this output.\n\nFor support, visit [community.perplexity.ai](https:\u002F\u002Fcommunity.perplexity.ai) or [file an issue](https:\u002F\u002Fgithub.com\u002Fperplexityai\u002Fmodelcontextprotocol\u002Fissues).\n\n---\n\n","# Perplexity API 平台 MCP 服务器\n\n[![在 Cursor 中安装](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fperplexityai_modelcontextprotocol_readme_28a840b32442.png)](https:\u002F\u002Fcursor.com\u002Fen\u002Finstall-mcp?name=perplexity&config=eyJ0eXBlIjoic3RkaW8iLCJjb21tYW5kIjoibnB4IiwiYXJncyI6WyIteSIsIkBwZXJwbGV4aXR5LWFpL21jcC1zZXJ2ZXIiXSwiZW52Ijp7IlBFUlBMRVhJVFlfQVBJX0tFWSI6IiJ9fQ==)\n&nbsp;\n[![在 VS Code 中安装](https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fperplexityai_modelcontextprotocol_readme_ddb6399414e8.png)](https:\u002F\u002Fvscode.dev\u002Fredirect\u002Fmcp\u002Finstall?name=perplexity&config=%7B%22type%22%3A%22stdio%22%2C%22command%22%3A%22npx%22%2C%22args%22%3A%5B%22-y%22%2C%22%40perplexity-ai%2Fmcp-server%22%5D%2C%22env%22%3A%7B%22PERPLEXITY_API_KEY%22%3A%22%22%7D%7D)\n&nbsp;\n[![npm 版本](https:\u002F\u002Fimg.shields.io\u002Fnpm\u002Fv\u002F%40perplexity-ai%2Fmcp-server?style=for-the-badge&logo=npm&logoColor=white&color=CB3837)](https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002F@perplexity-ai\u002Fmcp-server)\n\nPerplexity API 平台的官方 MCP 服务器实现，通过 Sonar 模型和 Search API 为 AI 助手提供实时网络搜索、推理和研究能力。\n\n## 可用工具\n\n### **perplexity_search**\n使用 Perplexity Search API 进行直接网络搜索。返回带有元数据的排名搜索结果，非常适合查找最新信息。\n\n### **perplexity_ask**\n使用 `sonar-pro` 模型进行通用对话式 AI，并结合实时网络搜索。非常适合快速问答和日常查询。\n\n### **perplexity_research**\n使用 `sonar-deep-research` 模型进行深入、全面的研究。非常适合详尽分析和详细报告。\n\n### **perplexity_reason**\n使用 `sonar-reasoning-pro` 模型进行高级推理和问题解决。非常适合复杂的分析任务。\n\n> [!提示]\n> **perplexity_reason** 和 **perplexity_research** 的可选参数：`strip_thinking`\n>\n> 设置为 `true` 可移除响应中的 `\u003Cthink>...\u003C\u002Fthink>` 标签，从而节省上下文 token。默认值：`false`\n\n## 配置\n\n### 获取您的 API 密钥\n\n1. 从 [API 门户](https:\u002F\u002Fwww.perplexity.ai\u002Faccount\u002Fapi\u002Fgroup) 获取您的 Perplexity API 密钥。\n2. 将下方配置中的 `your_key_here` 替换为您自己的 API 密钥。\n3. （可选）设置超时时间：`PERPLEXITY_TIMEOUT_MS=600000`（默认 5 分钟）。\n4. （可选）设置自定义基础 URL：`PERPLEXITY_BASE_URL=https:\u002F\u002Fyour-custom-url.com`（默认 https:\u002F\u002Fapi.perplexity.ai）。\n5. （可选）设置日志级别：`PERPLEXITY_LOG_LEVEL=DEBUG|INFO|WARN|ERROR`（默认 ERROR）。\n\n### Claude 代码\n\n```bash\nclaude mcp add perplexity --env PERPLEXITY_API_KEY=\"your_key_here\" -- npx -y @perplexity-ai\u002Fmcp-server\n```\n\n或者通过插件安装：\n```bash\nexport PERPLEXITY_API_KEY=\"your_key_here\"\nclaude\n# 然后运行：\u002Fplugin marketplace add perplexityai\u002Fmodelcontextprotocol\n# 然后运行：\u002Fplugin install perplexity\n```\n\n### Cursor、Claude Desktop 和 Windsurf\n\n我们建议使用本 README 顶部的一键安装按钮来为 Cursor 安装。\n\n对于手动设置，所有这些客户端都使用相同的 `mcpServers` 格式：\n\n| 客户端 | 配置文件 |\n|--------|-------------|\n| Cursor | `~\u002F.cursor\u002Fmcp.json` |\n| Claude Desktop | `claude_desktop_config.json` |\n| Windsurf | `~\u002F.codeium\u002Fwindsurf\u002Fmcp_config.json` |\n\n```json\n{\n  \"mcpServers\": {\n    \"perplexity\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@perplexity-ai\u002Fmcp-server\"],\n      \"env\": {\n        \"PERPLEXITY_API_KEY\": \"your_key_here\"\n      }\n    }\n  }\n}\n```\n\n### VS Code\n\n我们建议使用本 README 顶部的一键安装按钮来为 VS Code 安装，或者手动添加到 `.vscode\u002Fmcp.json`：\n\n```json\n{\n  \"servers\": {\n    \"perplexity\": {\n      \"type\": \"stdio\",\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@perplexity-ai\u002Fmcp-server\"],\n      \"env\": {\n        \"PERPLEXITY_API_KEY\": \"your_key_here\"\n      }\n    }\n  }\n}\n```\n\n### Codex\n\n```bash\ncodex mcp add perplexity --env PERPLEXITY_API_KEY=\"your_key_here\" -- npx -y @perplexity-ai\u002Fmcp-server\n```\n\n### 其他 MCP 客户端\n\n大多数客户端都可以手动配置以在其配置文件中使用 `mcpServers` 包装器（如 Cursor）。如果您的客户端无法正常工作，请查阅其文档以获取正确的包装器格式。\n\n### 代理设置（适用于企业网络）\n\n如果您在公司内部运行此服务器——尤其是在公司防火墙或代理之后——您可能需要告知程序如何通过您网络的代理发送互联网流量。请按照以下步骤操作：\n\n**1. 获取您的代理详细信息**\n\n- 向 IT 部门索取 HTTPS 代理地址和端口。\n- 您可能还需要用户名和密码。\n\n**2. 设置代理环境变量**\n\n对于 Perplexity MCP 来说，最简单可靠的方式是使用 `PERPLEXITY_PROXY`。例如：\n\n```bash\nexport PERPLEXITY_PROXY=https:\u002F\u002Fyour-proxy-host:8080\n```\n\n如果您的代理需要用户名和密码，则使用：\n\n```bash\nexport PERPLEXITY_PROXY=https:\u002F\u002Fusername:password@your-proxy-host:8080\n```\n\n**3. 备选方案：标准环境变量**\n\n如果您更倾向于使用标准变量，我们支持 `HTTPS_PROXY` 和 `HTTP_PROXY`。\n\n> [!注意]\n> 服务器会按以下顺序检查代理设置：`PERPLEXITY_PROXY` → `HTTPS_PROXY` → `HTTP_PROXY`。如果均未设置，则直接连接到互联网。\n> URL 必须包含 `https:\u002F\u002F`。常见端口为 `8080`、`3128` 和 `80`。\n\n### HTTP 服务器部署\n\n对于云或共享部署，以 HTTP 模式运行服务器。\n\n#### 环境变量\n\n| 变量 | 描述 | 默认值 |\n|----------|-------------|---------|\n| `PERPLEXITY_API_KEY` | 您的 Perplexity API 密钥 | *必填* |\n| `PERPLEXITY_BASE_URL` | 自定义 API 请求基础 URL | `https:\u002F\u002Fapi.perplexity.ai` |\n| `PORT` | HTTP 服务器端口 | `8080` |\n| `BIND_ADDRESS` | 绑定的网络接口 | `0.0.0.0` |\n| `ALLOWED_ORIGINS` | CORS 域名（逗号分隔） | `*` |\n\n#### Docker\n\n```bash\ndocker build -t perplexity-mcp-server .\ndocker run -p 8080:8080 -e PERPLEXITY_API_KEY=your_key_here perplexity-mcp-server\n```\n\n#### Node.js\n\n```bash\nexport PERPLEXITY_API_KEY=your_key_here\nnpm install && npm run build && npm run start:http\n```\n\n服务器将可通过 `http:\u002F\u002Flocalhost:8080\u002Fmcp` 访问。\n\n## 故障排除\n\n- **API 密钥问题**：确保 `PERPLEXITY_API_KEY` 设置正确。\n- **连接错误**：检查您的互联网连接和 API 密钥的有效性。\n- **找不到工具**：确保已安装软件包且命令路径正确。\n- **超时错误**：对于非常耗时的研究查询，可将 `PERPLEXITY_TIMEOUT_MS` 设置为更高值。\n- **代理问题**：验证您的 `PERPLEXITY_PROXY` 或 `HTTPS_PROXY` 设置，并确保 `api.perplexity.ai` 未被您的防火墙阻止。\n- **EOF \u002F 初始化错误**：某些严格的 MCP 客户端会因 `npx` 将安装消息写入 stdout 而失败。请使用 `npx -yq` 代替 `npx -y` 来抑制此输出。\n\n如需支持，请访问 [community.perplexity.ai](https:\u002F\u002Fcommunity.perplexity.ai) 或 [提交问题](https:\u002F\u002Fgithub.com\u002Fperplexityai\u002Fmodelcontextprotocol\u002Fissues)。\n\n---","# Perplexity MCP Server 快速上手指南\n\nPerplexity API Platform 的官方 MCP（Model Context Protocol）服务器实现。它通过 Sonar 模型和搜索 API，为 AI 助手提供实时网络搜索、推理和研究能力。\n\n## 环境准备\n\n*   **Node.js**：确保已安装 Node.js 环境（推荐最新 LTS 版本），因为该工具通过 `npx` 运行。\n*   **API Key**：你需要一个有效的 Perplexity API Key。\n    *   前往 [Perplexity API Portal](https:\u002F\u002Fwww.perplexity.ai\u002Faccount\u002Fapi\u002Fgroup) 获取密钥。\n*   **MCP 兼容客户端**：支持 Cursor、VS Code、Claude Desktop、Windsurf、Claude Code 或 Codex 等客户端。\n\n## 安装步骤\n\n### 1. 获取 API Key\n在 Perplexity 官网注册并生成 API Key，后续配置中需替换 `your_key_here为实际密钥。\n\n### 2. 配置客户端\n\n根据你使用的编辑器或客户端，选择以下一种方式进行配置：\n\n#### 方案 A：一键安装（推荐 Cursor 和 VS Code 用户）\n点击 README 顶部的 \"Install in Cursor\" 或 \"Install in VS Code\" 徽章即可自动配置。\n\n#### 方案 B：手动配置 JSON 文件\n适用于 Cursor、Claude Desktop、Windsurf 等客户端。\n\n*   **Cursor**: 编辑 `~\u002F.cursor\u002Fmcp.json`\n*   **Claude Desktop**: 编辑 `claude_desktop_config.json`\n*   **Windsurf**: 编辑 `~\u002F.codeium\u002Fwindsurf\u002Fmcp_config.json`\n\n添加以下配置内容：\n\n```json\n{\n  \"mcpServers\": {\n    \"perplexity\": {\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@perplexity-ai\u002Fmcp-server\"],\n      \"env\": {\n        \"PERPLEXITY_API_KEY\": \"your_key_here\"\n      }\n    }\n  }\n}\n```\n\n#### 方案 C：VS Code 手动配置\n在项目的 `.vscode\u002Fmcp.json` 文件中添加：\n\n```json\n{\n  \"servers\": {\n    \"perplexity\": {\n      \"type\": \"stdio\",\n      \"command\": \"npx\",\n      \"args\": [\"-y\", \"@perplexity-ai\u002Fmcp-server\"],\n      \"env\": {\n        \"PERPLEXITY_API_KEY\": \"your_key_here\"\n      }\n    }\n  }\n}\n```\n\n#### 方案 D：命令行客户端 (Claude Code \u002F Codex)\n\n**Claude Code:**\n```bash\nclaude mcp add perplexity --env PERPLEXITY_API_KEY=\"your_key_here\" -- npx -y @perplexity-ai\u002Fmcp-server\n```\n\n**Codex:**\n```bash\ncodex mcp add perplexity --env PERPLEXITY_API_KEY=\"your_key_here\" -- npx -y @perplexity-ai\u002Fmcp-server\n```\n\n> **注意**：如果遇到初始化错误（EOF errors），可能是由于 `npx` 的输出干扰，尝试将命令中的 `npx -y` 改为 `npx -yq` 以抑制额外输出。\n\n## 基本使用\n\n配置完成后，重启你的 AI 客户端。AI 助手将自动加载以下四个核心工具，你可以通过自然语言直接调用：\n\n1.  **实时搜索 (`perplexity_search`)**\n    *   **用途**：查找最新的网络信息和带元数据的排名结果。\n    *   **示例**：“帮我搜索一下今天关于 AI 行业的最新新闻。”\n\n2.  **通用问答 (`perplexity_ask`)**\n    *   **用途**：基于 `sonar-pro` 模型的日常对话和快速查询，结合实时网络搜索。\n    *   **示例**：“解释一下量子计算的基本原理，并结合最新进展。”\n\n3.  **深度研究 (`perplexity_research`)**\n    *   **用途**：基于 `sonar-deep-research` 模型，进行详尽的分析和生成详细报告。\n    *   **示例**：“请对 2024 年电动汽车电池技术的技术路线进行深入研究报告。”\n\n4.  **高级推理 (`perplexity_reason`)**\n    *   **用途**：基于 `sonar-reasoning-pro` 模型，处理复杂的逻辑分析和问题解决。\n    *   **示例**：“分析这段代码的性能瓶颈，并提出优化方案。”\n\n**可选参数提示：**\n在使用 `perplexity_reason` 和 `perplexity_research` 时，可以设置 `strip_thinking: true` 来移除回复中的 `\u003Cthink>...\u003C\u002Fthink>` 标签，以节省上下文 Token。","一位全栈开发者正在为初创公司开发一款基于最新市场趋势的竞品分析仪表盘，需要快速整合实时的行业数据、技术文档和竞争对手动态，以生成一份详尽的技术选型报告。\n\n### 没有 modelcontextprotocol 时\n- **信息滞后与割裂**：开发者需手动在浏览器中搜索最新的技术博客、GitHub 仓库和新闻，再复制粘贴到对话窗口，导致上下文断裂，AI 无法获取实时信息。\n- **研究深度不足**：面对复杂的技术对比（如不同向量数据库的性能基准），通用 AI 模型往往依赖训练数据，缺乏对最新发布文档的深度挖掘能力，容易给出过时建议。\n- **工作流频繁中断**：为了验证一个 API 的最新参数或错误代码，开发者必须反复切换标签页，手动查阅官方文档，严重打断编码心流，降低开发效率。\n- **推理过程不透明**：在处理复杂逻辑问题时，难以看到 AI 的思考路径，一旦结果有误，排查困难，且无法通过结构化标签优化 Token 消耗。\n\n### 使用 modelcontextprotocol 后\n- **实时数据无缝接入**：通过 `perplexity_search` 工具，AI 助手直接在 IDE 内调用 Perplexity Search API，获取排名靠前的实时搜索结果，确保引用的数据和新闻均为最新。\n- **深度研究自动化**：利用 `perplexity_research` 功能，AI 能基于 `sonar-deep-research` 模型自动深入挖掘多篇技术文档，生成包含详细来源的综合分析报告，大幅提升决策质量。\n- **编码与研究一体化**：在 Cursor 或 VS Code 中直接配置后，开发者无需离开编辑器即可通过 `perplexity_ask` 询问即时问题，实现“边写代码边查证”的流畅体验。\n- **高效推理与成本控制**：使用 `perplexity_reason` 进行复杂逻辑推导，并可通过 `strip_thinking` 参数移除中间思考标签，既保留了高级推理能力，又有效节省了 Context Token。\n\nmodelcontextprotocol 将实时网络搜索与深度推理能力原生集成至开发环境，彻底消除了信息检索与代码编写之间的壁垒，显著提升了研发决策的准确性与效率。","https:\u002F\u002Foss.gittoolsai.com\u002Fimages\u002Fperplexityai_modelcontextprotocol_857bd444.png","perplexityai","Perplexity AI","https:\u002F\u002Foss.gittoolsai.com\u002Favatars\u002Fperplexityai_240b9c2a.png","Open Source @ Perplexity AI",null,"github-publisher@perplexity.ai","perplexity_ai","https:\u002F\u002Fwww.perplexity.ai\u002F","https:\u002F\u002Fgithub.com\u002Fperplexityai",[86,90,94],{"name":87,"color":88,"percentage":89},"TypeScript","#3178c6",95.2,{"name":91,"color":92,"percentage":93},"JavaScript","#f1e05a",4.1,{"name":95,"color":96,"percentage":97},"Dockerfile","#384d54",0.7,2069,291,"2026-04-02T21:48:51","MIT","Linux, macOS, Windows","未说明",{"notes":105,"python":103,"dependencies":106},"该工具是一个基于 Node.js 的 MCP 服务器，主要通过 npx 运行，无需本地 GPU 或 Python 环境。必须配置 PERPLEXITY_API_KEY 环境变量才能使用。支持通过 Docker 或 Node.js 以 HTTP 模式部署。若在公司代理网络下使用，需配置 PERPLEXITY_PROXY、HTTPS_PROXY 或 HTTP_PROXY 环境变量。",[107,108],"npx (Node.js package runner)","@perplexity-ai\u002Fmcp-server",[15,36],"2026-03-27T02:49:30.150509","2026-04-06T06:54:43.320255",[113,118,123,128,133,138],{"id":114,"question_zh":115,"answer_zh":116,"source_url":117},11610,"使用 npx 运行 Perplexity MCP 服务器时出现 \"EOF\" 错误或握手失败怎么办？","这是因为 npx 会将安装日志或更新检查信息输出到 stdout，而 MCP 协议要求 stdout 仅用于 JSON-RPC 消息，导致严格模式的客户端（如 Antigravity 等）解析失败。\n\n解决方案有两种：\n1. **推荐方案**：本地安装包并直接通过 node 执行，绕过 npx。配置示例如下：\n```json\n{\n  \"perplexity\": {\n    \"command\": \"\u002Fusr\u002Flocal\u002Fbin\u002Fnode\", \n    \"args\": [\n      \"\u002Fabsolute\u002Fpath\u002Fto\u002Fproject\u002Fnode_modules\u002F@perplexity-ai\u002Fmcp-server\u002Fdist\u002Findex.js\"\n    ],\n    \"env\": { \"PERPLEXITY_API_KEY\": \"...\" }\n  }\n}\n```\n2. **替代方案**：如果客户端支持，可以在 npx 命令中添加 `-yq` 标志以抑制输出。","https:\u002F\u002Fgithub.com\u002Fperplexityai\u002Fmodelcontextprotocol\u002Fissues\u002F74",{"id":119,"question_zh":120,"answer_zh":121,"source_url":122},11611,"在 Claude Code v2.0.21+ 中遇到 schema 验证错误（不支持 oneOf\u002FallOf\u002FanyOf）如何解决？","Claude Code v2.0.21+ 引入了更严格的 MCP schema 验证，不再支持工具输入 schema 顶层的 `oneOf`、`allOf` 或 `anyOf` 关键字，导致启动时报错。\n\n临时解决方案是降级 Claude Code 版本：\n```bash\nnpm install -g @anthropic-ai\u002Fclaude-code@2.0.20\n```\n长期解决方案需等待官方更新工具 schema 以符合 MCP 2025-06-18 规范。","https:\u002F\u002Fgithub.com\u002Fperplexityai\u002Fmodelcontextprotocol\u002Fissues\u002F57",{"id":124,"question_zh":125,"answer_zh":126,"source_url":127},11612,"为什么在 Cursor 等编辑器中通过 npx 只能看到 1 个工具，而代码中有 3 个？","这通常是因为 npx 缓存或引用的 npm 包版本过旧。维护者已更新官方 npm 包地址。\n\n请确保使用最新的官方包 `@perplexity-ai\u002Fmcp-server`。如果你之前使用的是旧包名或本地克隆的代码，请切换到官方 npm 包：\n```bash\nnpm i @perplexity-ai\u002Fmcp-server\n```\n或者在配置中使用该包名运行 npx，即可访问所有工具。","https:\u002F\u002Fgithub.com\u002Fperplexityai\u002Fmodelcontextprotocol\u002Fissues\u002F38",{"id":129,"question_zh":130,"answer_zh":131,"source_url":132},11613,"运行 npx 命令时提示 \"404 Not Found\" 错误怎么办？","这通常是因为包名不正确或包尚未发布到 npm registry。\n\n请确认你使用的包名是正确的。对于 Perplexity MCP 服务器，正确的包名是 `@perplexity-ai\u002Fmcp-server` 或特定的工具包如 `server-perplexity-ask`（需确认其最新状态）。\n\n尝试运行以下命令安装：\n```bash\nnpm i server-perplexity-ask\n```\n如果仍然报错，请检查 npm 官网确认包是否存在，或联系维护者确认包发布状态。","https:\u002F\u002Fgithub.com\u002Fperplexityai\u002Fmodelcontextprotocol\u002Fissues\u002F20",{"id":134,"question_zh":135,"answer_zh":136,"source_url":137},11614,"Claude Desktop 日志中频繁出现 \"Method not found\" (-32601) 错误是什么原因？","这通常不是 Perplexity MCP 服务器本身的问题，而是 Claude Desktop 客户端的行为导致的。许多用户报告在其他 MCP 工具中也出现此错误。\n\n这可能与 Claude Desktop 发送的空闲健康检查（health-check）或 unsupported method 调用（如 `prompts\u002Flist`）有关，而服务器未实现这些方法。只要核心功能正常，可以忽略此错误。","https:\u002F\u002Fgithub.com\u002Fperplexityai\u002Fmodelcontextprotocol\u002Fissues\u002F22",{"id":139,"question_zh":140,"answer_zh":141,"source_url":142},11615,"如何支持长时间运行的查询（如 sonar-deep-research）以避免超时？","目前 MCP 协议在处理长时间运行的任务时容易超时。建议的处理方式包括：\n1. **显式请求**：在提示词中明确要求模型进行“深度研究”，或使用支持该功能的模型。\n2. **异步处理思路**：参考 Firecrawl 的做法，返回一个 job ID，允许用户稍后查询结果，而不是阻塞等待任务完成。目前社区正在讨论此类实现，但标准做法仍是尽量优化查询长度或使用后台任务机制。","https:\u002F\u002Fgithub.com\u002Fperplexityai\u002Fmodelcontextprotocol\u002Fissues\u002F11",[]]