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
Run the installer
Open a terminal in your project root and run:
bashnpx @infini-analytics/analytics-mcp install
This command registers the MCP server in VS Code's MCP configuration automatically.
- 2
Set your API token
When prompted, paste your InfiniAnalytics API token. The installer saves it as the
INFINI_TOKENenvironment variable in the MCP config. - 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_UUIDwith the UUID from the automation detail page. - 4
Add the tracking instructions
In your agent's prompt file (e.g.
.github/agents/my-agent.md),includeinfini-analyticsin the tools list and add the tracking block. See the Configuration page for the full tracking block.
Claude Code Setup
- 1
Add the MCP server via CLI
Windows (cmd / PowerShell):
powershellclaude mcp add infini-analytics -e INFINI_TOKEN=your_token -- npx @infini-analytics/analytics-mcp
Linux / macOS:
bashclaude mcp add infini-analytics \ -e INFINI_TOKEN=your_token \ -- npx @infini-analytics/analytics-mcp
- 2
Verify the connection
bashclaude mcp list
You should see
infini-analyticsin the list. - 3
Create the config file and add tracking instructions
Same as VS Code steps 3 & 4 above. See Configuration for the full details.
