Skip to content
VS Code

Umami Analytics (Read-only) for VS Code

io.github.mrlinwang/umami-mcp

Read-only Umami analytics for self-hosted sites: traffic, referrers, sessions and events.

client:VS Code transport:stdio runtime:npm

Install Umami Analytics (Read-only) in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "umami-url",
      "description": "UMAMI_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "umami-api-token",
      "description": "UMAMI_API_TOKEN",
      "password": true
    },
    {
      "type": "promptString",
      "id": "umami-website-id",
      "description": "UMAMI_WEBSITE_ID",
      "password": true
    },
    {
      "type": "promptString",
      "id": "umami-timezone",
      "description": "UMAMI_TIMEZONE",
      "password": true
    }
  ],
  "servers": {
    "umami-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "mrlinwang-umami-mcp"
      ],
      "env": {
        "UMAMI_URL": "${input:umami-url}",
        "UMAMI_API_TOKEN": "${input:umami-api-token}",
        "UMAMI_WEBSITE_ID": "${input:umami-website-id}",
        "UMAMI_TIMEZONE": "${input:umami-timezone}"
      }
    }
  }
}

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

Umami Analytics (Read-only) in other clients