Skip to main content

MCP Server for the Perplexity API.

Project description

Perplexity MCP Server

smithery badge

MCP Server for the Perplexity API.

Perplexity Server MCP server

Components

Tools

  • ask_perplexity: Request expert programming assistance through Perplexity. Focuses on coding solutions, error debugging, and technical explanations. Returns responses with source citations and alternative suggestions.

Key Features

  • Streaming Responses with Progress Reporting: Provides a more interactive experience by streaming responses and reporting progress during long queries.
  • Simplified Tool Parameters: The ask_perplexity tool now only requires a query parameter, simplifying its usage.
  • Model Configuration via Environment Variable: Allows you to specify the Perplexity model using the PERPLEXITY_MODEL environment variable for flexible model selection.
  • Improved Error Handling and Robustness: Incorporates better error handling and more robust API interaction.

Quickstart

Installation

Prerequisites

How to install uvx on Windows: Open PowerShell as Administrator and run:

powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex"

Windows Installation Notes:

  • Ensure Python 3.10+ is installed and added to PATH
  • The installation script will handle uvx setup
  • Your MCP client will manage package installation via the provided configuration

Configure your MCP Client

To use this MCP server, you need to configure your MCP client to connect to it. The configuration method will vary depending on your specific client.

Below is an example configuration in JSON format:

"mcpServers": {
  "Perplexity": {
    "command": "uvx",
    "args": [
      "mcp-perplexity"
    ],
    "env": {
      "PERPLEXITY_API_KEY": "your-perplexity-api-key",
      "PERPLEXITY_MODEL": "sonar-pro"
    }
  }
}

Important notes:

  • Replace "your-perplexity-api-key" with your actual Perplexity API key.
  • The "PERPLEXITY_MODEL": "sonar-pro" line is optional. If you omit it, the server will use the default Perplexity model.
  • Consult your MCP client's documentation for details on where to place this configuration and any client-specific settings.
  • Use the mcp-server-starter script to easily start the server.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_perplexity-0.1.1.tar.gz (18.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_perplexity-0.1.1-py3-none-any.whl (7.5 kB view details)

Uploaded Python 3

File details

Details for the file mcp_perplexity-0.1.1.tar.gz.

File metadata

  • Download URL: mcp_perplexity-0.1.1.tar.gz
  • Upload date:
  • Size: 18.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for mcp_perplexity-0.1.1.tar.gz
Algorithm Hash digest
SHA256 96bae68216590b9d852464a17a42b51007ef18a05aec539036a73c635c7f44f8
MD5 76d53ca54e7acd9d671f44fbd84cb2e5
BLAKE2b-256 3094b4f33fce6dbed1b26d761944d5613dc27485205edcadf82503fcc2db55e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_perplexity-0.1.1.tar.gz:

Publisher: pypi-publish.yml on daniel-lxs/mcp-perplexity

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file mcp_perplexity-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: mcp_perplexity-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 7.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.8

File hashes

Hashes for mcp_perplexity-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 891ed8815e2ae1656fb5bcc18bf806fcd23ed024cc0e8bd232e383475ce5f33f
MD5 8c8e589530f78cbed98339538e43bdb9
BLAKE2b-256 835faa79add10ac9455616e63bbdce9500c85aa7c0d3fe38f1317975d86e6946

See more details on using hashes here.

Provenance

The following attestation bundles were made for mcp_perplexity-0.1.1-py3-none-any.whl:

Publisher: pypi-publish.yml on daniel-lxs/mcp-perplexity

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page