Skip to main content
Glama
rileyedwards77

Perplexity AI MCP Server

Servidor MCP de Perplexity AI

Este repositorio contiene el código fuente de un servidor de Protocolo de Contexto de Modelo (MCP) que proporciona acceso a la API de Perplexity AI. Este servidor permite a los usuarios interactuar con Perplexity AI mediante diversas herramientas, como chatear, buscar y acceder a documentación.

Objetivo

Este servidor simplifica la integración de Perplexity AI en sistemas basados en MCP. Ofrece un acceso cómodo y estandarizado a sus capacidades.

Related MCP server: perplexity-mcp-server

Configuración

  1. Instalar Node.js y npm: asegúrese de tener Node.js y npm instalados en su sistema.

  2. Clonar el repositorio: clona este repositorio en tu máquina local.

  3. Instalar dependencias: navegue al directorio del proyecto y ejecute npm install .

  4. Configurar la clave API: establezca la variable de entorno PERPLEXITY_API_KEY en su clave API de Perplexity.

  5. Ejecutar el servidor: ejecute npm start para iniciar el servidor.

Uso

El servidor expone varias herramientas accesibles a través del sistema MCP. Consulte la documentación de MCP para obtener más información sobre cómo usar estas herramientas.

Tecnologías utilizadas

  • Mecanografiado

  • @modelcontextprotocol/sdk

  • axios

Problemas conocidos

  • La API de Perplexity puede ser poco fiable. Se incluye gestión de errores para gestionar eficazmente los fallos de la API.

Contribuyendo

¡Agradecemos sus contribuciones! Abra un problema o envíe una solicitud de incorporación de cambios.

Available Tools

5 tools
chat_perplexityB

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

ParametersJSON Schema
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

B3.2/5.0
Behavior2/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 mentions 'maintains ongoing conversations' and 'full history context', which implies statefulness and persistence, but doesn't disclose critical behavioral traits such as authentication requirements, rate limits, conversation length limits, whether it's read-only or mutative, error handling, or what happens when chat_id is invalid. The description adds some context but leaves significant gaps for a tool that likely involves API calls and state management.

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 appropriately sized with two concise sentences that are front-loaded with the main purpose. Every sentence earns its place: the first establishes the core functionality, and the second clarifies the chat creation/continuation behavior. There's no wasted verbiage or redundant information.

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 tool's complexity (managing conversational state with an external AI service), lack of annotations, and no output schema, the description is incomplete. It doesn't explain what the tool returns (e.g., AI response format, chat_id for new chats), error conditions, authentication needs, or operational constraints. For a stateful chat tool with external dependencies, this minimal description leaves too many unknowns for effective agent use.

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 description doesn't explicitly mention or explain any parameters. However, with 100% schema description coverage, the input schema already provides clear documentation for both parameters (message and chat_id). The description's mention of 'creates new chats or continues existing ones' aligns with the chat_id parameter's semantics, but adds no additional meaning beyond what the schema already states. This meets the baseline of 3 when schema coverage is high.

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 purpose with specific verbs ('maintains', 'creates', 'continues') and resources ('ongoing conversations with Perplexity AI', 'new chats', 'existing ones'). It distinguishes from siblings by focusing on conversational AI interactions rather than code analysis, API discovery, documentation retrieval, or general search. However, it doesn't explicitly differentiate from potential sibling tools that might also involve chat interactions.

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

Usage Guidelines3/5

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

The description implies usage context for maintaining conversations with Perplexity AI, but provides no explicit guidance on when to use this tool versus the sibling tools (check_deprecated_code, find_apis, get_documentation, search). It mentions the ability to create new chats or continue existing ones, which gives some implied usage scenarios, but lacks clear when/when-not instructions or alternative recommendations.

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

ParametersJSON Schema
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?

No annotations are provided, so the description carries the full burden of behavioral disclosure. It states the tool checks for deprecated features but doesn't describe how it performs this check, what the output looks like, any limitations (e.g., accuracy, supported technologies beyond examples), or potential impacts (e.g., if it modifies code). This leaves significant gaps in understanding the tool's behavior.

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

Conciseness4/5

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

