Integrates with Perplexity AI's API to provide advanced search capabilities through the perplexity_search tool, supporting multiple Sonar models including sonar-reasoning-pro, sonar-reasoning, sonar-pro, and sonar
Perplexity AI MCP Server
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
Configuration
API Key
Sign up for a Perplexity AI account
Get your API key from the dashboard
Set the environment variable:
Usage
Direct Execution
Development
Testing with MCP Inspector
Tool Reference
perplexity_search
Performs a search using Perplexity AI's models.
Parameters:
query
(string, required): The search querymodel
(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
Logging
Logs are written to perplexity-mcp.log
in the project root directory.
License
MIT
Contributing
Fork the repository
Create your feature branch
Commit your changes
Push to the branch
Create a new Pull Request
remote-capable server
The server can be hosted and run remotely because it primarily relies on remote services or has no dependency on the local environment.
An MCP server integrating Perplexity AI's API to offer advanced search capabilities with support for multiple models and result configuration.
Related Resources
Related MCP Servers
- AsecurityFlicenseAqualityThis server allows users to perform web searches using Perplexity AI, providing a tool for retrieving search results through a simple API interface.Last updated -11753
- -securityAlicense-qualityMCP Server for the Perplexity API.Last updated -62MIT License
- AsecurityFlicenseAqualityThis server provides access to the Perplexity AI API, enabling interaction through chatting, searching, and documentation retrieval within MCP-based systems.
- AsecurityAlicenseAqualityAn MCP server that enables Claude to perform web searches using Perplexity's API with intelligent model selection based on query intent and support for domain and recency filtering.Last updated -3MIT License