Perplexity MCP Server
Provides the runtime environment for the MCP server, with version 18 or higher required for operation.
Enables access to Perplexity's search capabilities and AI models through a standardized interface, allowing for search queries with different focuses and chat completions with various Perplexity models including sonar-medium-online.
Click on "Deploy Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Perplexity MCP Serversearch for recent advancements in quantum computing"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Perplexity MCP Server
This is a Model Context Protocol (MCP) server for the Perplexity API, designed to run as an Apify Actor. It allows AI assistants to search and access information using the Perplexity API through a standardized interface.
Features
Search using Perplexity's powerful search capabilities
Chat completions with various Perplexity models
Model listing
Server-Sent Events (SSE) for real-time communication
Related MCP server: Perplexica MCP Server
Setup
Prerequisites
Node.js 18 or higher
Perplexity API key
Environment Variables
The following environment variables are required:
PERPLEXITY_API_KEY: Your Perplexity API key
Installation
Clone this repository
Install dependencies:
npm installRunning Locally
To run the MCP server locally:
npm run devDeployment to Apify
This project is designed to be deployed as an Apify Actor. To deploy:
Create a new Actor on the Apify platform
Set the environment variables in the Actor settings
Deploy this codebase to the Actor
API Endpoints
The MCP server exposes the following endpoints:
/search(POST): Perform a search using Perplexity/chat(POST): Generate chat completions/models(GET): List available models
Example Usage
Search
{
"query": "What is the capital of France?",
"search_focus": "internet"
}Chat
{
"messages": [
{"role": "user", "content": "Tell me about quantum computing"}
],
"model": "sonar-medium-online"
}License
MIT
This server cannot be deployed
Maintenance
Related MCP Connectors
Real-time web search, reasoning, and research through Perplexity's API
Enable AI assistants to perform web searches using Perplexity's Sonar Pro.
Web search, browser automation, scraping, crawling and CAPTCHA solving for AI agents.
Google AI Overview answers and cited sources via the Apify Google AI Overview API, hosted MCP.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceInterfaces with the Perplexity AI API to provide advanced question answering capabilities through the standardized Model Context Protocol, supporting multiple Perplexity models.-
- AlicenseAqualityCmaintenanceA Model Context Protocol server that acts as a proxy to provide LLM access to Perplexica's AI-powered search engine, enabling AI assistants to perform searches with various focus modes.178MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to use Apify Actors as tools to perform specific tasks like web scraping, data extraction, and searching across various platforms through the Model Context Protocol.21,653Apache 2.0
- AlicenseAqualityDmaintenanceEnables AI-powered web research using your existing Perplexity Pro subscription, providing tools for search, follow-up conversations, and thread management through the Model Context Protocol.420MIT