Skip to content
VS Code

Plausible Analytics MCP for VS Code

io.github.surendranb/plausible-mcp

Plausible Analytics MCP: privacy-first website stats, real-time visitors, breakdowns, and trends.

client:VS Code transport:stdio runtime:pypi

Install Plausible Analytics MCP in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "plausible-api-key",
      "description": "PLAUSIBLE_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "plausible-site-id",
      "description": "PLAUSIBLE_SITE_ID",
      "password": true
    },
    {
      "type": "promptString",
      "id": "plausible-base-url",
      "description": "PLAUSIBLE_BASE_URL",
      "password": true
    }
  ],
  "servers": {
    "plausible-mcp": {
      "type": "stdio",
      "command": "uvx",
      "args": [
        "plausible-mcp"
      ],
      "env": {
        "PLAUSIBLE_API_KEY": "${input:plausible-api-key}",
        "PLAUSIBLE_SITE_ID": "${input:plausible-site-id}",
        "PLAUSIBLE_BASE_URL": "${input:plausible-base-url}"
      }
    }
  }
}

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

Plausible Analytics MCP in other clients