perplexity-ai
Unofficial API Wrapper for Perplexity.ai + Account Generator with Web Interface
What is perplexity-ai?
Unofficial API Wrapper for Perplexity.ai + Account Generator with Web Interface
Overview of perplexity-ai
What it is
Perplexity AI is an unofficial Python wrapper for the Perplexity.ai web interface. It includes an account generator that uses Emailnator to create new Gmail accounts, enabling unlimited pro queries. The project provides both synchronous and asynchronous APIs, a web interface, and an optional MCP (Model Context Protocol) server that exposes Perplexity search as tools for clients like Claude Code. It does not require a paid API key; instead, it reverse-engineers the web interface.
Key features
- Account generation: automatically creates Gmail accounts via Emailnator to bypass query limits.
- Sync and async APIs: supports both synchronous and asynchronous programming models.
- Web interface: provides a browser-based GUI for account creation and usage.
- MCP server: exposes Perplexity search as tools (ask, research, reason, search) for MCP clients, with support for stdio and HTTP transports.
- File upload: allows document analysis and Q&A.
- Streaming responses: supports real-time response streaming.
- Retry logic and rate limiting: includes automatic retry with exponential backoff and built-in rate limiting.
Use cases
This project is intended for developers who want to integrate Perplexity.ai's search and reasoning capabilities into their own applications without a paid API key. It can be used for automated question answering, in-depth research, step-by-step reasoning, and web search. The MCP server is suitable for use with Claude Code and other MCP-compatible clients. The account generator is useful for scenarios where unlimited pro queries are needed.
Getting started
bashuv syncFor the MCP server:bashuv sync --extra mcp# or, to use as a standalone tool:uv tool install '.[mcp]'For the web interface with driver support:bashuv sync --extra driveruv run patchright install chromium
License and pricing
The project is licensed under the MIT license. It is open source and does not have a stated pricing model.
Based on the project's public README and repository metadata.