P

Perplexity Advanced

Command-line interface for interacting with Perplexity and OpenRouter APIs, supporting both simple q...

7 views
0 installs
Updated Jan 19, 2026
Not audited
Command-line interface for interacting with Perplexity and OpenRouter APIs, supporting both simple queries and complex file attachments with easy provider switching through a containerized Docker implementation.
  1. Decide which provider you will use (only one): OpenRouter or Perplexity — do NOT supply both keys (the MCP will error if both are provided).

  2. If you choose Perplexity — create an API group, add billing if required, then generate an API key:

    1. Sign in to your Perplexity account and open Settings → API (API Keys / API Groups).
    2. Create an API Group if prompted (Perplexity requires an API group before generating keys).
    3. Click “Create / Generate API Key” (give it a descriptive name), then copy and securely store the token immediately — you will only see the full key once. (docs.perplexity.ai)
  3. If you choose OpenRouter — generate an API key:

    1. Sign in to OpenRouter.
    2. Go to the API Keys or API Keys management area.
    3. Create a new API key (name it, optionally set a credit/usage limit), then copy and securely store the key. (openrouter.ai)
  4. Open the FastMCP connection interface (use the “Install Now” button you already have) and paste the key into the appropriate environment variable field:

    1. If you created a Perplexity key, paste it into PERPLEXITY_API_KEY.
    2. If you created an OpenRouter key, paste it into OPENROUTER_API_KEY.
    3. Leave the other provider’s field empty. Save/apply the connection settings in FastMCP.
  5. Optional — local / CLI testing (if you prefer to run the MCP locally instead of via FastMCP):

    • macOS / Linux:
      • export PERPLEXITY_API_KEY="your_key_here" (or export OPENROUTER_API_KEY="your_key_here")
    • Windows (PowerShell):
      • $Env:PERPLEXITY_API_KEY = "your_key_here" (or $Env:OPENROUTER_API_KEY = "your_key_here")
    • Then run the MCP as in the README (e.g., uvx perplexity-advanced-mcp).
      Note: CLI args/environment variables take precedence over other config.
  6. Security & verification:

    1. Treat the key as a secret — do not commit it to source control or expose it in client-side code.
    2. After saving the key in FastMCP, start the MCP (or use the FastMCP test/run) to confirm it authenticates successfully. If you see authentication errors, regenerate a key or verify you placed the token in the correct ENV field. (docs.perplexity.ai)

Quick Start

View on GitHub

More for Web Search

View All →

More for Developer Tools

View All →

Similar MCP Servers

Report Issue

Thank you! Your issue report has been submitted successfully.