perplexity-mcp-server

nikolaospapagiannis/perplexity-mcp-server

3.1

If you are the rightful owner of perplexity-mcp-server and would like to certify it and/or have it hosted online, please leave a comment on the right or send an email to henry@mcphub.com.

The MCP Perplexity Proxy Server is a Node.js server that proxies requests to Perplexity AI's Sonar models, supporting both OpenAI-compatible and MCP-native requests with streaming capabilities.

๐Ÿš€ 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?"}]}'