Labsco
AStheTECH logo

MewCP Perplexity MCP

from AStheTECH

Hosted, Stateless & Multitenant Perplexity MCP server enables AI assistants to perform web research and retrieve AI-powered search results through Perplexity.

๐Ÿ”ฅ๐Ÿ”ฅโœ“ VerifiedFreeQuick setup

Answer any question with live web search, citations, and AI reasoning โ€” all in one call.

A Model Context Protocol (MCP) server that exposes Perplexity AI's API for real-time web search and conversational queries with cited sources.

Overview

The Perplexity MCP Server provides AI-powered web search with grounded, citation-backed responses:

  • Query the live web and get LLM-synthesized answers with source references
  • Control response length, temperature, and the underlying search model
  • Browse available Perplexity models to choose the right capability for each task

Perfect for:

  • Giving AI assistants access to current events, news, and real-time information
  • Answering research questions that require up-to-date facts beyond the model's training cutoff
  • Enriching AI workflows with cited, verifiable web sources

Tools

health_check โ€” Check server readiness

Returns a status object confirming the server is running and reachable.

Inputs: (none)

Output:

{
  "status": "ok",
  "server": "CL Perplexity MCP Server"
}
search โ€” Search the web with Perplexity AI

Sends a query to Perplexity's online search models and returns an LLM-generated answer with citations from live web sources.

Inputs:

- `query`       (string, required)  โ€” Search query to look up on the web
- `model`       (string, optional)  โ€” Model to use (default: llama-3.1-sonar-small-128k-online)
- `max_tokens`  (integer, optional) โ€” Maximum tokens in the response, 1โ€“4096
- `temperature` (float, optional)   โ€” Sampling temperature 0โ€“2; higher = more creative (default: model default)

Output:

{
  "success": true,
  "query": "latest AI research papers 2025",
  "response": "Recent AI research has focused on...",
  "model": "llama-3.1-sonar-small-128k-online",
  "usage": {
    "prompt_tokens": 12,
    "completion_tokens": 320,
    "total_tokens": 332
  }
}
get_models โ€” List available Perplexity models

Returns all models available through the Perplexity API, grouped into online (web search) and offline (non-search) categories.

Inputs: (none)

Output:

{
  "success": true,
  "total_models": 6,
  "online_models": [
    "llama-3.1-sonar-small-128k-online",
    "llama-3.1-sonar-large-128k-online",
    "llama-3.1-sonar-huge-128k-online"
  ],
  "other_models": [
    "llama-3.1-sonar-small-128k-chat",
    "llama-3.1-sonar-large-128k-chat"
  ],
  "all_models": [...]
}

API Parameters Reference

Model Selection

Online models (include live web search):

  • llama-3.1-sonar-small-128k-online โ€” Fast, cost-efficient; default for web search
  • llama-3.1-sonar-large-128k-online โ€” Higher quality answers, more thorough search
  • llama-3.1-sonar-huge-128k-online โ€” Best quality, most comprehensive; highest cost

Use get_models to retrieve the current full list โ€” new models are added periodically.

Generation Parameters
  • temperature โ€” Controls randomness; 0.0 for focused factual answers, 1.0+ for creative responses (range: 0โ€“2)
  • max_tokens โ€” Caps response length; useful for controlling cost and latency (range: 1โ€“4096)

Getting Your Perplexity API Key

Steps
  1. Go to the Perplexity API Settings
  2. Sign in or create a Perplexity account
  3. Under API Keys, click + Generate
  4. Copy the generated key โ€” store it securely, it will not be shown again

Perplexity API usage is billed per request based on the model and token count. Online models consume additional credits for web search.