Labsco
MCP SERVER

Perplexity Search

by chenxilol

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

Web Search Engines
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, or a one-line install through Smithery. A Perplexity API key in PERPLEXITY_API_KEY, either in the shell or in the client's env block.

Setup effort

One command plus a key — npx -y @smithery/cli install @chenxilol/perplexity-mcp-go --client claude, then supply credentials