Perplexity Chat

Perplexity Chat is an MCP server that connects Model Context Protocol clients directly to the Perplexity API for web-augmented answers and persistent conversation management. Software developers, technical researchers, and automated coding assistants use this server to fetch live web search citations, debug programming code, and maintain context across long-running interactions. The server provides tools to handle one-off queries through ask_perplexity, which focuses on debugging and technical explanations, as well as multi-turn dialogues through chat_perplexity using persistent chat identifiers. It records conversations locally in an SQLite database without resending previous messages across API calls, and supports local inspection using read_chat_perplexity and list_chats_perplexity. Users can configure distinct Perplexity models such as sonar-pro for standalone queries and conversational tasks via environment variables. By streaming responses with progress reporting, the server prevents connection timeouts during complex web searches and multi-step technical inquiries. It also provides an optional built-in web interface for directly browsing and managing stored chat sessions on a local host.

Category: AI & LLM Tooling

Tags: conversational-ai, llm, perplexity, search

Visit Perplexity Chat

How to install and configure Perplexity Chat

  1. Ensure Python 3.10 or higher and the uvx package manager are installed. 2. Obtain an API key from Perplexity AI. 3. Add mcp-perplexity to your MCP client configuration file: json "mcpServers": { "mcp-perplexity": { "command": "uvx", "args": ["mcp-perplexity"], "env": { "PERPLEXITY_API_KEY": "your-api-key", "PERPLEXITY_MODEL": "sonar-pro", "DB_PATH": "chats.db" } } } 4. Replace "your-api-key" with your Perplexity API key. 5. Restart your MCP client to load the tools.

What you can do with Perplexity Chat

  • Debugging programming errors and syntax issues by querying Perplexity with the ask_perplexity tool to retrieve code fixes and citation links. - Conducting multi-turn technical research by maintaining conversational context and tracking continuous session IDs through the chat_perplexity tool. - Reviewing historical discussions and prompt iterations locally using read_chat_perplexity without triggering external API calls to Perplexity. - Browsing and paginating past research sessions through list_chats_perplexity to locate conversation IDs and relative creation timestamps. - Configuring separate models for quick standalone searches and deep conversational threads using PERPLEXITY_MODEL_ASK and PERPLEXITY_MODEL_CHAT environment variables.

Key facts

  • https://github.com/sengokudaikon/mcp-perplexity
  • AI & LLM Tooling, Web Search & Research
  • conversational-ai, llm, perplexity, search

Part of MCP Servers

Related MCP servers

  • MCP Memory Dashboard — MCP Memory Dashboard is an MCP server desktop interface that connects to the MCP Memory Service to provide visual semantic…
  • MCP Manager — MCP Manager is an MCP server management tool that connects directly to your Claude Desktop environment, enabling users to discover,…
  • MCP Lab — MCP Lab is an MCP server development environment designed for building, testing, and debugging custom Model Context Protocol servers integrated…
  • MCP LLM Integration Server — MCP LLM Integration Server is an MCP server that connects local Large Language Model runtimes with Model Context Protocol clients…
  • MCP NPX Fetch — MCP NPX Fetch is an MCP server that retrieves online resources and transforms web content into structured formats including HTML,…
  • MCP Naver News — MCP Naver News is an MCP server that connects AI assistants to the Naver News API, enabling automated search and…

What can Perplexity Chat do?

Perplexity Chat connects your MCP client to the Perplexity API. It enables you to ask technical and programming questions, debug code with real-time web citations, run continuous multi-turn conversations tracked by chat identifiers, and review conversation logs stored locally in an SQLite database. It also includes an optional local web user interface for inspecting chats.

How do I install Perplexity Chat?

You install and run Perplexity Chat using uvx by adding it to your MCP client configuration under mcpServers. Specify uvx as the command and mcp-perplexity as the argument, and define your PERPLEXITY_API_KEY in the environment section. Alternatively, you can run it via the Smithery CLI or install it locally in editable mode using pip.

Which MCP clients work with Perplexity Chat?

Perplexity Chat works with any Model Context Protocol compliant client that supports local stdio command execution, including Claude Desktop and Cursor. As long as the client can launch uvx or Python processes and supply the required environment variables, it can register and use the tools.

Does reading chat history consume Perplexity API credits?

No, reading chat history does not make external calls to Perplexity. The read_chat_perplexity and list_chats_perplexity tools retrieve stored messages, roles, and timestamps directly from your local SQLite database file specified by DB_PATH, avoiding external API requests and preserving your API credits when reviewing previous conversation context.

Is Perplexity Chat open source?

Yes, Perplexity Chat is open-source software distributed under the MIT License. The project repository is hosted on GitHub, allowing developers to inspect the source code, contribute bug fixes or improvements, and build custom setups using Python and setuptools without licensing restrictions.

  • AI Tools
  • Categories
  • Industries
  • CLI Coding Agents
  • MCP Servers
  • MCP Categories