LabscoMCP early access ↗
chenxilolMCP SERVER

Perplexity Search

Web search with citations through the Perplexity API, from a single Go binary.

by chenxilol ↗Web Search EnginesCommunity

LABSCO SUMMARY

The filters are what make it worth having over plain search.

Recency and domain filtering are the two parameters that change answer quality most: restricting to the last week keeps a fast-moving topic from returning three-year-old pages, and naming domains is how you keep an answer inside sources you trust. Citations come back with the results, so a claim can be checked rather than taken. A single static binary with one environment variable is about as little operational surface as a search tool can have.

What it is

A Go implementation of a Perplexity search bridge. One tool, but with the full parameter surface of the underlying API exposed rather than a simplified wrapper.

What you get

  • perplexity_search performs a web search and returns results with citations
  • search_recency_filter narrows results to the last month, week, day or hour
  • search_domain_filter restricts the search to a list of domains you name
  • return_images and return_related_questions add image links and follow-up questions to the response
  • Generation controls passed straight through — max_tokens, temperature defaulting to 0.2, top_p defaulting to 0.9, presence_penalty, frequency_penalty and streaming
  • web_search_options carries additional search configuration such as context size

Requirements

Go 1.23 or higher to build the binary, or the Dockerfile in the repository. A Perplexity API key in PERPLEXITY_API_KEY, either in the shell or in the client's env block.

Setup effort

Build from source — Prerequisites: Go 1.23 or higher, and a Perplexity API key