Skip to main content
Glama

Perplexity MCP Server

MIT License
  • Apple

ask_perplexity

Access source-backed internet information to support research, fact-checking, or decision-making. Includes citations and diverse response choices for transparency and reliability.

Instructions

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" }
Install Server

Other Tools from Perplexity MCP Server

Related Tools

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/xiyuefox/mcp-server-perplexity'

If you have feedback or need assistance with the MCP directory API, please join our Discord server