ask_perplexityLABSCO SUMMARY
Perplexity answers, in the window where the problem is.
The part that matters is the chat ID: an answer you got last week can be reopened and continued, and re-reading it costs nothing because the history lives on your machine rather than being fetched again.
What it is
A Python MCP server over the Perplexity API. It mirrors how you would use Perplexity in a browser — one-off questions, ongoing chats, and a list of everything you have asked — and keeps chat data locally.
What you get
- A one-off expert question answered, aimed at coding problems, error debugging and technical explanations, returned with source citations and alternative suggestions
- An ongoing conversation with full history context, returning a chat ID you can continue from later
- Every chat listed with IDs, titles and creation dates shown in relative time, a page at a time
- The complete history of one chat read back from local storage, with no API call made to Perplexity
- A different Perplexity model for asking than for chatting, if the two jobs deserve different ones
Requirements
Access to the Perplexity API. One environment variable picks the default model, and two more override it separately for asking and for chatting. Chat history is written to local storage on your machine, which is why re-reading a past conversation costs nothing.
Setup effort
One command plus a key — uvx mcp-perplexity, then supply credentials
USE CASES
Getting unstuck on an error you have never seen
Ask it directly and read the answer with its citations and alternatives.
Working a problem over more than one sitting
Start a chat, keep the ID, and continue it later with the full history still in context.
Finding the conversation you half remember
List your chats by title and date, fifty at a time.
Re-reading what you were told without paying for it again
Read the full history of a chat straight from local storage — no API call is made.
Picking up a thread and pushing it further
Read the chat back, then continue it in the same conversation.
4 tools
Listed in project docs. Your client may show a different list.
chat_perplexitylist_chats_perplexityread_chat_perplexityBEFORE YOU INSTALL
What to know first
Tools you get
4 tools named in the project's documentation.
Requires
- uvx on PATH
- Python 3.10 or later
- PERPLEXITY_API_KEY in your environment
INSTALLATION
Connect your client
Add the block to your client, or run the command directly.
Server setup
Configuration file
{
"mcpServers": {
"mcp-perplexity": {
"command": "uvx",
"args": [
"mcp-perplexity"
]
}
}
}The configuration on this page does not set PERPLEXITY_API_KEY. The project's README puts it in the env block of the server's entry in your client configuration, next to PERPLEXITY_MODEL and DB_PATH.
uvx
uvx mcp-perplexity