Skip to main content
Glama
rileyedwards77

Perplexity AI MCP Server

Perplexity AI MCP 서버

이 저장소에는 Perplexity AI API에 대한 액세스를 제공하는 모델 컨텍스트 프로토콜(MCP) 서버의 소스 코드가 포함되어 있습니다. 이 서버를 통해 사용자는 채팅, 검색, 문서 조회 등 다양한 도구를 통해 Perplexity AI와 상호 작용할 수 있습니다.

목적

이 서버는 Perplexity AI를 MCP 기반 시스템에 통합하는 과정을 간소화합니다. Perplexity AI의 기능에 편리하고 표준화된 방식으로 접근할 수 있도록 지원합니다.

Related MCP server: perplexity-mcp-server

설정

  1. Node.js와 npm 설치: 시스템에 Node.js와 npm이 설치되어 있는지 확인하세요.

  2. 저장소 복제: 이 저장소를 로컬 컴퓨터에 복제합니다.

  3. 종속성 설치: 프로젝트 디렉토리로 이동하여 npm install 실행합니다.

  4. API 키 구성: PERPLEXITY_API_KEY 환경 변수를 Perplexity API 키로 설정합니다.

  5. 서버 실행: npm start 실행하여 서버를 시작합니다.

용법

이 서버는 MCP 시스템을 통해 접근할 수 있는 여러 도구를 제공합니다. 이러한 도구의 사용 방법에 대한 자세한 내용은 MCP 설명서를 참조하십시오.

사용된 기술

  • 타입스크립트

  • @modelcontextprotocol/sdk

  • 악시오스

알려진 문제

  • Perplexity API는 신뢰할 수 없습니다. API 오류를 원활하게 처리하기 위해 오류 처리 기능이 포함되어 있습니다.

기여하다

기여를 환영합니다! 이슈를 개설하거나 풀 리퀘스트를 제출해 주세요.

Available Tools

5 tools
chat_perplexityA

Maintains ongoing conversations with Perplexity AI. Creates new chats or continues existing ones with full history context.

NameRequiredDescriptionDefault
messageYesThe message to send to Perplexity AI
chat_idNoOptional: ID of an existing chat to continue. If not provided, a new chat will be created.

TDQS

A3.9/5.0
Behavior3/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations provided, the description carries the full burden of behavioral disclosure. It does reveal a key behavior: 'full history context' indicates that previous messages are maintained and used. However, it does not disclose other relevant behaviors such as potential errors with invalid chat_id, response format, latency, or any side effects. The description adds some value but remains minimal.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is extremely concise, with two short sentences that effectively convey the tool's core functionality. It is front-loaded with the primary purpose and includes only essential additional context about chat continuation. No wasted words.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a low-complexity tool with two parameters, the description covers the main purpose but omits the return value or behavior details (e.g., what response is returned to the user). There is no output schema to compensate, and no annotations. The description is minimally viable but leaves some uncertainty about the tool's actual output.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema description coverage is 100%, with both 'chat_id' and 'message' already documented in the schema. The description adds little beyond the schema, though it reinforces that chat_id is optional and controls chat creation/continuation. Since the schema already covers semantics, a baseline score of 3 is appropriate.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose5/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's purpose: maintaining ongoing conversations with Perplexity AI, explicitly covering both new chat creation and continuation of existing ones with full history. It uses specific verbs (maintains, creates, continues) and identifies the resource (conversations with Perplexity AI), distinguishing it from sibling tools that perform search or documentation retrieval.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines4/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description implies usage when a conversational interaction with Perplexity AI is needed, including creating a new chat or continuing an existing one. However, it does not explicitly compare with alternatives or state when not to use this tool (e.g., for simple search queries). The context is clear but lacks explicit exclusions.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

check_deprecated_codeC

Check if code or dependencies might be using deprecated features

NameRequiredDescriptionDefault
codeYesThe code snippet or dependency to check
technologyNoThe technology or framework context (e.g., 'React', 'Node.js')

TDQS

C2.9/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

The description does not disclose behavioral traits beyond its basic function. It does not state if the check is read-only, whether it executes the code, what input format is expected, or what output is produced. With no annotations, this lack of detail is a significant gap.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, focused sentence with no redundant information. It gets straight to the point.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Despite the small parameter count, the description lacks crucial information about the tool's behavior and return value. Without an output schema or annotations, the agent is left without a clear picture of what to expect. The description is too minimal to be complete.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The schema fully describes both parameters (code and technology), so the description doesn't need to elaborate. The description adds no additional parameter context beyond the schema, aligning with the baseline score of 3.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool's function: checking code or dependencies for deprecated features. It distinguishes from sibling tools like search and get_documentation by focusing on deprecation analysis rather than general information retrieval.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is provided on when to use this tool versus alternatives like search or get_documentation. The description only states what it does, implying usage but offering no exclusions or comparison.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

find_apisC

Find and evaluate APIs that could be integrated into a project

NameRequiredDescriptionDefault
requirementYesThe functionality or requirement you're looking to fulfill
contextNoAdditional context about the project or specific needs

TDQS

C2.7/5.0
Behavior1/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

