Perplexity MCP Server
Perplejidad MCP Zerver 📋
Una implementación de servidor de Protocolo de Contexto de Modelo (MCP) de nivel de investigación que proporciona capacidades de investigación impulsadas por IA al interactuar con el sitio web de Perplexity sin necesidad de una clave API.
Características
🔍 Integración de búsqueda web a través de la interfaz web de Perplexity.
💬 Historial de chat persistente para contexto conversacional.
📄 Herramientas para la recuperación de documentación, búsqueda de API y análisis de código.
🚫 No se requiere clave API (depende de la interacción web).
Implementación basada en TypeScript primero.
🌐 Utiliza Puppeteer para la automatización del navegador.
Related MCP server: Perplexity AI MCP Server
Herramientas
1. Buscar ( search )
Realiza una consulta de búsqueda en Perplexity.ai. Admite respuestas brief , normal o detailed . Devuelve texto sin formato.
2. Obtener documentación ( get_documentation )
Solicita a Perplexity que proporcione documentación y ejemplos para una tecnología o biblioteca, centrándose opcionalmente en un contexto específico. Devuelve texto sin formato.
3. Buscar API ( find_apis )
Solicita a Perplexity que encuentre y evalúe las API según los requisitos y el contexto. Devuelve texto sin formato.
4. Verificar código obsoleto ( check_deprecated_code )
Solicita a Perplexity que analice un fragmento de código en busca de funciones obsoletas en un contexto tecnológico específico. Devuelve texto sin formato.
5. Extraer el contenido de la URL ( extract_url_content )
Extrae el texto principal del artículo de las URL mediante la automatización del navegador y la legibilidad de Mozilla. Gestiona repositorios de GitHub a través de gitingest.com. Admite la exploración recursiva de enlaces a gran profundidad. Devuelve JSON estructurado con contenido y metadatos.
6. Chat ( chat_perplexity )
Mantiene conversaciones en curso con Perplexity AI. Almacena el historial de chat localmente en chat_history.db , dentro del directorio del proyecto. Devuelve un objeto JSON en formato de cadena que contiene chat_id y response .
Instalación
Simplemente copie 📋 y pegue el archivo README y deje que la IA se encargue del resto.
Clonar o descargar este repositorio:
git clone https://github.com/wysh3/perplexity-mcp-zerver.git
cd perplexity-mcp-zerverInstalar dependencias:
npm installConstruir el servidor:
npm run buildImportante : Asegúrate de tener instalado Node.js. Puppeteer descargará una versión compatible del navegador si es necesario durante la instalación. Reinicia tu IDE/aplicación después de compilar y configurar el proyecto para que los cambios surtan efecto.
Configuración
Agregue el servidor a su archivo de configuración de MCP (por ejemplo, cline_mcp_settings.json para la extensión VS Code o claude_desktop_config.json para la aplicación de escritorio).
Importante: reemplace /path/to/perplexity-mcp-zerver/build/index.js con la ruta absoluta al archivo index.js creado en su sistema.
Ejemplo para la extensión Cline/RooCode:
{
"mcpServers": {
"perplexity-server": {
"command": "node",
"args": [
"/full/path/to/your/perplexity-mcp-zerver/build/index.js" // <-- Replace this path! (in case of windows for ex: "C:\\Users\\$USER\\Documents\\Cline\\MCP\\perplexity-mcp-zerver\\build\\index.js"
],
"env": {},
"disabled": false,
"alwaysAllow": [],
"autoApprove": [],
"timeout": 300
}
}
}Ejemplo para Claude Desktop:
{
"mcpServers": {
"perplexity-server": {
"command": "node",
"args": [
"/full/path/to/your/perplexity-mcp-zerver/build/index.js" // <-- Replace this path!
],
"env": {},
"disabled": false,
"alwaysAllow": []
}
}
}Uso
Asegúrese de que el servidor esté configurado correctamente en su archivo de configuración de MCP.
Reinicie su IDE (como VS Code con la extensión Cline/RooCode) o la aplicación Claude Desktop.
El cliente MCP debería conectarse automáticamente al servidor.
Ahora puedes pedirle al asistente de IA conectado (como Claude) que use las herramientas, por ejemplo:
Utilice la búsqueda en el servidor de perplejidad para encontrar las últimas noticias sobre IA.
"Pregunte a perplexity-server get_documentation sobre los ganchos de React".
"Inicie un chat con perplexity-server sobre computación cuántica".
Créditos
Gracias DaInfernalCoder:
Licencia
Este proyecto está licenciado bajo la Licencia Pública General GNU v3.0 - consulte el archivo LICENSE.md para obtener más detalles.
Descargo de responsabilidad
Este proyecto interactúa con el sitio web de Perplexity mediante automatización web (Puppeteer). Su propósito es exclusivamente educativo y de investigación. El web scraping y la automatización podrían contravenir las condiciones de servicio del sitio web de destino. El autor no respalda ni fomenta ninguna automatización no autorizada ni la violación de las condiciones de servicio. Úselo de forma responsable y ética. La estabilidad de este servidor depende de la consistencia de la estructura del sitio web de Perplexity.
Available Tools
6 toolschat_perplexityB
Automatically call this tool for interactive, conversational queries. This tool leverages Perplexitys web search capabilities to provide real-time information and maintains conversation history using an optional chat ID for contextual follow-ups.
Inputs: message (required), chat_id. Returns: Describes the structure of the JSON object returned within the response text fi…
check_deprecated_codeA
Automatically call this tool when reviewing legacy code, planning upgrades, or encountering warnings with real time web access. Helps identify technical debt. Example: During code reviews or before upgrading dependencies.
Inputs: code (required), technology. Returns: response
extract_url_contentA
Uses browser automation (Puppeteer) and Mozilla's Readability library to extract the main article text content from a given URL. Handles dynamic JavaScript rendering and includes fallback logic. For GitHub repository URLs, it attempts to fetch structured content via gitingest.com. Performs a pre-check for non-HTML content types and checks HTTP status after navigation. Ideal for getting clean text from articles/blog posts. Note: May struggle to isolate only core content on complex homepages or dashboards, potentially including UI elements.
Inputs: url (required), depth. Returns: Returns a JSON object with extraction status and content for the URL(s) explore…
find_apisB
Automatically call this tool when needing external services or real time current data (like API info, latest versions, etc.) from web. Compares options based on requirements. Example: When building a shopping site, ask "Find product image APIs with free tiers".
Inputs: requirement (required), context. Returns: response
get_documentationA
Automatically call this tool when working with unfamiliar APIs/libraries, needing usage examples, or checking version specifics as this can access web. Example: When adding a payment gateway, ask "Get Stripe API documentation for creating charges".
Inputs: query (required), context. Returns: response
searchB
Performs a web search using Perplexity AI based on the provided query and desired detail level. Useful for general knowledge questions, finding information, or getting different perspectives.
Inputs: query (required), detail_level, stream. Returns: response
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 6 tools
The tools have distinct primary purposes (e.g., chat, code review, content extraction, API discovery, documentation lookup, general search), but there is some functional overlap. For instance, 'chat_perplexity' and 'search' both perform web searches, and 'find_apis' and 'get_documentation' both relate to API information, which could cause confusion for an agent in selecting the most appropriate tool for a given task.
Most tool names follow a consistent verb_noun pattern (e.g., 'extract_url_content', 'find_apis', 'get_documentation', 'check_deprecated_code'), which aids readability. However, 'chat_perplexity' deviates slightly by using a noun_verb structure, and 'search' is a standalone verb without a noun, creating minor inconsistencies in the naming convention.
With 6 tools, the count is well-scoped for a server focused on web-based information retrieval and code assistance. Each tool appears to serve a specific function within this domain, avoiding bloat while covering key areas like conversation, search, content extraction, and technical support, making the set manageable and purposeful.
The tool set covers a broad range of web interaction and code-related tasks, including conversational search, content extraction, API discovery, documentation access, and code review. A minor gap exists in lacking explicit tools for updating or managing retrieved information (e.g., saving or organizing results), but agents can likely work around this using the provided tools effectively for most workflows.
Maintenance
Related MCP Connectors
MCP server for AI dialogue using various LLM models via AceDataCloud
MCP server for OpenAI API (chat completions, image generation, embeddings) via AceDataCloud
An MCP server that gives your AI access to the source code and docs of all public github repos
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceMCP Server for the Perplexity API.24 PyPI66MIT
- AlicenseBqualityDmaintenanceAn MCP server integrating Perplexity AI's API to offer advanced search capabilities with support for multiple models and result configuration.11MIT
- AlicenseNot gradedqualityDmaintenanceAn MCP server that enables AI agents to perform search-augmented queries and deep multi-source research using the Perplexity API.26Apache 2.0
- AlicenseAqualityDmaintenanceAn MCP server that enables AI assistants to query Perplexity AI for web-grounded answers with citations and advanced search filters.3MIT
Appeared in Searches
- Official MCP server that runs locally without an API key or paid plan
- Search functionality without API key requirement
- A server for finding the cheapest flights for a specified date range
- Using a search engine to find evidence to answer a question
- A server for delivering personalized latest news updates