
Store and retrieve entities, relations and observations in a persistent local knowledge graph.

A Python MCP server that interfaces with the Perplexity API for querying responses, maintaining chat conversations, and managing stored chat history.
Perplexity Chat MCP Server is cataloged as an MCP server attributed to daniel-lxs. A Python MCP server that interfaces with the Perplexity API for querying responses, maintaining chat conversations, and managing stored chat history. It is categorized under ai agents-models. See the capability inspector for recorded interfaces and their independent review status; consult upstream documentation for the current interface.
Installation configuration is not reviewed. No executable setup is offered for this entry; inspect the source repository before proceeding.
Catalog license label: MIT License. Check the source repository's current license and terms before using, modifying or distributing this software.
能力定义尚未审核。未核验的采集内容不会作为可信接口展示。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
暂无可展示的已审核记录。这不表示上游不支持此能力。
Email delivery is not connected. This page does not collect email addresses or create subscriptions.
Browse the registry for current listings instead.
Reviews for Perplexity Chat MCP Server are not available yet
Review publishing and storage are not connected. This page does not collect or publish ratings or comments, including after sign-in.
Yes, the chat_perplexity tool maintains ongoing conversations with full history context and stores chat data in a local database, with a chat ID returned for continuation.
No, read_chat_perplexity only reads from the local database without making any Perplexity API calls.
Yes, the server includes a web UI for interacting with and managing chats when enabled via the WEB_UI_ENABLED environment variable.
README.md · e791b61a2f50 · 采集于 2026-11-13 09:03:36 UTC
保留上游原文,不做 AI 改写。为安全起见过滤脚本、表单和不安全链接。
当前显示最后一次成功采集的文档快照,请以来源页面为准。
The Perplexity MCP Server provides a Python-based interface to the Perplexity API, offering tools for querying responses, maintaining chat history, and managing conversations. It supports model configuration via environment variables and stores chat data locally. Built with Python and setuptools, it's designed for integration with development environments.
The MCP Server is desined to mimick how users interact with the Perplexity Chat on their browser by allowing your models to ask questions, continue conversations, and list all your chats.
Model Configuration via Environment Variable: Allows you to specify the Perplexity model using the PERPLEXITY_MODEL environment variable for flexible model selection.
You can also specify PERPLEXITY_MODEL_ASK and PERPLEXITY_MODEL_CHAT to use different models for the ask_perplexity and chat_perplexity tools, respectively.
These will override PERPLEXITY_MODEL. You can check which models are available on the Perplexity documentation.
Persistent Chat History: The chat_perplexity tool maintains ongoing conversations with Perplexity AI. Creates new chats or continues existing ones with full history context. Returns chat ID for future continuation.
Streaming Responses with Progress Reporting: Uses progress reporting to prevent timeouts on slow responses.
Before using this MCP server, ensure you have:
Note: Installation instructions for uvx are available here.
To use this MCP server, configure your client with these settings (configuration method varies by client):
"mcpServers": {
"mcp-perplexity": {
"command": "uvx",
"args": ["mcp-perplexity"],
"env": {
"PERPLEXITY_API_KEY": "your-api-key",
"PERPLEXITY_MODEL": "sonar-pro",
"DB_PATH": "chats.db"
}
}
}
Configure the MCP Perplexity server using the following environment variables:
| Variable | Description | Default Value | Required |
|---|---|---|---|
PERPLEXITY_API_KEY | Your Perplexity API key | None | Yes |
PERPLEXITY_MODEL | Default model for interactions | sonar-pro | No |
PERPLEXITY_MODEL_ASK | Specific model for ask_perplexity tool | Uses PERPLEXITY_MODEL | No |
PERPLEXITY_MODEL_CHAT | Specific model for chat_perplexity tool | Uses PERPLEXITY_MODEL | No |
DB_PATH | Path to store chat history database | chats.db | No |
WEB_UI_ENABLED | Enable or disable web UI | false | No |
WEB_UI_PORT | Port for web UI | 8050 | No |
WEB_UI_HOST | Host for web UI | 127.0.0.1 | No |
DEBUG_LOGS | Enable detailed logging | false | No |
npx -y @smithery/cli@latest run @daniel-lxs/mcp-perplexity --config "{\"perplexityApiKey\":\"pplx-abc\",\"perplexityModel\":\"sonar-pro\"}"
The ask_perplexity tool is used for specific questions, this tool doesn't maintain a chat history, every request is a new chat.
The tool will return a response from Perplexity AI using the PERPLEXITY_MODEL_ASK model if specified, otherwise it will use the PERPLEXITY_MODEL model.
The chat_perplexity tool is used for ongoing conversations, this tool maintains a chat history.
A chat is identified by a chat ID, this ID is returned by the tool when a new chat is created. Chat IDs look like this: wild-horse-12.
This tool is useful for debugging, research, and any other task that requires a chat history.
The tool will return a response from Perplexity AI using the PERPLEXITY_MODEL_CHAT model if specified, otherwise it will use the PERPLEXITY_MODEL model.
Lists all available chat conversations. It returns a paginated list of chats, showing the chat ID, title, and creation time (in relative format). You can specify the page number using the page argument (defaults to 1, with 50 chats per page).
Retrieves the complete conversation history for a given chat_id. This tool returns all messages in the chat, including timestamps and roles (user or assistant). This tool does not make any API calls to Perplexity; it only reads from the local database.
The MCP Perplexity server now includes a web interface for easier interaction and management of chats.
When WEB_UI_ENABLED is set to true, the web UI will be available at http://WEB_UI_HOST:WEB_UI_PORT.
By default, this is http://127.0.0.1:8050.
This project uses setuptools for development and builds. To get started:
Create a virtual environment:
python -m venv .venv
source .venv/bin/activate # On Linux/macOS
# or
.venv\Scripts\activate # On Windows
Install the project in editable mode with all dependencies:
pip install -e .
Build the project:
python -m build
The virtual environment will contain all required dependencies for development.
This project is open to contributions. Please see the CONTRIBUTING.md file for more information.
This project is licensed under the MIT License. See the LICENSE file for details.
Claim this server with your GitHub account to request manual ownership verification.
Link to the catalog listing for Perplexity Chat MCP Server from your README. This badge does not certify ownership, compatibility or security.
[](https://awesome-mcp.com/servers/mcp-perplexity)Public repository statistics could not be verified. Check the configured source address; unavailable counts are not zero.
来源、范围和时段分别列出;不相加,不代表安装人数、活跃用户或安全审核。
尚无已审核的包 / 镜像标识,暂不展示下载统计。
Alternative and complementary servers in the same category

Store and retrieve entities, relations and observations in a persistent local knowledge graph.

Organize problem solving into revisable, branching thought steps through an MCP tool.

Query-aware context compression with an MCP plugin for coding agents, plus Python and HTTP interfaces for reducing the context sent to a language model.