Perplexity AI 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

  • Integrates with Perplexity AI's API to provide advanced search capabilities through the perplexity_search tool, supporting multiple Sonar models including sonar-reasoning-pro, sonar-reasoning, sonar-pro, and sonar

Perplexity AI MCP 서버

Perplexity AI의 API를 통합한 MCP 서버 구현으로, 다양한 모델 옵션을 통해 고급 검색 기능을 제공합니다.

특징

  • Perplexity AI 모델을 사용하여 검색
  • 모든 공식 Sonar 모델 지원
  • 구성 가능한 결과 수
  • 자세한 오류 처리 및 로깅
  • MCP Inspector 호환

사용 가능한 모델

  • 소나-리즈닝-프로(127k 컨텍스트)
  • 소나 추론(127k 컨텍스트)
  • 소나프로(20만 컨텍스트)
  • 소나(127k 컨텍스트)

설치

지엑스피1

구성

API 키

  1. Perplexity AI 계정 에 가입하세요
  2. 대시보드에서 API 키를 받으세요
  3. 환경 변수를 설정합니다.
export PERPLEXITY_API_KEY=your_api_key_here

용법

직접 실행

node dist/index.js # or if you made it executable ./dist/index.js

개발

pnpm dev

MCP Inspector로 테스트

pnpm inspect

도구 참조

퍼플렉시티_검색

Perplexity AI의 모델을 사용하여 검색을 수행합니다.

매개변수:

  • query (문자열, 필수): 검색 쿼리
  • model (문자열, 선택 사항): 사용할 모델(기본값: "sonar")
    • 사용 가능한 옵션: sonar-reasoning-pro, sonar-reasoning, sonar-pro, sonar
  • count (숫자, 선택 사항): 결과 수(1-10, 기본값: 5)

개발

프로젝트 구조

src/perplexity/ ├── index.ts # Main server implementation ├── lib/ │ └── logger.ts # Logging configuration └── adr.md # Architectural decisions

벌채 반출

로그는 프로젝트 루트 디렉토리의 perplexity-mcp.log 에 기록됩니다.

특허

MIT

기여하다

  1. 저장소를 포크하세요
  2. 기능 브랜치를 생성하세요
  3. 변경 사항을 커밋하세요
  4. 지점으로 밀어 넣기
  5. 새로운 풀 리퀘스트 만들기

You must be authenticated.

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

다중 모델과 결과 구성을 지원하여 고급 검색 기능을 제공하기 위해 Perplexity AI의 API를 통합한 MCP 서버입니다.

  1. Features
    1. Available Models
      1. Installation
        1. Configuration
          1. API Key
        2. Usage
          1. Direct Execution
          2. Development
          3. Testing with MCP Inspector
        3. Tool Reference
          1. perplexity_search
        4. Development
          1. Project Structure
          2. Logging
        5. License
          1. Contributing
            ID: s45iho8wbk