Perplexity Search API for LangChain
io.github.nero-engine/perplexity-search-api
Perplexity Sonar answers with numbered citations in bulk, plus brand, competitor and change checks
client:LangChain
transport:streamable-http
Install Perplexity Search API in LangChain
pip install langchain-mcp-adapters
from langchain_mcp_adapters.client import MultiServerMCPClient
client = MultiServerMCPClient({
"perplexity-search-api": {
"transport": "streamable_http",
"url": "https://mcp.apify.com/?tools=nerolabs/perplexity-search-api",
}
})
tools = await client.get_tools()
get_tools() returns the server's tools as LangChain tools, ready for an agent. LangChain docs