Enables web searches with Reddit-focused results through Perplexica's search API, allowing queries to be specifically targeted at Reddit content.
Provides access to Wolfram Alpha computational knowledge through Perplexica's search API, enabling computational and factual queries.
Enables YouTube-focused searches through Perplexica's search API, allowing queries to find and surface video content from YouTube.
MCP Perplexica
MCP server proxy for Perplexica search API.
This server allows LLMs to perform web searches through Perplexica using the Model Context Protocol (MCP).
Features
π Web search through Perplexica
π Multiple focus modes (web, academic, YouTube, Reddit, etc.)
β‘ Configurable optimization modes (speed, balanced, quality)
π§ Customizable model configuration
π Source citations in responses
π Multiple transport modes (stdio, SSE, Streamable HTTP)
Prerequisites
Python 3.11+
UV package manager
Running Perplexica instance
Installation
Clone the repository:
Install dependencies with UV:
Create your environment file:
Edit
.envwith your configuration:
Usage
Transport Modes
The server supports three transport modes:
Transport | Description | Use Case |
| Standard input/output | CLI tools, Claude Desktop |
| Server-Sent Events over HTTP | Web clients |
| Streamable HTTP (recommended for production) | Production deployments |
Running with Docker Compose
The easiest way to run both Perplexica and MCP Perplexica together:
This starts:
Perplexica on
http://localhost:3000MCP Perplexica connected to Perplexica
Running the MCP Server (without Docker)
Stdio mode (default)
SSE mode
Streamable HTTP mode
Claude Desktop Configuration
Add to your Claude Desktop configuration (~/Library/Application Support/Claude/claude_desktop_config.json on macOS):
Claude Code Configuration
For HTTP-based transports, you can add the server to Claude Code:
Available Tools
search
Perform a web search using Perplexica.
Parameters:
Parameter | Type | Required | Description |
| string | Yes | The search query |
| string | No | Search focus:
,
,
,
,
,
|
| string | No | Optimization:
,
,
|
| string | No | Custom instructions for AI response |
| string | No | Override default chat model provider |
| string | No | Override default chat model |
| string | No | Override default embedding provider |
| string | No | Override default embedding model |
Example:
Development
Install dev dependencies
Run tests
Run linter
Architecture
This project follows hexagonal architecture:
License
MIT