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.
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
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:
Running Locally
To run the MCP server locally:
Deployment 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
Chat
License
MIT
This server cannot be installed
hybrid server
The server is able to function both locally and remotely, depending on the configuration or use case.
An Apify Actor implementing the Model Context Protocol for Perplexity API, enabling AI assistants to search and access information through a standardized interface.
Related MCP Servers
- AsecurityAlicenseAqualityAn MCP server integrating Perplexity AI's API to offer advanced search capabilities with support for multiple models and result configuration.Last updated -16961JavaScriptMIT License
- AsecurityFlicenseAqualityThis server provides access to the Perplexity AI API, enabling interaction through chatting, searching, and documentation retrieval within MCP-based systems.Last updated -52JavaScript
- -securityFlicense-qualityInterfaces with the Perplexity AI API to provide advanced question answering capabilities through the standardized Model Context Protocol, supporting multiple Perplexity models.Last updated -JavaScript
- AsecurityAlicenseAqualityA Model Context Protocol server that allows AI assistants to retrieve user information, search videos by ID, and find content by keywords on bilibili.com.Last updated -32737TypeScriptMIT License