perplexity-advanced-mcp
Perplexity Advanced MCP is an integration package that enhances query processing by using OpenRouter and Perplexity APIs. It supports both simple and complex queries, optimizing interactions with AI models for both. The package is designed for flexibility and reliability, with features like multi-vendor support and a robust retry mechanism.
Overview
Perplexity Advanced MCP is an advanced integration package utilizing OpenRouter and Perplexity APIs for enhanced query processing. It includes a command-line interface (CLI) and API client for seamless interaction with AI models for simple and complex queries. Key features include multi-vendor API support, query type optimization, file attachment processing, enhanced retry logic, and customizable logging.
Features
- Unified API client for OpenRouter and Perplexity APIs
- Command-Line Interface for API key management and server running
- Advanced query processing with file attachments
- Robust retry mechanism with Tenacity
- Flexible logging for debugging and monitoring
Comparison with Perplexity MCP
- Multi-vendor API support (OpenRouter and Perplexity)
- Optimized query processing for cost and performance
- File attachment support
- Enhanced retry logic
Usage
Installation via Smithery and quick start with uvx
are supported. Configure API keys through CLI or environment variables.
Configuration
Configure API keys using environment variables or command-line options. The package uses Typer for CLI functionality. API models are mapped to specific queries in the configuration file.