With no annotations, the description carries the full burden of behavioral disclosure, but it only states the purpose. It doesn't mention whether the tool performs live searches, what evaluation criteria are used, what output format is returned, or any side effects. This is a significant lack of transparency.

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, concise sentence that is front-loaded and directly conveys the tool's purpose. Every word earns its place, and there is no unnecessary detail or fluff.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness2/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

Given the lack of annotations and output schema, the description should compensate by explaining return values, research process, or usage context. It does none of this, leaving the agent without a clear picture of the tool's output, behavior, or when to choose it over siblings.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

The input schema already describes both parameters (requirement and context) with 100% coverage, so the baseline is 3. The tool description adds no additional meaning beyond the schema; it doesn't explain how the parameters influence behavior or results.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the tool finds and evaluates APIs for project integration, using a specific verb and resource. It distinguishes itself from sibling tools like general search and get_documentation, though it doesn't detail the evaluation criteria or depth.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

The description gives no guidance on when to use this tool versus alternatives. It doesn't mention any exclusions, prerequisites, or comparisons with sibling tools like search or get_documentation, leaving the appropriate usage context unclear.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

get_documentationB

Get documentation and usage examples for a specific technology, library, or API

NameRequiredDescriptionDefault
queryYesThe technology, library, or API to get documentation for
contextNoAdditional context or specific aspects to focus on

TDQS

B3.1/5.0
Behavior2/5

Does the description disclose side effects, auth requirements, rate limits, or destructive behavior?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It only restates the primary function and reveals nothing about potential side effects, output format, source reliability, or limitations. The agent is left guessing about what 'documentation' entails (e.g., official docs, community examples, version specifics).

Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.

Conciseness5/5

Is the description appropriately sized, front-loaded, and free of redundancy?

The description is a single, concise sentence that front-loads the main verb and resource. There is no wasted wording or unnecessary detail.

Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.

Completeness3/5

Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?

For a simple tool with full schema coverage and no output schema, the description is minimally viable but lacks usage guidance and behavioral context. It could be more complete by explaining what types of documentation are returned or how it differs from sibling tools.

Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.

Parameters3/5

Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?

Schema coverage is 100% for both parameters, so the baseline is 3. The description adds no additional meaning beyond what the schema already provides; it merely reiterates 'specific technology, library, or API' which matches the 'query' parameter description.

Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.

Purpose4/5

Does the description clearly state what the tool does and how it differs from similar tools?

The description clearly states the verb ('Get') and the resource ('documentation and usage examples') for a 'specific technology, library, or API.' This is specific and distinguishes it from generic search, though it doesn't explicitly call out sibling tools.

Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.

Usage Guidelines2/5

Does the description explain when to use this tool, when not to, or what alternatives exist?

No guidance is given on when to use this tool versus alternatives like search, find_apis, or chat_perplexity. The description implies a documentation-focused purpose but provides no exclusions, prerequisites, or contextual cues for selection.

Agents often have multiple tools that could apply. Explicit usage guidance like "use X instead of Y when Z" prevents misuse.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

  1. 5 tool updatesv1.0.0
    • First observedchat_perplexity
    • First observedcheck_deprecated_code
    • First observedfind_apis
    • First observedget_documentation
    • First observedsearch

TDQS

B3/5.0

Scored across 5 tools

Disambiguation4/5

Most tools have distinct purposes: chat_perplexity handles conversational AI, check_deprecated_code analyzes code deprecation, find_apis discovers APIs, get_documentation retrieves docs, and search performs general queries. However, get_documentation and search could overlap slightly when users seek technical information, but descriptions clarify their focus.

Naming Consistency3/5

Naming is mixed: chat_perplexity uses a verb_noun format, while check_deprecated_code, find_apis, get_documentation, and search use verb-based phrases without a consistent pattern. All names are snake_case, providing some readability, but the verb styles vary (e.g., 'chat' vs. 'check' vs. 'find'), lacking a unified convention.

Tool Count4/5

With 5 tools, the count is reasonable for a server focused on AI assistance and information retrieval. It covers key areas like conversation, code analysis, API discovery, documentation, and general search, though it might feel slightly thin for broader AI tasks, but each tool earns its place.

Completeness3/5

The server targets AI-driven information and code assistance, with tools for chat, code checks, API finding, documentation, and search. Notable gaps include lack of update/delete operations for chats or saved searches, and no tool for summarizing or analyzing search results, which could limit agent workflows in this domain.

Maintenance

ActivityInactive
ResponsivenessNo issues

Related MCP Connectors

Related MCP Servers

  • A
    license
    A
    quality
    A
    maintenance
    A comprehensive MCP server that provides intelligent access to Perplexity AI's search and reasoning models with automatic model selection, conversation management, and project-aware storage. Supports real-time search, deep research, chat sessions, and async operations for complex queries.
    11
    32 npm
    95 PyPI
    3
    MIT
  • A
    license
    C
    quality
    A
    maintenance
    Enables AI agents and users to query Perplexity AI's premium models (GPT-5.4, Claude 4.6 Opus, Gemini 3.1 Pro, etc.) via MCP tools, CLI, or API, with support for deep research, model council, and multi-turn conversations.
    30
    246 PyPI
    204
    MIT