Perplexity MCP Server
@cyanheads
About Perplexity MCP Server
A Perplexity API MCP server that unlocks Perplexity's search-augmented AI capabilities for LLM agents. Features robust error handling, secure input validation, and transparent reasoning with the showThinking parameter.
Basic information
Config
No standard config provided
This server doesn't expose a parseable MCP config block in its README. See the repository for install instructions.
RepositoryTools
2Performs a fast, search-augmented query.
Conducts an exhaustive, multi-source research query.
Overview
What is Perplexity MCP Server?
An MCP (Model Context Protocol) server providing comprehensive access to the Perplexity AI API. It enables LLMs and AI agents to perform fast, search-augmented queries and conduct exhaustive, multi-source deep research through a standardized, secure, and easy-to-integrate protocol. It is built for developers using MCP clients like advanced AI assistants, IDE extensions, or custom research tools.
How to use Perplexity MCP Server?
Install Node.js ≥18 and obtain a Perplexity API key. Clone the repository, run npm install and npm run build. Create a .env file with PERPLEXITY_API_KEY. Configure your MCP client (e.g., Cline) to run the server with the command node /path/to/dist/index.js and pass the environment variable. Start the server with npm start (uses stdio by default) or configure HTTP transport.
Key features of Perplexity MCP Server
- Dual API support for quick search and deep research
- Advanced search control (recency, domain, academic mode)
- Cost tracking utility based on token usage
- Structured logging, centralized error handling, input validation
- HTTP transport with JWT and OAuth 2.1 authentication
- Resilient API client with error handling and logging
Use cases of Perplexity MCP Server
- Automate research by programmatically performing quick lookups or deep-dive investigations
- Enhance AI reasoning by grounding LLM responses with up-to-date, verifiable web information
- Integrate search‑augmented generation into any AI‑driven workflow
- Generate detailed multi‑source reports on complex topics
FAQ from Perplexity MCP Server
What are the prerequisites to run Perplexity MCP Server?
Node.js version 18 or higher, npm, and a Perplexity API key (available at perplexity.ai/settings/api).
How do I configure the server?
Create a .env file with PERPLEXITY_API_KEY (required). Optionally set MCP_TRANSPORT_TYPE (stdio or http), MCP_HTTP_PORT, MCP_AUTH_MODE, and other environment variables documented in the README.
What transport mechanisms are supported?
stdio (default) and HTTP. HTTP can be secured with JWT or OAuth 2.1 authentication.
Is there a cost tracking feature?
Yes, the server includes a utility to estimate API call costs based on token usage and model, helping manage expenses.
What timeout should I use for the deep research tool?
The deep research tool may take longer than 60 seconds; the README recommends allowing a timeout of 180 seconds in MCP clients like Cline.
More AI & Agents MCP servers
Perplexity MCP Server
DaInfernalCoderA Model Context Protocol (MCP) server for research and documentation assistance using Perplexity AI. Won 1st @ Cline Hackathon
1MCP - One MCP Server for All
1mcp-appA unified Model Context Protocol server implementation that aggregates multiple MCP servers into one.
Perplexity Ask MCP Server
ppl-aiThe official MCP server implementation for the Perplexity API Platform
🔎 GPT Researcher
assafelovicAn autonomous agent that conducts deep research on any data using any LLM providers
meGPT - upload an author's content into an LLM
adriancoCode to process many kinds of content by an author into an MCP server
Comments