Perplexity Tool for Claude Desktop
Herramienta de perplejidad para Claude Desktop
Una herramienta MCP personalizada que integra la API de Perplexity AI con Claude Desktop, lo que permite a Claude realizar investigaciones basadas en la web y proporcionar respuestas con citas.
Requisitos previos de instalación
Instalar Git:
Para Mac:
Primero instale Homebrew pegando esto en la Terminal: GXP1
Luego instala Git: GXP2
Para Windows:
Descargar Git desde git-scm.com
Ejecute el instalador
Instalar Node.js:
Para Mac:
brew install nodePara Windows:
Descargar desde nodejs.org
Ejecute el instalador
Verifique las instalaciones ejecutando:
git --version
node --versionRelated MCP server: Perplexity MCP Server
Instalación de herramientas
Clonar el repositorio
git clone https://github.com/letsbuildagent/perplexity-tool
cd perplexity-toolInstalar dependencias
npm installConfigura tu clave API
Tienes dos opciones:
Opción 1 (Configuración rápida):
Abrir
server.jsEncuentra esta línea:
const PERPLEXITY_API_KEY = "YOUR-API-KEY-HERE";Reemplace con su clave API de Perplexity
Opción 2 (mejor práctica):
Crea un archivo .env:
# On Mac/Linux: touch .env open .env # On Windows: notepad .envO simplemente crea un nuevo archivo llamado
.enven tu editor de textoAgregue su clave API al archivo .env:
PERPLEXITY_API_KEY=your-api-key-hereInstalar dotenv:
npm install dotenvActualizar server.js:
import 'dotenv/config' const PERPLEXITY_API_KEY = process.env.PERPLEXITY_API_KEY;
Configurar Claude Desktop
Abra
~/Library/Application Support/Claude/claude_desktop_config.jsonAñade esta configuración:
{
"mcpServers": {
"perplexity-tool": {
"command": "node",
"args": [
"/full/path/to/perplexity-tool/server.js"
]
}
}
}Reemplace /full/path/to con la ruta real donde clonó el repositorio.
Reiniciar Claude Desktop
Uso
Una vez instalada, puedes utilizar la herramienta a través de Claude con comandos como:
Pregúntale a Perplexity sobre los últimos avances en IA.
Utilizar la Perplejidad para investigar la historia de la computación cuántica.
"Buscar información sobre el cambio climático en Perplexity, centrándose en el último mes"
Opciones avanzadas
Puede especificar parámetros adicionales:
temperature: controla la aleatoriedad de la respuesta (0-2)max_tokens: limita la longitud de la respuestasearch_domain_filter: restringe la búsqueda a dominios específicossearch_recency_filter: Filtra por período de tiempo (día/semana/mes/año)
Solución de problemas
Git no encontrado:
Asegúrate de haber instalado Git correctamente
Intente reiniciar su terminal
En Mac, asegúrese de que Homebrew esté en su PATH
Errores de Node.js:
Verifique la instalación de Node.js con
node --versionIntente reinstalar Node.js
Problemas con la clave API:
Asegúrate de haber copiado correctamente tu clave API
Comprueba que no haya espacios adicionales en tu archivo .env
Si usa la Opción 2, verifique que dotenv esté instalado
Herramienta que no aparece en Claude:
Verifique la ruta en claude_desktop_config.json
Asegúrese de que la ruta apunte a su archivo server.js
Reiniciar Claude Desktop
Comprueba si hay mensajes de error en la consola.
Licencia
Instituto Tecnológico de Massachusetts (MIT)
Nota de seguridad
Si planeas compartir tu código o hacerlo público:
No envíe su clave API a Git
Utilice el método .env (Opción 2)
Añade .env a tu archivo .gitignore
Available Tools
1 toolask_perplexityC
Ask a question to Perplexity AI
| Name | Required | Description | Default |
|---|---|---|---|
| question | Yes | The question to ask | |
| temperature | No | Response randomness (0-2) | |
| max_tokens | No | Maximum tokens in response | |
| search_domain_filter | No | Limit search to specific domains | |
| search_recency_filter | No | Filter results by recency | month |
TDQS
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 'Ask a question to Perplexity AI,' which implies it's a query tool, but doesn't describe what happens—e.g., whether it performs web searches, generates responses, has rate limits, or requires authentication. This is a significant gap for a tool with multiple parameters and no output schema.
Agents need to know what a tool does to the world before calling it. Descriptions should go beyond structured annotations to explain consequences.
Is the description appropriately sized, front-loaded, and free of redundancy?
The description is a single, clear sentence with no wasted words. It's front-loaded and efficiently conveys the core action, making it easy to scan and understand quickly.
Shorter descriptions cost fewer tokens and are easier for agents to parse. Every sentence should earn its place.
Given the tool's complexity, does the description cover enough for an agent to succeed on first attempt?
Given the complexity (5 parameters, no annotations, no output schema), the description is incomplete. It doesn't explain what the tool returns, how it behaves (e.g., search-based vs. generative), or any constraints. The agent must rely heavily on the schema and tool name, which is insufficient for effective use.
Complex tools with many parameters or behaviors need more documentation. Simple tools need less. This dimension scales expectations accordingly.
Does the description clarify parameter syntax, constraints, interactions, or defaults beyond what the schema provides?
The input schema has 100% description coverage, so parameters like 'question,' 'temperature,' and 'search_recency_filter' are well-documented in the schema. The description adds no additional meaning beyond the schema, such as explaining how parameters interact or typical use cases. This meets the baseline of 3 since the schema does the heavy lifting.
Input schemas describe structure but not intent. Descriptions should explain non-obvious parameter relationships and valid value ranges.
Does the description clearly state what the tool does and how it differs from similar tools?
The description 'Ask a question to Perplexity AI' clearly states the action (ask) and target (Perplexity AI), which is adequate. However, it's somewhat vague about what Perplexity AI is or does—it doesn't specify if this is for general queries, research, or something else. With no sibling tools, differentiation isn't needed, but the purpose could be more specific.
Agents choose between tools based on descriptions. A clear purpose with a specific verb and resource helps agents select the right tool.
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—it doesn't mention use cases, prerequisites, or alternatives. With no sibling tools, there's no need to differentiate, but it lacks any context for appropriate usage, leaving the agent to infer based on the tool name alone.
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 tool update
v1.0.0- Added
ask_perplexity
TDQS
Scored across 1 tool
With only one tool, there is no possibility of ambiguity or overlap between tools. The single tool 'ask_perplexity' has a clearly distinct purpose that cannot be confused with any other tool in this server.
The single tool name follows a clear verb_noun pattern ('ask_perplexity'), and with only one tool, there is perfect consistency. No other naming conventions exist to create inconsistency.
A single tool is generally too few for most server purposes, as it provides minimal functionality and limits agent capabilities. For a Perplexity AI integration, one tool might suffice for basic queries, but it feels thin and lacks operations like follow-up questions or context management.
The tool surface is severely incomplete for interacting with Perplexity AI. While 'ask_perplexity' covers basic queries, there are significant gaps such as no support for conversation history, context setting, or handling different query types, which will likely cause agent failures in complex tasks.
Maintenance
Related MCP Connectors
Live AI-native web search with citations. One tool for every MCP client. Flat per-request pricing.
Web search, scraping, RAG answers with citations, and translation as MCP tools.
An MCP for marketers that gives agents tools for SEO, AEO, socials and ads data. Generous free tier; works in Claude, ChatGPT, Cursor and other MCP clients.
Your agent needs the open web — searched by more than one engine, and read as clean markdown rather than raw HTML. **What you can ask for** • "Search this question with two providers and tell me where they disagree." • "Scrape these 40 URLs into markdown, in one batch." • "Crawl this documentation site and give me every page." • "Do deep research on this topic and cite the sources." • "Find the academic papers behind this claim." **How to use it** Point any MCP client at https://mcp.aisa.one/search/mcp and sign in with OAuth — there is no key to create or paste. 30 tools across several independent providers: Tavily and Exa search, answers, contents and agent runs; Firecrawl scrape, batch scrape, crawl, map and search; Perplexity Sonar, Sonar Pro, reasoning and deep research; Oxylabs AI search and LLM jobs; OpenAI and Anthropic web search; and scholarly search. **Why this rather than the source** Several independent indexes behind one account, because one engine's blind spot is not visible from inside it. **It is also a door to the rest** The same login reaches 26 sources and 580+ operations. Find the page here, then ask the same agent who links to it or how much traffic it gets — without adding a second server. **What it costs** Finding and inspecting an operation is free. Running one is billed per call at API prices, with no seat and no monthly minimum, and every call takes max_price_usd so an agent cannot overspend by accident. **Where else it reaches** https://mcp.aisa.one/seo-serp/mcp for the Google results page itself, https://mcp.aisa.one/seo-serp-other-engines/mcp for Bing, Baidu and Naver.
Related MCP Servers
- AlicenseAqualityDmaintenanceAn MCP server that enables Claude to perform web searches using Perplexity's API with intelligent model selection based on query intent and support for domain and recency filtering.64MIT
- AlicenseAqualityDmaintenanceMCP server that enables Claude to request chat completions with citations from the Perplexity API.1MIT
- FlicenseAqualityDmaintenanceIntegrates Perplexity AI's search-enhanced language models with Claude Desktop, providing three tools with different complexity levels for quick fact-checking, technical analysis, and deep research.32-
- FlicenseNot gradedqualityDmaintenanceIntegrates Perplexity API into Claude/Cowork as MCP tools for search, trend scouting, and deep research.-