home / mcp / perplexica mcp server
Provides an MCP interface to local Perplexica searches with focus modes, streaming, and history.
Configuration
View docs{
"mcpServers": {
"armand0e-perplexica-mcp": {
"url": "http://localhost:3000",
"headers": {
"PERPLEXICA_BASE_URL": "http://localhost:3000"
}
}
}
}You can run a local MCP server that interfaces with your Perplexica installation to perform AI-powered searches, streaming results, and managed conversations. This server exposes AI-powered search capabilities to your MCP clients and keeps model and conversation context handy for richer interactions.
You connect to the Perplexica MCP server from your MCP client by configuring a server entry that points to your local Perplexica instance. Run the server either as a local process (stdio) or as a remote HTTP endpoint. With the stdio approach, you launch the Python module that runs the MCP logic; with the HTTP approach, you point your client at a local URL where the server is listening.
Key capabilities you can leverage include AI-powered searches across different focus modes, real-time streaming responses, and the ability to preserve conversation history across searches. Tune the base URL so your client talks to the correct Perplexica instance, and ensure the environment variable that defines the base URL matches where Perplexica is running.
Prerequisites you need on your machine: Python 3.8 or newer, Git, and an internet connection to install dependencies.
git clone https://github.com/armand0e/perplexica-mcp.git
cd perplexica-mcp
pip install -e .The server connects to a local Perplexica instance. By default, Perplexica is expected to run at http://localhost:3000. You can override this with the PERPLEXICA_BASE_URL environment variable.
Example to set the base URL for Perplexica to a different port if needed:
export PERPLEXICA_BASE_URL=http://localhost:3000Launch the MCP server as a Python module in a local process. This makes the server available to MCP clients via a local standard input/output stream.
python -m perplexica_mcpIf you prefer exposing the server as an HTTP endpoint, point your MCP client to the local Perplexica URL. Ensure Perplexica is running at the configured address.
Performs AI-powered searches with various focus modes and returns results, with options for streaming responses.
Retrieves available chat and embedding models supported by the Perplexica MCP integration.