Perplexity MCP Server
by tanigami
Python
8
Interacting with Perplexity API.
Prompts
Interactive templates invoked by user choice
Name | Description |
---|---|
No prompts |
Resources
Contextual data attached and managed by the client
Name | Description |
---|---|
No resources |
Tools
Functions exposed to the LLM to take actions
Name | Description |
---|---|
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. |
Server Configuration
Describes the environment variables required to run the server.
Name | Required | Description | Default |
---|---|---|---|
PERPLEXITY_API_KEY | Yes | Your Perplexity API key |
README.md
Perplexity MCP Server
MCP Server for the Perplexity API.
:warning: Limitations:
- The Claude Desktop client may timeout if Perplexity processing takes too long
- This issue might be resolved if Claude Desktop implements support for long running operations and progress reporting in the future
- Implementation updates to handle these features will be made if they become available
Components
Tools
- ask_perplexity: Request chat completion with citations from Perplexity
Quickstart
Install
Claude Desktop
- On macOS:
~/Library/Application\ Support/Claude/claude_desktop_config.json
- On Windows:
%APPDATA%/Claude/claude_desktop_config.json
Copy
"mcpServers": {
"Perplexity": {
"command": "uvx",
"args": [
"mcp-server-perplexity"
],
"env": {
"PERPLEXITY_API_KEY": "your-perplexity-api-key"
}
}
}
GitHub Badge
Glama performs regular codebase and documentation scans to:
- Confirm that the MCP server is working as expected.
- Confirm that there are no obvious security issues with dependencies of the server.
- Extract server characteristics such as tools, resources, prompts, and required parameters.
Our directory badge helps users to quickly asses that the MCP server is safe, server capabilities, and instructions for installing the server.
Copy the following code to your README.md file: