All tools

Search the web

Returns ranked web results for a query, each with its title, URL, snippet and dates, optionally limited to domains or a date range.

View on GitHub
Updated Sep 27, 2026Available asMCPCLIAPI

Description

On the CLI, `-n` sets the number of results (10 by default), and `--domains`, `--recency-filter`, the date flags and `--country` apply the Search API's filters. Extra queries on the CLI are rephrasings of one question, not separate searches, and come back as a single ranked list.

search-web.md

Search the web

Returns ranked web results for a query, each with its title, URL, snippet and dates, optionally limited to domains or a date range.

On the CLI, -n sets the number of results (10 by default), and --domains, --recency-filter, the date flags and --country apply the Search API's filters. Extra queries on the CLI are rephrasings of one question, not separate searches, and come back as a single ranked list.

Set up

Use the first option your agent supports.

MCP (official, remote)

Add this server to your agent's MCP settings, then sign in when asked.

{ "mcpServers": { "perplexity": { "url": "https://api.perplexity.ai/mcp" } } }

Call the MCP tool perplexity_search.

Server URL: https://api.perplexity.ai/mcp

CLI (official)

Install the command, then confirm it runs.

curl -fsSL https://github.com/perplexityai/perplexity-cli/releases/latest/download/install.sh | sh
pplx --version

Run pplx search web.

Set $PERPLEXITY_API_KEY in your environment first (get a key: https://console.perplexity.ai/project/keys).

API (official)

Before doing anything else, make one read-only call to confirm access.

Rules

  • Ask the user before anything that sends messages, costs money, or changes data.
  • Never print API keys.

Built from these files in the repository

The layout and the rules come from lib/catalog/render-markdown.ts, the set-up wording from lib/catalog/render-access.ts.

Ways in

RouteSourceCallRequiredDocs
MCPOfficial · remoteperplexity_searchOAuthDocs
CLIOfficialpplx search webAPI key in $PERPLEXITY_API_KEYDocs
APIOfficialPOST /searchAPI key in $PERPLEXITY_API_KEYDocs

Workflows using Search the web

No workflows yet
No published workflow uses Search the web yet.