MCP server for Perplexity AI search and deep research

MCP server for Perplexity AI search and deep research

perplexity-mcp-server-cyanheads•bycyanheads

An MCP server that bridges AI applications to the Perplexity AI API for search-augmented queries and multi-source deep research.

License: Apache License 2.0•Runtime: Awaiting documentation review•Category: search web

WHAT IT DOES

  • •Provides a perplexity_search tool for fast, search-augmented queries with recency, domain, and academic filtering.
  • •Provides a perplexity_deep_research tool that conducts exhaustive, multi-source investigations and delivers detailed reports.
  • •Supports both stdio and HTTP transports, including JWT and OAuth 2.1 authentication for HTTP.

BEST FOR

  • •Enabling AI agents to perform quick lookups or programmatic deep-dive research.
  • •Grounding LLM responses with up-to-date, verifiable information from the web.
  • •Adding search-augmented generation to AI-driven workflows.

ABOUT PERPLEXITY-MCP-SERVER-CYANHEADS

MCP server for Perplexity AI search and deep research is cataloged as an MCP server attributed to cyanheads. An MCP server that bridges AI applications to the Perplexity AI API for search-augmented queries and multi-source deep research. It is categorized under search web. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.

HOW TO INSTALL

Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.

LICENSE

Catalog license label: Apache License 2.0. Check the source repository's current license and terms before using, modifying or distributing this software.

Capability inspector

Capability definitions are not reviewed. Unreviewed imports are not exposed as trusted interfaces.

