Guide for integrating Perplexity search with PraisonAI agents using MCP
Set API Key
Set your Perplexity API key as an environment variable in your terminal:
Create a file
Create a new file perplexity_search.py
with the following code:
Install Dependencies
Make sure you have the required packages installed:
Run the Agent
Execute your script:
Requirements
Search the web for real-time information using Perplexity’s powerful search API.
Utilize Perplexity’s Sonar model for high-quality search results.
Seamless integration with Model Context Protocol.
Securely pass API keys using environment variables.
Guide for integrating Perplexity search with PraisonAI agents using MCP
Set API Key
Set your Perplexity API key as an environment variable in your terminal:
Create a file
Create a new file perplexity_search.py
with the following code:
Install Dependencies
Make sure you have the required packages installed:
Run the Agent
Execute your script:
Requirements
Search the web for real-time information using Perplexity’s powerful search API.
Utilize Perplexity’s Sonar model for high-quality search results.
Seamless integration with Model Context Protocol.
Securely pass API keys using environment variables.