Comprehensive MCP server providing full control over the Perplexity API platform
Strong foundation with 14 well-named tools, comprehensive schemas, and detailed descriptions. All tools follow verb_noun naming (api_key_generate, sonar_chat, web_search). Descriptions average ~150 chars and explain WHAT, WHEN, and consequences. Input schemas are complete with types and constraints (enums for models, min/max for integers). However, output schemas are not documented, LLMs cannot predict response structure for downstream chaining. Error handling is present but generic (JSON error objects without recovery guidance). Missing tool annotations (readOnlyHint, destructiveHint) for irreversible operations like api_key_revoke and api_key_rotate.
Create an agent response using the Perplexity Agent API (POST /v1/agent). Supports multi-step agentic reasoning with web search, URL fetching, and custom function tools. Either model, models, or preset must be provided.
Generate a new Perplexity API key (POST /generate_auth_token). Returns the new auth_token, creation timestamp, and optional token_name. Note: This uses the PERPLEXITY_API_KEY set in your environment to authenticate.
Revoke an existing Perplexity API key (POST /revoke_auth_token). The revoked key will immediately stop working. This action is irreversible.
Rotate the current API key: generates a new key, verifies it works by making a test request, then revokes the old key. Returns the new key and rotation status. IMPORTANT: Save the new key immediately — it will not be shown again.
Generate context-aware embeddings for document chunks (POST /v1/contextualizedembeddings). Unlike standard embeddings, each chunk's vector is influenced by surrounding chunks in the same document, producing better representations for RAG. Input is an array of arrays: each inner array is a document's chunks.
Output schemas not documented. LLMs cannot predict response structure (fields, types, pagination) for downstream tool chaining. E.g., sonar_chat returns what fields? Does web_search return next_cursor for pagination?
Irreversible operations (api_key_revoke, api_key_rotate) lack tool annotations (destructiveHint) and confirmation/dry-run support. Agents cannot distinguish safe retries from destructive calls.
Error responses are generic JSON objects without recovery guidance. E.g., 'Invalid parameters' does not tell the LLM what to fix or whether to retry. Missing error classification (retryable vs user-fixable vs fatal).
Inferred effective spec: <=2025-11-25.
| Scored | Grade | Overall | Spec posture | Rubric |
|---|---|---|---|---|
| 2026-09-23 | C | 61 | <=2025-11-25 | v2 |
Generate dense vector embeddings for one or more text strings (POST /v1/embeddings). Use for semantic search, similarity comparison, or retrieval-augmented generation (RAG). Returns vectors in base64 format.
Estimate the USD cost of a request before sending it. Returns a breakdown by input tokens, output tokens, and tool invocations.
Test API connectivity and verify the configured PERPLEXITY_API_KEY is valid and working. Makes a minimal test request to the Sonar API.
List all available Perplexity models with descriptions, context lengths, and current pricing. Prices are in USD per million tokens.
Get the status or result of an async Sonar job (GET /v1/async/sonar/{request_id}).
List all async Sonar jobs (GET /v1/async/sonar).
Submit an asynchronous deep research job (POST /v1/async/sonar). Returns a request_id to poll with sonar_async_get. Ideal for sonar-deep-research model.
Chat completions with live web grounding using Perplexity Sonar models (POST /v1/sonar). Supports domain filters, recency filters, and location-aware search.
Perform a raw web search returning full page content (POST /search). Returns structured result objects with URL, title, and text content. Supports up to 5 parallel queries, domain filters, date filters, and specialized academic/SEC modes.
sonar_async_list and sonar_async_get descriptions are minimal (<75 chars). sonar_async_list has empty input schema, unclear what it returns or how to filter results.
web_search and sonar_chat accept domain filters as arrays with '-' prefix for exclusion. This convention is not documented in parameter descriptions, LLMs may not infer the syntax correctly.