Perplexity MCP 服务器
模型上下文协议 (MCP) 服务器,使用 Perplexity AI 的 API 提供智能代码分析和调试功能。可与 Claude 桌面客户端无缝协作。
特征
- 智能错误分析:通过根本原因分析对编码错误进行详细细分
- 模式检测:自动识别常见错误模式并提供有针对性的解决方案
- 全面的解决方案:通过多种实施方案逐步修复
- 最佳实践:包括编码标准和错误预防技巧
- Python 支持:专门处理 Python 类型错误和常见编码问题
示例用法
提出以下问题:
- “修复我的 Python 代码中的这个 TypeError”
- “是什么导致了这个错误信息?”
- “我该如何修复这个代码?”
包含您的代码片段以进行有针对性的分析:
服务器将提供:
- 错误根本原因分析
- 带有代码示例的分步解决方案
- 防止类似问题的最佳实践
- 替代实施方法
安装
先决条件
- Node.js 18 或更高版本
- Perplexity AI API 密钥
选项 1:从 npm 安装(推荐)
选项 2:从源安装
- 克隆存储库:
- 安装依赖项:
- 全局构建和安装:
配置 Claude 桌面
添加到您的 Claude 桌面配置文件:
MacOS : ~/Library/Application Support/Claude/claude_desktop_config.json
Windows : %APPDATA%/Claude/claude_desktop_config.json
或者如果从源安装:
安全
- API 密钥安全地存储在 Claude 的桌面配置文件中
- 该密钥作为环境变量传递给服务器
- 存储库中不存储任何敏感数据
- 服务器需要 Claude 的环境提供 API 密钥
发展
项目结构
可用脚本
npm run build
:构建项目npm run watch
:监视更改并自动重建npm run prepare
:准备发布的包npm run inspector
:运行 MCP 检查器进行调试
贡献
- 分叉存储库
- 创建你的功能分支(
git checkout -b feature/amazing-feature
) - 提交您的更改(
git commit -m 'Add some amazing feature'
) - 推送到分支(
git push origin feature/amazing-feature
) - 打开拉取请求
执照
该项目根据 MIT 许可证获得许可 - 有关详细信息,请参阅LICENSE文件。
致谢
- 感谢Perplexity AI提供强大的 API
- 使用模型上下文协议构建
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
Tools
通过 Perplexity AI 的 API 实现智能代码分析和调试,提供详细的错误分析、模式检测和全面的解决方案,并为 Claude 桌面客户端提供集成支持。
Related Resources
Related MCP Servers
- AsecurityAlicenseAqualityA server facilitating web search functionality by utilizing Perplexity AI's API, designed to integrate with the Claude desktop client for enhanced search queries.Last updated -194PythonMIT License
- -securityFlicense-qualityProvides AI-powered assistance for coding problems using Google's Gemini AI, combined with Perplexity insights and Stack Overflow references, facilitating contextual analysis and automatic response archiving for improved troubleshooting.Last updated -10TypeScript
- -securityAlicense-qualityA Cursor-compatible toolkit that provides intelligent coding assistance through custom AI tools for code architecture planning, screenshot analysis, code review, and file reading capabilities.Last updated -8392TypeScriptMIT License
- -securityAlicense-qualityA powerful research assistant that integrates with Cline and Claude Desktop to leverage Perplexity AI for intelligent search, documentation retrieval, API discovery, and code modernization assistance while coding.Last updated -2JavaScriptMIT License