Tools (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Resources (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

Prompts (0)

No reviewed records to display. This does not establish that upstream lacks this capability.

NEWSLETTER - COMING LATER

Newsletter subscriptions are not open yet

Email delivery is not connected. This page does not collect email addresses or create subscriptions.

Browse the registry for current listings instead.

Community Reviews

Coming later

Reviews for MCP server for Perplexity AI search and deep research are not available yet

Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.

FREQUENTLY ASKED QUESTIONS

How does the server control research depth and cost for deep research?

The perplexity_deep_research tool exposes a reasoning_effort parameter accepting low, medium, or high.

What authentication options are available for the HTTP transport?

HTTP authentication supports JWT or OAuth via the MCP_AUTH_MODE setting.

Upstream README

View this exact version on GitHub

README.md · 686265309e8b · Fetched 2026-11-13 09:54:51 UTC

Original upstream text, without AI rewriting. Scripts, forms and unsafe links are filtered for safety.

Showing the last retrieved documentation snapshot; check the source for current changes.

Perplexity MCP Server

TypeScript Model Context Protocol Version License Status GitHub

Supercharge your AI agents with Perplexity's Search API!

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, all through a standardized, secure, and easy-to-integrate protocol.

Built on the cyanheads/mcp-ts-template, this server follows a modular architecture with robust error handling, logging, and security features.

🚀 Core Capabilities: Perplexity Tools 🛠️

This server equips your AI with specialized tools to leverage Perplexity's unique capabilities:

Tool NameDescriptionKey Features
perplexity_searchPerforms a fast, search-augmented query using the Perplexity API. Ideal for quick questions and real-time information retrieval.- Filter by recency (day, week, month, year).
- Filter by domain or date range.
- Prioritize scholarly sources with academic mode.
- Optionally include the model's internal reasoning (showThinking).
perplexity_deep_researchConducts an exhaustive, multi-source investigation for complex topics, delivering a detailed report.- Ideal for in-depth analysis and report generation.
- Control research depth and cost with reasoning_effort (low, medium, high).

Note: For the deep research tool, I recommend allowing a longer timeout (e.g. 180 seconds) through MCP Clients like Cline. Other clients may time out after 60 seconds, which isn't sufficient for deep research.


Table of Contents

Overview

The Perplexity MCP Server acts as a bridge, allowing applications (MCP Clients) that understand the Model Context Protocol (MCP)—like advanced AI assistants (LLMs), IDE extensions, or custom research tools—to interact directly and efficiently with the Perplexity AI API.

Instead of complex, one-off API integrations, your tools can leverage this server to:

  • Automate Research: Enable agents to perform quick lookups or deep-dive research programmatically.
  • Enhance AI Reasoning: Provide LLMs with up-to-date, verifiable information from the web to ground their responses.
  • Integrate Search into Workflows: Seamlessly add search-augmented generation to any AI-driven task.

Built on the robust mcp-ts-template, this server provides a standardized, secure, and efficient way to expose Perplexity's functionality via the MCP standard.

Developer Note: This repository includes a .clinerules file that serves as a developer cheat sheet for your LLM coding agent with quick reference for the codebase patterns, file locations, and code snippets.

Features

Core Utilities

Leverages the robust utilities provided by the mcp-ts-template:

  • Logging: Structured, configurable logging with file rotation and optional MCP notifications.
  • Error Handling: Centralized error processing with standardized McpError types.
  • Configuration: Environment variable loading (dotenv) with Zod validation.
  • Input Validation/Sanitization: Uses zod for schema validation and a dedicated sanitization utility.
  • Request Context: Operation tracking and correlation via unique request IDs using AsyncLocalStorage.
  • Type Safety: Strong typing enforced by TypeScript and Zod schemas.
  • HTTP Transport: High-performance HTTP server using Hono, featuring session management and CORS support.
  • Authentication: Robust authentication layer supporting JWT and OAuth 2.1.

Perplexity Integration

  • Dual API Support: Full integration with both the standard Chat Completions API (perplexity_search) and the more intensive research models (perplexity_deep_research).
  • Advanced Search Control: Fine-grained control over search parameters, including recency, domain filtering, and academic source prioritization.
  • Cost Tracking: A utility to estimate the cost of API calls based on token usage and model, helping manage expenses.
  • Resilient API Client: A dedicated service for interacting with the Perplexity API, featuring built-in error handling and request/response logging.

Installation

Prerequisites

Setup

  1. Clone the repository:

    git clone https://github.com/cyanheads/perplexity-mcp-server.git
    cd perplexity-mcp-server
    
  2. Install dependencies:

    npm install
    
  3. Build the project:

    npm run build
    

Configuration

Environment Variables

Configure the server by creating a .env file in the project root (you can copy .env.example). These variables can also be set in your MCP client's configuration.

VariableDescriptionDefault
PERPLEXITY_API_KEYRequired. Your API key for Perplexity.""
MCP_TRANSPORT_TYPETransport mechanism: stdio or http.stdio
MCP_HTTP_PORTPort for the HTTP server (if MCP_TRANSPORT_TYPE=http).3010
MCP_HTTP_HOSTHost address for the HTTP server.127.0.0.1
MCP_LOG_LEVELLogging level (debug, info, warn, error).info
MCP_AUTH_MODEAuthentication for HTTP: jwt or oauth.jwt
MCP_AUTH_SECRET_KEYRequired for jwt auth. A secure secret key (min 32 chars).""

MCP Client Settings

Add the following to your MCP client's configuration file (e.g., cline_mcp_settings.json):

{
  "mcpServers": {
    "perplexity-mcp-server": {
      "command": "node",
      "args": ["/path/to/your/perplexity-mcp-server/dist/index.js"],
      "env": {
        "PERPLEXITY_API_KEY": "YOUR_PERPLEXITY_API_KEY_HERE"
      }
    }
  }
}

Project Structure

The codebase follows a modular structure within the src/ directory:

src/
├── index.ts              # Entry point: Initializes and starts the server
├── config/               # Configuration loading (env vars, package info)
│   └── index.ts
├── mcp-server/           # Core MCP server logic and capability registration
│   ├── server.ts         # Server setup, capability registration
│   ├── transports/       # Transport handling (stdio, http)
│   └── tools/            # MCP Tool implementations (subdirs per tool)
├── services/             # External service integrations (Perplexity API client)
├── types-global/         # Shared TypeScript type definitions
└── utils/                # Common utility functions (logger, error handler, etc.)

For a detailed file tree, run npm run tree or see docs/tree.md.

Tools

The Perplexity MCP Server provides two primary tools for interacting with the Perplexity API.

Tool NameDescriptionKey Arguments
perplexity_searchPerforms a fast, search-augmented query.query, search_recency_filter?, search_domain_filter?, search_mode?, showThinking?
perplexity_deep_researchConducts an exhaustive, multi-source research query.query, reasoning_effort?

Note: All tools support comprehensive error handling and return structured JSON responses.

Development

Build and Test

# Build the project (compile TS to JS in dist/)
npm run build

# Clean build artifacts
npm run clean

# Generate a file tree representation for documentation
npm run tree

# Clean build artifacts and then rebuild the project
npm run rebuild

# Start the server using stdio (default)
npm start

License

This project is licensed under the Apache License 2.0 - see the LICENSE file for details.


Built with the Model Context Protocol

Install configuration

Are you the maintainer?

Claim this server with your GitHub account to request manual ownership verification.

README Embed Badge
Markdown

Link to the catalog listing for MCP server for Perplexity AI search and deep research from your README. This badge does not certify ownership, compatibility or security.

[![MCP catalog listing](https://img.shields.io/badge/MCP-awesome--mcp-orange?style=flat-square)](https://awesome-mcp.com/servers/perplexity-mcp-server-cyanheads)

REPOSITORY STATS

GitHub StarsUnavailable
ForksUnavailable

Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.

Downloads and pulls

Separate sources, scopes and periods. Never combined or treated as installations, active users or security reviews.

No reviewed package or image identity; download statistics are not listed yet.

Related search web MCP Servers

Alternative and complementary servers in the same category

View all in search web →

An MCP server that merges Google Search Console history with a live first-party crawl of your site to produce a prioritised, evidence-backed technical SEO audit inside Claude, complete with paste-ready fixes.

Repository stats unavailable
Search & Web Research

An MCP server that offers intelligent web search using OpenAI reasoning models, with support for fast iterations and deep research.

94
Search & Web Research