MCP Server

Installation

Install and configure the InfiniAnalytics MCP server for your AI coding environment.

Requirements

  • Node.js 18+ (for npx)
  • An InfiniAnalytics account and API token
  • An automation UUID from the InfiniAnalytics dashboard
  • VS Code with GitHub Copilot (agent mode) or Claude Code CLI

VS Code Setup

  1. 1

    Run the installer

    Open a terminal in your project root and run:

    bash
    npx @infini-analytics/analytics-mcp install

    This command registers the MCP server in VS Code's MCP configuration automatically.

  2. 2

    Set your API token

    When prompted, paste your InfiniAnalytics API token. The installer saves it as the INFINI_TOKEN environment variable in the MCP config.

  3. 3

    Create the config file

    In your repository, create .github/agents/infini-analytics.config.md:

    markdown
    # Infini Analytics Configuration
    
    automation_id: YOUR_AUTOMATION_UUID

    Replace YOUR_AUTOMATION_UUID with the UUID from the automation detail page.

  4. 4

    Add the tracking instructions

    In your agent's prompt file (e.g. .github/agents/my-agent.md),include infini-analytics in the tools list and add the tracking block. See the Configuration page for the full tracking block.

After installation, restart VS Code to load the new MCP server.

Claude Code Setup

  1. 1

    Add the MCP server via CLI

    Windows (cmd / PowerShell):

    powershell
    claude mcp add infini-analytics -e INFINI_TOKEN=your_token -- npx @infini-analytics/analytics-mcp

    Linux / macOS:

    bash
    claude mcp add infini-analytics \
      -e INFINI_TOKEN=your_token \
      -- npx @infini-analytics/analytics-mcp
  2. 2

    Verify the connection

    bash
    claude mcp list

    You should see infini-analytics in the list.

  3. 3

    Create the config file and add tracking instructions

    Same as VS Code steps 3 & 4 above. See Configuration for the full details.