ExplainedShare

How to connect Perplexity to n8n, Home Assistant and MCP clients

Perplexity has an official MCP server on GitHub and its own node in n8n, and Home Assistant speaks the same protocol, which carries web search into other workflows.

By MOBAEO Newsroom··2 min read

Follow
Close-up of black electrical adapters stacked on a gray background.
Photo: Castorly Stock/Pexels

Perplexity can work outside its own website in three ways that tend to show up together: as an MCP server, connected to AI assistants and to clients such as Cursor and VS Code; as an automation node in n8n; and alongside Home Assistant, which uses the same protocol, the Model Context Protocol (MCP). In the first two cases, access runs through a Perplexity credential.

Perplexity's official MCP server

According to the official repository published on GitHub, Perplexity's MCP server gives AI assistants real-time web search, reasoning and research through the Agent API and the Search API. The remote version is hosted by Perplexity itself, needs no installation or updates, and connects over Streamable HTTP using an API key obtained from the API Portal.

For clients that don't yet support remote servers, there is a local installation. Most clients use the same mcpServers structure in their configuration, and Cursor and VS Code offer one-click connect buttons. On corporate networks, the PERPLEXITY_PROXY variable points to the company proxy; for cloud or shared use, the server runs in HTTP mode.

The server ships with four tools. Direct search uses the Search API and returns ranked results, with a recency filter, domain restriction and a fast mode with lower latency and cost. The other three handle quick questions, deep research (which can take minutes) and reasoning for complex analytical tasks. Results include publication and last-updated dates when available.

Perplexity in n8n

According to the n8n documentation, the Perplexity node is used to automate tasks and integrate Perplexity with other apps. The available operation is sending a message to a model, which generates one or more responses to a prompt. When the operation you need isn't in the node, the workaround is the HTTP Request node, which calls the service's API with the same credential you already created.

Home Assistant and MCP

Home Assistant has two MCP integrations that work in opposite directions. In the Model Context Protocol integration, Home Assistant is the server: an AI app such as ChatGPT or Claude can control devices and see the current state of the home, within the tool sets you allow. If the app runs in the cloud, the instance has to be reachable from the internet.

In the other direction, the Model Context Protocol Client integration lets Home Assistant's conversation agent use tools from another service, and the documentation cites web search as an example. A search server like Perplexity's, which delivers web search over the same protocol, fits this direction.

For brand teams, the practical takeaway is that Perplexity's search can leave its own site and move into automations and assistants, with domain and recency filters and with source publication dates when they exist. That makes it possible to track current information inside the tools the team already uses.

Key questions

How do I use Perplexity in n8n?

n8n has a dedicated Perplexity node, authenticated with a credential from the service. The available operation is sending a message to a model, which generates one or more responses to a prompt.

What if the Perplexity node in n8n doesn't have the operation I need?

Use the HTTP Request node to call the Perplexity API. In it, choose Authentication > Predefined Credential Type and select the service, reusing the credential you already created.

How do I connect Perplexity to Home Assistant?

For Home Assistant's conversation agent to use tools from another service, such as web search, the integration to use is Model Context Protocol Client. Perplexity offers web search over the same protocol through its MCP server.

What's the difference between Home Assistant's two MCP integrations?

In Model Context Protocol, an AI app such as ChatGPT or Claude controls Home Assistant. In Model Context Protocol Client, Home Assistant's conversation agent is the one using tools from another service.

What is the Perplexity MCP on GitHub?

It's Perplexity's official MCP server, published on GitHub, which gives AI assistants real-time web search, reasoning and research through the Agent API and the Search API.

Do I need to install the Perplexity MCP server?

Not necessarily. The remote version is hosted by Perplexity and connects over Streamable HTTP with your API key; local installation is for clients that don't yet support remote servers.

What tools does the Perplexity MCP offer?

There are four: direct search through the Search API, with date and domain filters; chat for quick questions; deep research; and reasoning for complex analytical tasks.

How do I set up the Perplexity MCP on a corporate network with a proxy?

The recommended way is the PERPLEXITY_PROXY variable, with the address and port provided by your IT team. The server also accepts HTTPS_PROXY and HTTP_PROXY, in that order of priority.

How do I fix a timeout error in the Perplexity MCP?

For very long research tasks, increase the PERPLEXITY_TIMEOUT_MS value. The default is 5 minutes.

Sources: GitHub, n8n, Home Assistant.