Perplexity MCP Server

MIT License
27
  • Apple

ask_perplexity

Perplexity equips agents with a specialized tool for efficiently gathering source-backed information from the internet, ideal for scenarios requiring research, fact-checking, or contextual data to inform decisions and responses. Each response includes citations, which provide transparent references to the sources used for the generated answer, and choices, which contain the model's suggested responses, enabling users to access reliable information and diverse perspectives. This function may encounter timeout errors due to long processing times, but retrying the operation can lead to successful completion. [Response structure]

  • id: An ID generated uniquely for each response.
  • model: The model used to generate the response.
  • object: The object type, which always equals chat.completion.
  • created: The Unix timestamp (in seconds) of when the completion was created.
  • citations[]: Citations for the generated answer.
  • choices[]: The list of completion choices the model generated for the input prompt.
  • usage: Usage statistics for the completion request.

Input Schema

NameRequiredDescriptionDefault
messagesYesA list of messages comprising the conversation so far.
modelYesThe name of the model that will complete your prompt.

Input Schema (JSON Schema)

{ "properties": { "messages": { "description": "A list of messages comprising the conversation so far.", "items": { "properties": { "content": { "description": "The contents of the message in this turn of conversation.", "type": "string" }, "role": { "description": "The role of the speaker in this turn of conversation. After the (optional) system message, user and assistant roles should alternate with user then assistant, ending in user.", "enum": [ "system", "user", "assistant" ], "type": "string" } }, "required": [ "content", "role" ], "type": "object" }, "type": "array" }, "model": { "description": "The name of the model that will complete your prompt.", "enum": [ "llama-3.1-sonar-small-128k-online" ], "type": "string" } }, "required": [ "model", "messages" ], "type": "object" }

You must be authenticated.

Other Tools