What is MCP Perplexity Server: High-Performance Real-Time APIs?
MCP Perplexity Server is a versatile API gateway designed to simplify interaction with Perplexity models. It exposes real-time endpoints that allow users to query advanced AI models like Sonar and Sonar Pro through standardized protocols. Built with flexibility in mind, this server supports both stdio
and Server-Sent Events (SSE
) transport mechanisms, making it compatible with diverse integration needs.
How to Use MCP Perplexity Server: High-Performance Real-Time APIs?
Getting Started with Docker
- Create a
docker-compose.yml
file with the following content: - Run
docker compose up
to start the server.
services:
mcp-sse-server:
image: ghcr.io/sibbl/mcp-perplexity-api:main
ports:
- "8080:8080"
restart: unless-stopped
environment:
- MCP_PERPLEXITY_API_KEY=YOUR_API_KEY_HERE
Local Node.js Setup
- Install dependencies:
pnpm install
- Configure environment variables (see
.env.sample
) - Choose transport method:
- For
stdio
:pnpm start
- For
SSE
:MCP_TRANSPORT=sse pnpm start
- For