perplexity-webui-scraper
View on GitHubAn advanced, high-performance Python client, MCP server, and REST API for reverse-engineering Perplexity AI's WebUI.
A Python client for Perplexity's internal WebUI endpoints, with a CLI, MCP server, and OpenAI-compatible REST API. Requires a Perplexity browser session token; supports streaming, conversation context, and file uploads.
Use Cases
Expose Perplexity models as tools for MCP-compatible AI agentsCall Perplexity through an OpenAI-compatible REST APISend prompts and follow-ups using a Python clientStream Perplexity responses in a CLI or applicationUpload files to supported Perplexity models
Built With
- Language
- Python
- Frameworks
- FastAPI · Model Context Protocol · Pydantic · Typer
Tags
MCP server · Perplexity AI · Python client · REST API · OpenAI-compatible · web scraping · streaming · conversation context