etracker MCP Server
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
etracker MCP Server
An MCP (Model Context Protocol) server that exposes the etracker analytics API to AI assistants. Partners connect via HTTP and authenticate with their own API key plus an etracker account token passed per request.
Architecture
Transport: Stateless StreamableHTTP (
POST /mcp; no SSE stream)Auth: Single
Authorization: Bearer <partnerKey>.<etrackerToken>header (etracker token forwarded upstream asX-ET-Token)Rate limiting: Three-layer bucket per etracker API call (cache hits and protocol traffic are free) — burst guard (8 calls/10 s), global window (40 calls/5 min), per-partner window (20 calls/5 min). In-memory, so run a single replica.
Sessions: Stateless — every request gets a fresh transport +
McpServer, no session affinity needed.
Related MCP server: runalyze-mcp-server
Endpoints
Method | Path | Auth |
|
| none |
|
| required (stateless StreamableHTTP; |
Tools
Tool | Description |
| Lists all available etracker reports for the account |
| Returns available attributes and key figures for a report |
| Returns raw column definitions (types, sortable, filterable flags) |
| Traffic over time — visits, visitors, page impressions per year/month (default report: EATime). For top pages use |
| Conversion and e-commerce data (default report: EAConversions) |
| Traffic and conversions per marketing channel (default report: EAMedium) |
| Generic tool — fetch data from any report with filters |
| Compare one key figure between a |
All data tools accept from/to (YYYY-MM-DD, max 90 days), optional attributes and figures (up to 5 each; attributes default to the report's own default breakdown), limit/offset (default 100 rows, max 1000), and sort_column/sort_order. Responses are { total, rows, row_count, limit, offset, truncated }, where total is etracker's own totals row (deduplicated, not the sum of rows). compare_periods compares these totals.
For partners: what you need
An etracker Enterprise account. The Report API is only available in Enterprise accounts.
An etracker access token with the "Reporting API" scope, created in that account. A token is valid only for the account it was created in. See etracker's API documentation for where to create it.
A partner key from the operator of this server.
Your connector then sends both in one header: Authorization: Bearer <partnerKey>.<etrackerToken>.
If the token is wrong or lacks the scope, tools fail with a message saying so. etracker allows 50 API calls per 5 minutes per account; this server gives each partner about 20 per 5 minutes, and identical queries within 5 minutes are served from cache for free.
Authentication
The etracker token is not stored in the server — partners pass it per request inside the Authorization header (forwarded to etracker as X-ET-Token). The server only stores the mapping of partner API keys to partner IDs.
Both credentials travel in one Authorization: Bearer <partnerKey>.<etrackerToken> header rather than separate custom headers: some MCP connector proxies (observed with Claude Desktop) silently drop custom headers like X-Api-Key even when the header name itself is on Anthropic's approval allowlist — only Authorization is reliably forwarded everywhere.
Generate a partner key:
openssl rand -hex 32PARTNER_API_KEYS format (JSON object):
{"<key>": "<partner-id>", "<key2>": "<partner-id2>"}Local development
cp .env.example .env
# Edit .env and set PARTNER_API_KEYS
npm install && npm run devDocker
docker build -t etracker-mcp .
# Use a real key: openssl rand -hex 32 (keys must not contain ".")
docker run -p 3000:3000 \
-e PARTNER_API_KEYS='{"3f9a…64 hex chars…c21e":"partner-a"}' \
etracker-mcpDocker Compose
cp .env.example .env
# Edit .env: set PARTNER_API_KEYS
docker compose pull && docker compose up -d # prebuilt image from GHCR
# Testing local changes: build under the same tag, then start without pulling
docker build -t ghcr.io/fmeies/etracker-mcp:latest .
docker compose up -d --pull neverEvery push to main publishes ghcr.io/fmeies/etracker-mcp:latest (linux/amd64) after the tests pass, plus a sha-<commit> tag. Git tags vX.Y.Z publish matching version tags to pin in production.
Kubernetes / Helm
Do not use --set for partnerApiKeys — Helm interprets {, }, and , as special syntax and corrupts the JSON. Use a values file instead:
# my-values.yaml
partnerApiKeys: '{"<key>":"<partner-id>"}'
service:
type: ClusterIP # or NodePort / LoadBalancerhelm install etracker-mcp ./helm -f my-values.yamlIngress
# my-values.yaml
partnerApiKeys: '{"<key>":"<partner-id>"}'
ingress:
enabled: true
className: nginx
host: etracker-mcp.example.com
tls: true
tlsSecretName: etracker-mcp-tlsAll Helm values
Value | Default | Description |
|
| JSON object mapping API keys to partner IDs |
|
| Must be 1 — rate limits are in-memory per pod (the chart fails to render otherwise) |
|
|
|
|
| Container image |
|
| Image tag (pin a version in production) |
|
| Pull policy ( |
|
| Service type; expose via the TLS ingress. |
|
| NodePort value (30000–32767), used only with |
|
| Enable ingress |
|
| Ingress hostname |
|
| Enable TLS |
|
| Override default pageviews report ID |
|
| Override default conversions report ID |
|
| Override default ad report ID |
|
| CPU request |
|
| Memory request |
|
| CPU limit |
|
| Memory limit |
MCP client configuration
The server authenticates with a static Authorization header; it does not implement OAuth. Use a client that lets you set that header.
Claude Code
claude mcp add --transport http etracker https://etracker-mcp.example.com/mcp \
--header "Authorization: Bearer <your-partner-key>.<your-etracker-token>"Claude Desktop — via the mcp-remote bridge in claude_desktop_config.json (the header value goes through an env var because some platforms mangle spaces in args):
{
"mcpServers": {
"etracker": {
"command": "npx",
"args": ["-y", "mcp-remote", "https://etracker-mcp.example.com/mcp", "--header", "Authorization:${ETRACKER_MCP_AUTH}"],
"env": { "ETRACKER_MCP_AUTH": "Bearer <your-partner-key>.<your-etracker-token>" }
}
}
}Claude's built-in custom connector dialog (Settings → Connectors) only takes a URL plus optional OAuth credentials and cannot send a custom header, so it will try OAuth discovery and fail against this server.
Other clients that accept a remote URL with headers:
{
"mcpServers": {
"etracker": {
"url": "https://etracker-mcp.example.com/mcp",
"headers": { "Authorization": "Bearer <your-partner-key>.<your-etracker-token>" }
}
}
}Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
Related MCP Connectors
Query your Betterlytics web analytics from AI agents: traffic, funnels, journeys, errors, uptime.
Marketing data and actions for AI agents: GA4, Search Console, ads, social, SEO and WordPress.
Ask an assistant about your website traffic. Privacy-first web analytics, no cookies. OAuth.
Read your Traculo web analytics from an AI assistant: visitors, pages, sources, events and alerts.
Related MCP Servers
- AlicenseAqualityCmaintenanceEnables AI assistants to query privacy-first web analytics from Measure.events, including pageviews, top pages, referrers, and custom event tracking, all via natural language.62MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to access and analyze health metrics from Runalyze, including HRV, sleep, resting heart rate, and activities, through the Model Context Protocol.9MIT
- AlicenseNot gradedqualityDmaintenanceEnables querying etracker analytics reports via natural language. Provides tools to list reports, get metadata, and retrieve report data with filtering, sorting, and period comparison.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables AI assistants to retrieve comprehensive analytics data from Yandex Metrika accounts, including traffic, content, e-commerce, and user demographics.1MIT