---
title: "Reference: tracking script, APIs and MCP server"
description: "Reference for the DataPocket tracking script, the first-party proxy contract, the REST API for payments and goals, the read API, and the remote MCP server for Claude, Cursor and other AI assistants."
url: "https://datapocket.vo1d.studio/reference"
lang: "en"
updated: "2026-11-23"
---

# Reference: tracking script, APIs and MCP server

The exact rules, read from DataPocket's code: every script attribute, what a first-party proxy must forward, the payment, goal and stats endpoints, and the MCP server that gives AI assistants read-only access to your analytics.

- [Tracking script reference](https://datapocket.vo1d.studio/reference/tracking-script): Every attribute of the DataPocket script, the window.datapocket() API and its limits, what leaves the browser, cookieless mode, and pinned versions with Subresource Integrity.
- [First-party proxy: what to forward](https://datapocket.vo1d.studio/reference/first-party-proxy): What a proxy serving DataPocket from your own domain must forward (the event, User-Agent and the visitor's IP), what it must not (cookies), and how DataPocket reads the visitor's IP.
- [REST API: payments and goals](https://datapocket.vo1d.studio/reference/rest-api): The DataPocket Payment API and server-side goals: authentication, every field, idempotency, currencies, how payments find their visitor, responses and errors.
- [Read API: stats, visitors, funnels and insights](https://datapocket.vo1d.studio/reference/read-api): Read your DataPocket analytics over HTTPS with an API key: sites, overview, time series, breakdowns, goals, funnels, visitors, journeys, bots, realtime, annotations and the latest insights report. Parameters, limits and errors.
- [MCP server: your analytics in Claude, Cursor and other AI assistants](https://datapocket.vo1d.studio/reference/mcp): Connect claude.ai, Claude Desktop, Claude Code, Cursor or any MCP client to DataPocket: sign in with OAuth or use a read-only API key. Setup, the 17 read-only tools, units, limits and how visitor-supplied text is handled.

## More

- [Comparisons](https://datapocket.vo1d.studio/compare)
- [Guides](https://datapocket.vo1d.studio/guides)
- [Install guides](https://datapocket.vo1d.studio/docs)
