Perplexity MCP Server

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.

Integrations

  • Requires Node.js 18 or higher as a runtime environment for the MCP server.

  • Leverages Perplexity AI's API to provide intelligent code analysis, error debugging, and solution recommendations for programming issues, with specialized support for Python.

  • Offers specialized error analysis and debugging for Python code, including type error detection, pattern recognition, and best practice recommendations.

Perplexity MCP 서버

Perplexity AI의 API를 사용하여 지능형 코드 분석 및 디버깅 기능을 제공하는 모델 컨텍스트 프로토콜(MCP) 서버입니다. Claude 데스크톱 클라이언트와 원활하게 작동합니다.

특징

  • 지능형 오류 분석 : 근본 원인 분석을 통한 코딩 오류의 세부 분석
  • 패턴 감지 : 일반적인 오류 패턴을 자동으로 인식하고 타겟 솔루션을 제공합니다.
  • 종합 솔루션 : 다양한 구현 대안을 통한 단계별 수정
  • 모범 사례 : 코딩 표준 및 오류 방지 팁 포함
  • Python 지원 : Python 유형 오류 및 일반적인 코딩 문제에 대한 특수 처리

사용 예

다음과 같은 질문을 해보세요.

  • "내 Python 코드에서 이 TypeError를 수정해 주세요"
  • "이 오류 메시지의 원인은 무엇입니까?"
  • "이 코드를 어떻게 고치나요?"

타겟 분석을 위해 코드 조각을 포함하세요.

지엑스피1

서버는 다음을 제공합니다.

  1. 오류의 근본 원인 분석
  2. 코드 예제를 통한 단계별 솔루션
  3. 유사한 문제를 방지하기 위한 모범 사례
  4. 대체 구현 접근 방식

설치

필수 조건

  • Node.js 18 이상
  • Perplexity AI API 키

옵션 1: npm에서 설치(권장)

# Using npm npm install -g perplexity-mcp # Or using the repository directly npm install -g git+https://github.com/yourusername/perplexity-mcp.git

옵션 2: 소스에서 설치

  1. 저장소를 복제합니다.
git clone https://github.com/yourusername/perplexity-server.git cd perplexity-server
  1. 종속성 설치:
npm install
  1. 글로벌하게 빌드하고 설치:
npm run build npm install -g .

Claude Desktop 구성

Claude 데스크톱 구성 파일에 다음을 추가합니다.

MacOS : ~/Library/Application Support/Claude/claude_desktop_config.json Windows : %APPDATA%/Claude/claude_desktop_config.json

{ "mcpServers": { "perplexity": { "command": "perplexity-mcp", "args": [], "env": { "PERPLEXITY_API_KEY": "your-api-key-here" } } } }

또는 소스에서 설치한 경우:

{ "mcpServers": { "perplexity": { "command": "node", "args": ["/absolute/path/to/perplexity-server/build/index.js"], "env": { "PERPLEXITY_API_KEY": "your-api-key-here" } } } }

보안

  • API 키는 Claude의 데스크톱 구성 파일에 안전하게 저장됩니다.
  • 키는 환경 변수로 서버에 전달됩니다.
  • 민감한 데이터는 저장소에 저장되지 않습니다.
  • 서버는 API 키가 Claude의 환경에서 제공될 것으로 예상합니다.

개발

프로젝트 구조

perplexity-server/ ├── src/ │ └── index.ts # Main server implementation ├── package.json # Project configuration └── tsconfig.json # TypeScript configuration

사용 가능한 스크립트

  • npm run build : 프로젝트 빌드
  • npm run watch : 변경 사항을 감시하고 자동으로 다시 빌드합니다.
  • npm run prepare : 패키지 게시를 준비합니다.
  • npm run inspector : 디버깅을 위해 MCP 검사기를 실행합니다.

기여하다

  1. 저장소를 포크하세요
  2. 기능 브랜치를 생성합니다( git checkout -b feature/amazing-feature )
  3. 변경 사항을 커밋하세요( git commit -m 'Add some amazing feature' )
  4. 브랜치에 푸시( git push origin feature/amazing-feature )
  5. 풀 리퀘스트 열기

특허

이 프로젝트는 MIT 라이선스에 따라 라이선스가 부여되었습니다. 자세한 내용은 라이선스 파일을 참조하세요.

감사의 말

You must be authenticated.

A
security – no known vulnerabilities
A
license - permissive license
A
quality - confirmed to work

Tools

Perplexity AI의 API를 통해 지능형 코드 분석 및 디버깅을 지원하고, Claude 데스크톱 클라이언트에 대한 통합 지원과 함께 자세한 오류 분석, 패턴 감지 및 포괄적인 솔루션을 제공합니다.

  1. Features
    1. Example Usage
      1. Installation
        1. Prerequisites
        2. Option 1: Install from npm (Recommended)
        3. Option 2: Install from Source
        4. Configure Claude Desktop
      2. Security
        1. Development
          1. Project Structure
          2. Available Scripts
          3. Contributing
        2. License
          1. Acknowledgments
            ID: oxchzx8c75