
perplexity mcp server
一个支持流式传输的 Node.js 代理服务器,用于将 OpenAI 兼容或 MCP 原生请求转发到 Perplexity AI 的 Sonar 模型。
Repository Info
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
Clone the repository
git clone https://github.com/nikolaospapagiannis/perplexity-mcp-serverInstall dependencies
cd perplexity-mcp-server
npm installFollow the documentation
Check the repository's README.md file for specific installation and usage instructions.
Repository Details
Recommended MCP Servers
Discord MCP
Enable AI assistants to seamlessly interact with Discord servers, channels, and messages.
Knit MCP
Connect AI agents to 200+ SaaS applications and automate workflows.
Apify MCP Server
Deploy and interact with Apify actors for web scraping and data extraction.
BrowserStack MCP
BrowserStack MCP Server for automated testing across multiple browsers.
Zapier MCP
A Zapier server that provides automation capabilities for various apps.