nikolaospapagiannis
MCP Servernikolaospapagiannispublic

perplexity mcp server

一个支持流式传输的 Node.js 代理服务器,用于将 OpenAI 兼容或 MCP 原生请求转发到 Perplexity AI 的 Sonar 模型。

Repository Info

0
Stars
0
Forks
0
Watchers
0
Issues
Shell
Language
Apache License 2.0
License

About This Server

一个支持流式传输的 Node.js 代理服务器,用于将 OpenAI 兼容或 MCP 原生请求转发到 Perplexity AI 的 Sonar 模型。

Model Context Protocol (MCP) - This server can be integrated with AI applications to provide additional context and capabilities, enabling enhanced AI interactions and functionality.

Documentation

🚀 MCP Perplexity Proxy Server

This Node.js server proxies OpenAI-compatible or MCP-native requests to Perplexity AI's Sonar models with streaming support.

🔧 Run locally

docker-compose up --build

🔁 Supported APIs

  • POST /v1/chat/completions (OpenAI-compatible)
  • POST /mcp-stream (MCP-native)
  • GET / (Swagger UI)

✅ Usage in CLine / Cursor / RooCode

{
  "provider": "openai",
  "api_base": "http://localhost:3000/v1",
  "api_key": "dummy"
}

🧪 Local Testing

curl -X POST http://localhost:3000/v1/chat/completions \
  -H "Content-Type: application/json" \
  -d '{"model":"sonar-reasoning-pro","messages":[{"role":"user","content":"Was ist JSON.stringify?"}]}'

Quick Start

1

Clone the repository

git clone https://github.com/nikolaospapagiannis/perplexity-mcp-server
2

Install dependencies

cd perplexity-mcp-server
npm install
3

Follow the documentation

Check the repository's README.md file for specific installation and usage instructions.

Repository Details

Ownernikolaospapagiannis
Repoperplexity-mcp-server
LanguageShell
LicenseApache License 2.0
Last fetched8/10/2025

Recommended MCP Servers

💬

Discord MCP

Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.

integrationsdiscordchat
🔗

Knit MCP

Connect AI agents to 200+ SaaS applications and automate workflows.

integrationsautomationsaas
🕷️

Apify MCP Server

Deploy and interact with Apify actors for web scraping and data extraction.

apifycrawlerdata
🌐

BrowserStack MCP

BrowserStack MCP Server for automated testing across multiple browsers.

testingqabrowsers

Zapier MCP

A Zapier server that provides automation capabilities for various apps.

zapierautomation