Command Palette

Search for a command to run...

UnylyUnyly
Browse all

Perplexity AI Search

FreeStale (364d)

Integrates with Perplexity AI's search capabilities to enable AI-powered web search queries using TypeScript and the OpenAI SDK.

GitHubEmbed

About

Integrates with Perplexity AI's search capabilities to enable AI-powered web search queries using TypeScript and the OpenAI SDK.

README

An MCP server implementation that integrates Perplexity AI's API, providing advanced search capabilities with multiple model options.

Features

  • Search using Perplexity AI's models
  • Support for all official Sonar models
  • Configurable result count
  • Detailed error handling and logging
  • MCP Inspector compatible

Available Models

  • sonar-reasoning-pro (127k context)
  • sonar-reasoning (127k context)
  • sonar-pro (200k context)
  • sonar (127k context)

Installation

pnpm install
pnpm build

Configuration

API Key

  1. Sign up for a Perplexity AI account
  2. Get your API key from the dashboard
  3. Set the environment variable:
export PERPLEXITY_API_KEY=your_api_key_here

Usage

Direct Execution

node dist/index.js
# or if you made it executable
./dist/index.js

Development

pnpm dev

Testing with MCP Inspector

pnpm inspect

Tool Reference

perplexity_search

Performs a search using Perplexity AI's models.

Parameters:

  • query (string, required): The search query
  • model (string, optional): Model to use (default: "sonar")
    • Available options: sonar-reasoning-pro, sonar-reasoning, sonar-pro, sonar
  • count (number, optional): Number of results (1-10, default: 5)

Development

Project Structure

src/perplexity/
├── index.ts        # Main server implementation
├── lib/
│   └── logger.ts   # Logging configuration
└── adr.md         # Architectural decisions

Logging

Logs are written to perplexity-mcp.log in the project root directory.

License

MIT

Contributing

  1. Fork the repository
  2. Create your feature branch
  3. Commit your changes
  4. Push to the branch
  5. Create a new Pull Request

from github.com/mkusaka/mcp-server-perplexity

Install Perplexity AI Search in Claude Desktop, Claude Code & Cursor

Recommended · one command, every IDE
unyly install perplexity-ai-search

Installs into Claude Desktop, Claude Code, Cursor & VS Code — handles npx, uvx and build-from-source repos for you.

First time? Get the CLI: curl -fsSL https://unyly.org/install | sh

Or configure manually

Run in your terminal:

claude mcp add perplexity-ai-search --env PERPLEXITY_API_KEY="" -- npx -y perplexity-mcp

Step-by-step: how to install Perplexity AI Search

FAQ

Is Perplexity AI Search MCP free?

Yes, Perplexity AI Search MCP is free — one-click install via Unyly at no cost.

Does Perplexity AI Search need an API key?

Yes, it requires environment variables: PERPLEXITY_API_KEY. Unyly injects them into the config during install.

Is Perplexity AI Search hosted or self-hosted?

Self-hosted: the server runs locally on your machine via the install command above.

How do I install Perplexity AI Search in Claude Desktop, Claude Code or Cursor?

Open Perplexity AI Search on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.

Changes

Versions and requested access over time.

  • New version published
  • New version published
  • New version published
  • New version published
  • New version published
  • New version published
  • New version published
  • New version published

Related MCPs

Compare Perplexity AI Search with

Not sure what to pick?

Find your stack in 60 seconds

Author?

Embed badge for your README

Browse similar

All ai MCPs