perplexity-mcp-server
Provides tools for interacting with the Perplexity AI API, enabling chatting, searching, and retrieving documentation.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@perplexity-mcp-server search for recent advancements in natural language processing"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Perplexity AI MCP Server
This repository contains the source code for a Model Context Protocol (MCP) server that provides access to the Perplexity AI API. This server allows users to interact with Perplexity AI through various tools, including chatting, searching, and retrieving documentation.
Purpose
This server simplifies the integration of Perplexity AI into MCP-based systems. It provides a convenient and standardized way to access Perplexity AI's capabilities.
Related MCP server: Perplexity Agent MCP
Setup
Install Node.js and npm: Ensure you have Node.js and npm installed on your system.
Clone the repository: Clone this repository to your local machine.
Install dependencies: Navigate to the project directory and run
npm install.Configure API Key: Set the
PERPLEXITY_API_KEYenvironment variable to your Perplexity API key.Run the server: Run
npm startto start the server.
Usage
The server exposes several tools that can be accessed through the MCP system. Refer to the MCP documentation for details on how to use these tools.
Technologies Used
TypeScript
@modelcontextprotocol/sdk
axios
Known Issues
The Perplexity API may be unreliable. Error handling is included to gracefully handle API failures.
Contributing
Contributions are welcome! Please open an issue or submit a pull request.
Available Tools
5 toolschat_perplexityA
Maintains ongoing conversations with Perplexity AI. Creates new chats or continues existing ones with full history context.
Inputs: message (required), chat_id.
check_deprecated_codeC
Check if code or dependencies might be using deprecated features
Inputs: code (required), technology.
find_apisC
Find and evaluate APIs that could be integrated into a project
Inputs: requirement (required), context.
get_documentationB
Get documentation and usage examples for a specific technology, library, or API
Inputs: query (required), context.
searchC
Perform a general search query to get comprehensive information on any topic
Inputs: query (required), detail_level.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 5 tools
Each tool targets a distinct task: conversational chat, general search, documentation lookup, API discovery, and deprecation checking. Search and get_documentation could potentially overlap, but their descriptions make the intended use clear enough.
Most tools follow a verb_noun pattern (search, get_documentation, find_apis, check_deprecated_code), but 'chat_perplexity' is inconsistent as a compound name and 'search' is a bare verb. The pattern is largely coherent with minor deviations.
Five tools is well-scoped for a Perplexity AI integration, covering the primary interaction modes without unnecessary bloat. Each tool serves a meaningful purpose.
The server covers core capabilities for Perplexity AI: conversational chat, general search, documentation, API discovery, and deprecation checks. A minor gap is the lack of model selection or account-related tools, but these are not essential for typical use.
Maintenance
Related MCP Connectors
Real-time web search, reasoning, and research through Perplexity's API
Enable AI assistants to perform web searches using Perplexity's Sonar Pro.
Your org's AI agents, tasks, runs, search, and brain files as MCP tools and resources.
Cross-tool persistent memory and context for AI assistants over MCP.
Related MCP Servers
- FlicenseBqualityDmaintenanceProvides a standardized way to integrate Perplexity AI's features like chat, search, and documentation access into MCP-based systems.51-
- AlicenseAqualityBmaintenanceEnables coding assistants to access Perplexity AI for quick fact-checking and in-depth research. Provides two tools: lookup for fast documentation queries and answer for comprehensive research with recommendations.243 npm1MIT
- AlicenseCqualityAmaintenanceEnables 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.30313 PyPI207MIT
- AlicenseNot gradedqualityDmaintenanceProvides a standardized interface for interacting with Perplexity's tools and services through a unified API, following the MCP specification.40 PyPI1MIT