A simple Model Context Protocol (MCP) server for Perplexity's web search with sonar or sonar-pro.
- Provides a
search
tool for AI assistants to perform web searches - Uses Perplexity's chat completions API with the sonar/sonar-pro models
The server provides a search
tool with the following input parameters:
query
(required): The search query to performsearch_recency_filter
(optional): Filter search results by recency (options: month, week, day, hour). If not specified, no time filtering is applied.
PERPLEXITY_API_KEY
: Your Perplexity API key (required)
The response from the search
tool includes:
content
: The search results contentcitations
: Array of citations for the information
MIT