The description is a single, efficient sentence that directly states the tool's purpose without unnecessary words. It is appropriately sized and front-loaded, though it could be slightly more structured (e.g., by including usage hints) to earn a perfect score.

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 complexity of checking deprecated code (which involves analysis and potential output interpretation), the description is incomplete. No annotations exist to provide behavioral context, and there's no output schema to explain return values. The description alone lacks details on how results are presented, accuracy, or scope, making it inadequate for full understanding.

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 has 100% description coverage, clearly documenting both parameters ('code' and 'technology') with examples. The description adds no additional meaning beyond this, such as explaining parameter interactions or constraints. Since the schema does the heavy lifting, the baseline score of 3 is appropriate.

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 purpose with a specific verb ('Check') and resource ('code or dependencies'), and identifies what it checks for ('deprecated features'). However, it doesn't explicitly differentiate from sibling tools like 'find_apis' or 'get_documentation', which might also relate to code analysis, so it doesn't reach the highest score.

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 provides no guidance on when to use this tool versus alternatives. It doesn't mention any specific contexts, prerequisites, or exclusions, nor does it reference sibling tools like 'search' or 'find_apis' for related tasks, leaving usage entirely implied.

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

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

TDQS

C2.9/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 states the tool finds and evaluates APIs but doesn't explain how it does this (e.g., search methods, sources, criteria), what the output looks like, or any limitations like rate limits or authentication needs. This leaves significant gaps for an agent to understand its behavior.

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

Conciseness4/5

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

The description is a single, efficient sentence that directly states the tool's purpose without unnecessary words. It is front-loaded with the core function, though it could be slightly more structured by separating finding from evaluating aspects.

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 tool's complexity (finding and evaluating APIs), lack of annotations, and no output schema, the description is incomplete. It doesn't cover behavioral traits, output format, or integration specifics, leaving the agent with insufficient context to use the tool effectively beyond basic parameter input.

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 has 100% description coverage, with parameters 'requirement' and 'context' clearly documented. The description adds no additional meaning beyond what the schema provides, such as examples or usage context for the parameters. Since schema coverage is high, the baseline score of 3 is appropriate.

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 purpose as 'Find and evaluate APIs that could be integrated into a project', which includes a specific verb ('find and evaluate') and resource ('APIs'). It distinguishes itself from siblings like 'search' by specifying API evaluation for integration, though it doesn't explicitly contrast with other tools like 'get_documentation'.

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 provides no guidance on when to use this tool versus alternatives. It doesn't mention when to choose it over sibling tools like 'search' for general queries or 'get_documentation' for API details, nor does it specify prerequisites or exclusions for its use.

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

ParametersJSON Schema
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 states the tool retrieves documentation and examples but doesn't describe how it works (e.g., sources, format, limitations, rate limits, or error handling). For a tool with no annotations, this leaves significant gaps in understanding its behavior.

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, efficient sentence with zero waste. It's front-loaded with the core purpose and appropriately sized for the tool's complexity.

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?

Given the tool's moderate complexity (2 parameters, no output schema, no annotations), the description is minimally adequate. It states the purpose but lacks details on behavior, usage context, and output format, which are needed for full understanding without annotations or output schema.

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%, so the schema already documents both parameters ('query' and 'context') with clear descriptions. The description adds no additional meaning beyond what the schema provides, such as examples or constraints, but doesn't need to compensate for low coverage.

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 purpose: 'Get documentation and usage examples for a specific technology, library, or API.' It specifies the verb ('Get') and resource ('documentation and usage examples'), but doesn't explicitly differentiate from sibling tools like 'find_apis' or 'search', which might have overlapping functionality.

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 provides no guidance on when to use this tool versus alternatives. It doesn't mention sibling tools like 'find_apis' or 'search', nor does it specify prerequisites, exclusions, or contextual triggers for usage.

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

TDQS

B3/5.0
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
ResponsivenessSyncing

Resources

Unclaimed servers have limited discoverability.

Looking for Admin?

If you are the server author, to access and configure the admin panel.

Related MCP Connectors

Related MCP Servers

  • A
    license
    Not graded
    quality
    D
    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.
    29
    3
    MIT
  • A
    license
    B
    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
    180
    MIT

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/rileyedwards77/perplexity-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server