This guide examines thetom42/perplexica-mcp, a third-party wrapper that exposes a Vane/Perplexica search API as an MCP tool. Keep the wrapper revision and Vane revision together when reproducing the setup. Other repositories with similar names can expose different tools or expect different API fields.
What does the MCP wrapper connect?
The connection is MCP client → Python wrapper → Vane search API → model and search services. Vane must already run and have reachable providers. The wrapper translates the client’s tool arguments into an HTTP request and returns the backend response.
Successful tool discovery establishes that the client can communicate with the wrapper. A search call additionally exercises Vane, its model provider and retrieval. A source appearing in the result still requires checking against the answer. These stages give you separate places to diagnose a failure.
Use the Docker installation guide for a prebuilt backend or the GitHub guide for a source build. Our test used an isolated current-source Vane instance on localhost port 3105.
Find the actual provider names and model keys
curl --fail http://127.0.0.1:3105/api/providersIn our test, the configured chat provider was named Local MCP Ollama, with model key qwen3:4b-instruct-2507-q4_K_M. The embedding provider was Transformers, with key Xenova/all-MiniLM-L6-v2. Your provider name may differ even when the underlying service is Ollama.
The reviewed wrapper can resolve a provider’s ID or configured name and match model keys or display names through this endpoint. Use its returned values. Setting the provider to ollama will fail if that string matches neither the configured name nor ID.
Also verify that Vane itself can reach the configured model and SearXNG. For Docker Desktop, the wrapper runs on the host in this example, while Vane reaches host Ollama using host.docker.internal. Each address belongs to the process making that request. See the connection checks and the JSON search checks.
Install a specific wrapper source revision
Our November 19 check could not resolve perplexica-mcp==0.3.6 from PyPI even though the repository manifest declared that version. The commands here therefore use the reviewed source commit and an isolated Python environment.
git clone https://github.com/thetom42/perplexica-mcp.git
cd perplexica-mcp
git fetch origin bdf9613e0891daf1b84ed6f7b25a3a8ce299d10b
git switch --detach bdf9613e0891daf1b84ed6f7b25a3a8ce299d10b
uv venv --python 3.12 .venv
uv pip install --python .venv/bin/python fastmcp==4.2.2 httpx==0.28.1 python-dotenv==1.2.4Our environment used Python 3.12.9 and these direct dependency versions. This selects the direct dependencies tested here; transitive dependency resolution can still change. Use a lockfile for an environment you intend to maintain. On Windows, the virtual environment’s executable is normally .venv\Scripts\python.exe.
The wrapper source runs from its src directory through PYTHONPATH. The example below gives the client absolute paths so it can start the same interpreter and import the selected checkout.
Configure a client that supports stdio MCP servers
Replace both /absolute/path/perplexica-mcp occurrences with your actual checkout path. Use your client’s documented MCP configuration location and merge this entry with its existing entries.
{
"mcpServers": {
"perplexica": {
"command": "/absolute/path/perplexica-mcp/.venv/bin/python",
"args": [
"-m",
"perplexica_mcp",
"stdio"
],
"env": {
"PYTHONPATH": "/absolute/path/perplexica-mcp/src",
"PERPLEXICA_BACKEND_URL": "http://127.0.0.1:3105/api/search",
"PERPLEXICA_CHAT_MODEL_PROVIDER": "Local MCP Ollama",
"PERPLEXICA_CHAT_MODEL_NAME": "qwen3:4b-instruct-2507-q4_K_M",
"PERPLEXICA_EMBEDDING_MODEL_PROVIDER": "Transformers",
"PERPLEXICA_EMBEDDING_MODEL_NAME": "Xenova/all-MiniLM-L6-v2",
"PERPLEXICA_READ_TIMEOUT": "180"
}
}
}
}This is an example client entry. We verified the wrapper using a programmatic stdio client; individual desktop clients and their current configuration formats were not tested. The configuration uses local model providers and contains no paid API credentials.
Prefer a local stdio connection for this reproduction. The wrapper also exposes network transports. If testing HTTP, specify the loopback bind explicitly, for example http 127.0.0.1 3002, and review access controls before making it reachable from another machine.
Verify discovery and one complete search call
- Restart the MCP connection and list the server’s tools. The reviewed wrapper exposes
search. - Confirm the backend URL includes
/api/searchand that both configured models resolve. - Call the tool with a narrow query and
sourcescontainingweb. Keep the timeout longer than the model and retrieval request needs. - Inspect the returned object for an
errorfield as well as the MCP transport status. - Open the returned sources and check whether they support the important claims.
{
"query": "According to Docker documentation, does removing a container delete its named volumes? Cite the source.",
"sources": [
"web"
],
"optimization_mode": "speed"
}The wrapper’s tool arguments use optimization_mode, while the underlying Vane API uses optimizationMode. Send the tool’s schema when invoking MCP. For direct HTTP checks, use the backend’s schema.
Locate the failure before changing configuration
| Observed symptom | Check | Next action |
|---|---|---|
| No search tool | Interpreter path, import path and wrapper stderr | Run the selected environment and checkout, then reconnect |
| Both models are required | Default model environment variables or explicit tool arguments | Provide both chat and embedding configurations |
| Provider or model not found | The live /api/providers response | Use its configured provider name / ID and model key |
| Connection refused | Backend URL from the wrapper process | Start Vane and use the correct host and port |
| Read timeout | Vane and Ollama progress, search engine health | Test each service and set an appropriate wrapper / client timeout |
| Answer with empty sources | Raw SearXNG output and Vane retrieval | Follow search failure diagnostics |
The reviewed code returns some failures inside an object with an error property. Treat that response as a failed search even when tool transport completed successfully. A reachable wrapper and a valid answer are different acceptance results.
Compatibility test and its limits
The wrapper revision was bdf9613e0891daf1b84ed6f7b25a3a8ce299d10b. The backend was Vane source revision 348feca3e378fb4157b217724ed508dc707f853f, manifest version 1.12.2, built in a Node 24.5.0 / Yarn 1.22.22 Linux ARM64 environment. It used local Qwen3 4B Instruct and Transformers embeddings.
The backend connected to the existing lab SearXNG, which contains a previously documented Mwmbl parser repair and a restricted engine selection. This does not establish behavior with every standard search-engine configuration. The reviewed wrapper source and dependency manifest are linked at the pinned repository revision.
The programmatic stdio check discovered search. Calling it without either model configuration returned the expected models-required error object. A second call resolved the provider names, reached the source-built Vane API and returned two source entries, but the answer said it could not find relevant information. Protocol and API connectivity passed; useful sourced-answer acceptance failed for this question in Speed mode.
The MCP result’s transport error flag was false despite that unhelpful answer. This is why acceptance must inspect the actual response and citations. This single call does not establish success with other questions, clients, transports or optimization modes.