Skip to content
VS Code

Perplexity Agent for VS Code

io.github.zalez/perplexity-agent-mcp

Multi-step web research with citations via Perplexity's Agent API. Standard library only.

client:VS Code transport:stdio runtime:pypi

Install Perplexity Agent in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "perplexity-api-key",
      "description": "PERPLEXITY_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "perplexity-agent-wait-seconds",
      "description": "PERPLEXITY_AGENT_WAIT_SECONDS",
      "password": true
    }
  ],
  "servers": {
    "perplexity-agent-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "perplexity-agent-mcp"
      ],
      "env": {
        "PERPLEXITY_API_KEY": "${input:perplexity-api-key}",
        "PERPLEXITY_AGENT_WAIT_SECONDS": "${input:perplexity-agent-wait-seconds}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Perplexity Agent in other clients