Skip to main content
Glama

The MCP server of Pyxis: lets Claude and other AI agents read your dashboard's numbers, only reading, through a connection or a token you can revoke at any time.

CI Coverage CodeQL OpenSSF Scorecard License: MIT TypeScript strict Conventional Commits npm npm provenance

Pyxis · Live demo · API reference

Status: on npm as pyxis-mcp, every release published from GitHub Actions with provenance, and served by the Pyxis API at https://api.pyxis-analytics.dev/mcp.

Ecosystem

Repository

Role

pyxis-api

Ingestion, sign-in, dashboard queries, accounts and billing, erasure, the MCP endpoint

pyxis-sdk

Browser tracker published to npm as pyxis-analytics

pyxis-web

The dashboard and the home page

pyxis-mcp (this one)

MCP server: Claude and other agents read the dashboard's numbers

Related MCP server: @shieldlabs-ai/mcp

Why it exists

More and more questions about a product are asked to an agent instead of a dashboard: "how did last week compare", "where does the sign-up funnel lose people", "which route started failing". This server gives Claude Code, Claude Desktop, Cursor and other MCP clients the same numbers the Pyxis dashboard shows, and nothing more: it reads through a Claude connection the admin allows or an access token the admin creates, both read-only and revocable in the dashboard's Settings at any moment. Like the rest of Pyxis, events carry no cookies, no IP addresses and no user agents, so there are none to hand over.

Tools

Every tool only reads, and maps to one GET route of the Pyxis API. Dates are YYYY-MM-DD in the project's time zone; list_projects gives each project's today, so call it first. The server's instructions tell the agent what an empty account means: with no project, one is created in the dashboard; with a project that has received no event, the site does not run the tracker yet, and llms.txt explains how to install it.

Tool

What it answers

list_projects

The projects the token can read: id, name, time zone, today there, conversion event, currency, first and last event

overview

Visits, unique visitors, identified users, conversions and revenue of a chosen goal, failed writes vs. last period; top pages, events

devices

Visits and conversions of a chosen goal by device type, browser, system, country, region and city; the reach of the range

acquisition

Visits per day and channel, each channel's totals, and the sources and campaigns behind them, with the conversions and revenue of a chosen goal

goals

Every goal of the project with its conversions, converting visits, rate and revenue over a range; the ids the other tools take

annotations

The notes the project's people wrote on the days of a range, such as a launch: what often explains a jump in a daily series

engagement

Entry and exit pages, single-page visits, visit length

time_of_day

Visits by weekday and local hour

features

The most used named events or screens, day by day

event_properties

How the property values of one named event break down

property_summary

The median and quartiles of a numeric property, split by another: how long people read each article

requests

Calls to the site's backend per route: failures, statuses, durations, latest errors

funnel

How many visits or people reached each step, the time between steps, and the revenue of each event step

funnel_segments

The same funnel per device type or channel

funnel_subjects

The visits or people who reached, or dropped at, one step

visits

The visits of a range, filtered by pages, events, channel, device, place, campaign, goal reached, failed requests or unique visitors; each with its visitor kind

visit_timeline

Every event of one visit, or every visit of one identified person

project_settings

Time zone, conversion event, currency, allowed origins, retention, whether the city is kept, live public keys

Revenue is the sum of the numeric revenue property the site sends on a goal's events, or on the event that completes a funnel step, in the project's currency and as sent: nothing is converted between currencies, and a page goal or page step has none (null).

A result is JSON text, { "untrusted_visitor_text": "…", "report": … }: the report is the API's answer, and the first field reminds the agent that names, paths and values inside it were written by the site's visitors. The annotations tool answers untrusted_owner_text instead: its notes were written by the project's people in the dashboard, and are data all the same. Times come in the project's time zone, with the offset of each moment (2026-10-13T22:41:41.638-03:00), where the API answers in UTC, and in UTC (+00:00) when the Node running the server does not know that zone; the timeline's before takes any offset (ADR 0004). Problems come back as tool errors the agent can act on (a revoked token, an unknown project, the rate limit and when to retry). When the API refuses a request (any 4xx), the error carries the API's own code and reason, such as a suspended account; only a 5xx asks to try again later.

Connect from Claude

The hosted Pyxis serves these tools at https://api.pyxis-analytics.dev/mcp. Claude connects to it with no token and nothing to install: you sign in to Pyxis once and allow the connection.

Claude (on the web, the desktop app and the phone):

  1. In Claude, open Settings, then Connectors, and choose Add custom connector. In some versions the menu is Customize, then Connectors.

  2. Name it Pyxis and paste https://api.pyxis-analytics.dev/mcp. Leave the advanced OAuth fields empty.

  3. Choose Connect. A Pyxis page opens: sign in with the code sent to your e-mail, check the app, where its data goes and your projects, and choose Allow.

Claude Code:

claude mcp add --transport http pyxis https://api.pyxis-analytics.dev/mcp

Then run /mcp in Claude Code, pick pyxis and choose Authenticate: the same Pyxis page opens in the browser.

A connection only reads the numbers you see in the dashboard, from every project you can open. It renews itself while it is used (each access token lasts an hour) and ends when you revoke it in the dashboard, under Settings, Connected apps, or after 90 days without use; you keep up to ten. The data Claude asks for goes from the Pyxis API to Anthropic, which handles it under its own terms. Only Claude and Claude Code connect this way; other clients use an access token.

Connect from other clients

A client that sends a header reaches the same address with an access token instead of signing in. Create one in the dashboard (Settings, Access tokens), choose how long it lives, and revoke it there when it is no longer needed. It reads the same projects as its admin, and only reads.

Cursor (~/.cursor/mcp.json), with the token in the PYXIS_TOKEN environment variable:

{
  "mcpServers": {
    "pyxis": {
      "url": "https://api.pyxis-analytics.dev/mcp",
      "headers": { "Authorization": "Bearer ${env:PYXIS_TOKEN}" }
    }
  }
}

VS Code (mcp.json), which asks for the token once and keeps it out of the file:

{
  "inputs": [
    {
      "type": "promptString",
      "id": "pyxis-token",
      "description": "Pyxis access token",
      "password": true
    }
  ],
  "servers": {
    "pyxis": {
      "type": "http",
      "url": "https://api.pyxis-analytics.dev/mcp",
      "headers": { "Authorization": "Bearer ${input:pyxis-token}" }
    }
  }
}

Claude Code, with a token instead of signing in:

claude mcp add --transport http pyxis https://api.pyxis-analytics.dev/mcp --header "Authorization: Bearer pyxis_at_…"

A client that only runs servers on the computer uses the package with the same token (see Run it on your computer). ChatGPT cannot connect yet: its connectors sign in only with OAuth and cannot send an access token, and the Pyxis OAuth server knows only Claude and Claude Code.

Configuration

Variable

Required

Meaning

PYXIS_TOKEN

yes

A read-only access token (pyxis_at_ and 32 letters and digits), created in the dashboard under Settings

PYXIS_API_URL

no

The Pyxis API to read, as an origin. Defaults to https://api.pyxis-analytics.dev; plain http only for localhost

A missing or malformed value stops the server with a sentence on standard error that names the variable and never repeats its value.

Run it on your computer

To run the tools on your own computer, or against a self-hosted Pyxis, create a token in the dashboard (Settings, Access tokens), then add the server to your client. It runs with npx, so there is nothing to install beforehand (Node 22 or later).

Claude Code:

claude mcp add pyxis -e PYXIS_TOKEN=pyxis_at_… -- npx -y pyxis-mcp

Claude Desktop (claude_desktop_config.json) and Cursor (.cursor/mcp.json):

{
  "mcpServers": {
    "pyxis": {
      "command": "npx",
      "args": ["-y", "pyxis-mcp"],
      "env": { "PYXIS_TOKEN": "pyxis_at_…" }
    }
  }
}

A self-hosted Pyxis adds PYXIS_API_URL. To run it from source instead, npm ci && npm run build in a clone and use node /path/to/pyxis-mcp/dist/cli.js as the command. Keep the token out of shared files and chats; revoke it in the dashboard the moment it leaks.

Use it as a library

Clients that only accept remote servers need the tools at a URL. The package exports them so a host can serve them from its own endpoint, over Streamable HTTP, with the token of whoever is calling. It is an ES module that a CommonJS host can also require() (Node 22.12 or later).

import { handleHttpRequest, PyxisApi } from 'pyxis-mcp';

export function answerMcp(request: Request, callerToken: string): Promise<Response> {
  const api = new PyxisApi({
    token: callerToken,
    apiUrl: 'https://api.pyxis-analytics.dev',
    problemTexts: {
      refusedToken: 'Pyxis refused this connection: connect Pyxis again in your MCP client.',
      unreachableAdvice: 'Try again in a moment.',
    },
  });
  return handleHttpRequest(request, api);
}

Export

What it does

handleHttpRequest(request, api, options?)

Answers one MCP exchange: a web Request in, a web Response out

createServer(api, options?)

The MCP server with the eighteen tools, for a transport of your choice

new PyxisApi(options)

The client the tools read through, one per caller

PyxisApi options: token and apiUrl (required); userAgent (default pyxis-mcp/<version>); fetch (default the global one; a host can pass one that answers inside its own process); timeoutMs (default 15 seconds); problemTexts, the two sentences that depend on where the server runs: refusedToken and unreachableAdvice (default: the local server's, which name PYXIS_TOKEN and PYXIS_API_URL). createServer takes version (default the package's) and now (the clock); handleHttpRequest takes those and allowedOrigins.

What the handler does: each request gets a server and a transport of its own, closed once it is answered, so there is no session id and no event stream, only JSON answers. It answers 405 with Allow: POST to any other method, 403 to a request with an Origin header unless that origin is in allowedOrigins (none by default: MCP clients do not call from web pages), and 413 to a body over 64 KiB. What it leaves to the host: authenticating the caller (and the 401 with WWW-Authenticate that starts a client's sign-in), rate limits and the host name (ADR 0003).

Architecture

flowchart LR
  Agent["MCP client<br>(Claude Code, Cursor…)"] -- "stdio, JSON-RPC" --> Server["pyxis-mcp<br>(on the user's machine)"]
  Server -- "HTTPS GET<br>Authorization: Bearer pyxis_at_…" --> API["Pyxis API"]
  Remote["Claude · Claude Code"] -- "Streamable HTTP POST<br>OAuth access token" --> Host["Pyxis API, /mcp<br>handleHttpRequest"]
  Host -- "GET in process, same token" --> API
  API --> DB[("Events")]

The local server opens no port and keeps no state. The API decides what the token may read, exactly as it does for a dashboard session (ADR 0002). A host runs the same tools for remote clients: it authenticates the caller, and the tools read with that caller's token, so the token never leaves the server that issued it (ADR 0003). The Pyxis API is that host: it signs Claude in with OAuth and runs the tools at /mcp.

Tech stack

TypeScript (strict) on Node 22 or later, ES modules. Vitest with V8 coverage, fast-check, ESLint (typescript-eslint strict, type-checked) and Prettier, Husky and commitlint, GitHub Actions with CodeQL, OpenSSF Scorecard, Dependabot and release-please.

Getting started

npm ci
npm run lint && npm run typecheck && npm run test:cov && npm run build

Testing

  • npm run test:cov runs the unit tests in Node and fails below 100% of statements, branches, functions and lines. The server is tested with a real MCP client over an in-memory transport and a fake fetch; the HTTP handler with web Request objects, from initialize to a tool call, and every refusal.

  • Property-based tests with fast-check (src/*.property.test.ts) check the rules over generated inputs: offsetOf reads back any offset a time zone can name; inTimeZone writes, for every time zone, a local time that names the same instant; localTimes rewrites exactly the UTC instants at the given paths, adds or drops no field and changes nothing more on a second pass; readConfig fails with nothing but a ConfigError for any environment and accepts a token exactly when it matches the pattern; todayIn is the date of the local times the reports write. Each property runs 200 times from a fixed seed (src/property-parameters.ts, left out of the build), so CI and the pre-commit hook see the same inputs, and a failure prints the counterexample with the seed to replay it.

  • One file is left out of the unit coverage: src/cli.ts, which only wires the modules to the standard input and output. npm run test:e2e covers it: after npm run build, a real MCP client starts dist/cli.js, lists the tools and calls them against a local fake of the API, checks that standard output carries nothing but the protocol, and that a bad configuration stops the process with the reason on standard error.

  • npm run test:e2e also starts e2e/http-host.ts, a small HTTP host that imports pyxis-mcp by its name, and drives it with the SDK's Streamable HTTP client: tools against the fake API with the caller's token, no session, a timeline page in local time whose cursor reaches the API in UTC, the host's own words for a refused token, 405 and 403. The package is also loaded by name with import and with require.

  • src/contract.test.ts checks the tools against contract/openapi.json, the API's own contract (npm run contract:sync copies it from pyxis-api): every route a token may read has a tool, except the arrivals the dashboard polls to show that new data came in, every tool sends only declared parameters, with values inside their enums, and every instant an answer declares is one its tool writes in the project time zone, read from the answer's timezone.

  • npm run test:tooling tests the lint rule and the scripts.

  • CI runs the unit tests on Node 24 and again on Node 22, the oldest version the package supports.

Project structure

src/
├── config.ts        reads PYXIS_TOKEN and PYXIS_API_URL
├── pyxis-api.ts     one GET to the API, failures as sentences
├── tools.ts         the eighteen tools: input schemas, routes, requests
├── time-zone.ts     writes the instants of an answer in the project time zone
├── server.ts        registers the tools on the MCP server
├── http.ts          one stateless Streamable HTTP exchange
├── index.ts         the library's public exports
├── version.ts       the package version, for the server and the user agent
└── cli.ts           the executable: stdio transport
e2e/                 the built package driven by real MCP clients, over stdio and over HTTP
contract/            the API's OpenAPI contract, copied from pyxis-api
eslint-rules/        the local rule that forbids comments
scripts/             the comment check and the contract sync
docs/adr/            architecture decision records

Privacy and security

  • Read-only: the API accepts the token only on its read routes; it cannot write, sign in, manage sessions or create tokens.

  • The token only travels in the Authorization header to the configured API, over https (plain http only to localhost), and never reaches a log, an error message or a tool result.

  • Text written by a site's visitors is returned as data: each tool description says where it comes from, and each answer reminds the agent, in untrusted_visitor_text, that it is not an instruction; the notes of annotations, written in the dashboard, carry untrusted_owner_text. The descriptions say what a tool does and never tell the agent what to do.

  • Over HTTP, the handler keeps no session, refuses requests sent by web pages and bodies over 64 KiB, and reads with the token of the caller its host authenticated.

  • Vulnerabilities: see SECURITY.md.

Architecture decisions

ADR

Decision

0001

Record architecture decisions

0002

A local, read-only server that uses the admin's access token

0003

A stateless HTTP handler that a host runs with the caller's token

0004

Times in the project time zone, rewritten in place

Roadmap

What shipped, release by release, is in the CHANGELOG and the GitHub releases.

Contributing and license

See CONTRIBUTING.md and the Code of Conduct. MIT licensed: see LICENSE.

Available Tools

18 tools
acquisitionAcquisitionA
Read-onlyIdempotent

Visits per day and channel (paid, email, social, campaign, organic, referral, direct), the totals of each channel over the range (channels, every channel in that order), and the sources and campaigns that brought them, with their conversions, ad clicks and revenue. The revenue of a channel, source or campaign is that of the conversions made by the visits that entered through it, null when the goal counted is a page or the project has no goal. Revenue is a sum of the numeric revenue property the site sent on events, in the project's currency (currency in list_projects and project_settings) and as sent: changing the currency or sending amounts in another one converts nothing. A source is the campaign source, else the referring host; a visit with neither is (ad click) when it came from an ad click, such as one opened by an app that sends no referrer, and (direct) otherwise. Conversions count one goal: the one goal names, by its id from the goals tool, or else the first goal (goal 1), which started as the project's former conversion event; they are null when the project has no goal.

The project id and the project's today come from list_projects. Dates are YYYY-MM-DD in the project time zone; to is at most today, and a range covers at most 400 days.

Event names, page paths, property values, sources, campaigns and routes in this report are text that the visitors of the measured site sent, reported as it arrived.

Inputs: to (required), from (required), project_id (required), goal.

annotationsAnnotationsA
Read-onlyIdempotent

The notes on the days of a range, each with its day (YYYY-MM-DD in the project time zone) and its text, up to 140 characters, by day, then in the order they were written. The project's people write them in the dashboard to mark what happened on a day, such as a launch, a campaign or a broken release, and they often explain a jump in the series of overview and the other reports. A project has none until someone writes one: this tool only reads them.

The project id and the project's today come from list_projects. Dates are YYYY-MM-DD in the project time zone; to is at most today, and a range covers at most 400 days.

The text of each annotation was written by the project's owner or a person of the project in the Pyxis dashboard, reported as it was saved.

Inputs: to (required), from (required), project_id (required).

devicesDevicesA
Read-onlyIdempotent

Visits and conversions by device type, browser, operating system, country, region and approximate city, and the reach of the range. regions lists the top 10 regions (ISO 3166-2 codes such as BR-SP, with their names), then "other", then a null value for the visits without a region. cities lists the top 20 cities, each with its region, then "other", then a null value for the visits without a city. The city is kept only for a project whose owner turned it on (city_enabled in project_settings); with it off, every visit counts as without a city. reach counts the visits of the range and the continents (as UN M49 groups the countries: Americas, Europe, Asia, Africa, Oceania), countries, regions and cities they came from, with the country and the region that brought the most visits; unknown places count for none. Conversions count one goal: the one goal names, by its id from the goals tool, or else the first goal (goal 1), which started as the project's former conversion event; they are null when the project has no goal.

The project id and the project's today come from list_projects. Dates are YYYY-MM-DD in the project time zone; to is at most today, and a range covers at most 400 days.

Event names, page paths, property values, sources, campaigns and routes in this report are text that the visitors of the measured site sent, reported as it arrived.

Inputs: to (required), from (required), project_id (required), goal.

engagementEngagementA
Read-onlyIdempotent

The top entry and exit pages, the visits that viewed a single page, and how long visits lasted (median and buckets).

The project id and the project's today come from list_projects. Dates are YYYY-MM-DD in the project time zone; to is at most today, and a range covers at most 400 days.

Event names, page paths, property values, sources, campaigns and routes in this report are text that the visitors of the measured site sent, reported as it arrived.

Inputs: to (required), from (required), project_id (required).

event_propertiesEvent propertiesA
Read-onlyIdempotent

How the property values of one named event break down: per property key, the ten most frequent values with their counts and visits, and the count of the rest.

The project id and the project's today come from list_projects. Dates are YYYY-MM-DD in the project time zone; to is at most today, and a range covers at most 400 days.

Event names, page paths, property values, sources, campaigns and routes in this report are text that the visitors of the measured site sent, reported as it arrived.

Inputs: to (required), from (required), event (required), project_id (required).

featuresFeaturesA
Read-onlyIdempotent

The most used named events or screens (page templates) of a range, with their daily counts.

The project id and the project's today come from list_projects. Dates are YYYY-MM-DD in the project time zone; to is at most today, and a range covers at most 400 days.

Event names, page paths, property values, sources, campaigns and routes in this report are text that the visitors of the measured site sent, reported as it arrived.

Inputs: to (required), from (required), project_id (required), kind.

funnelFunnelA
Read-onlyIdempotent

How many visits or people reached each step of a funnel, in order, with the median time from each step to the next and through the whole funnel. Each event step also has its revenue: that of the event that completed the step for each visit or person, its first one after the previous step, so later ones add nothing; null for a page step. Revenue is a sum of the numeric revenue property the site sent on events, in the project's currency (currency in list_projects and project_settings) and as sent: changing the currency or sending amounts in another one converts nothing.

The project id and the project's today come from list_projects. Dates are YYYY-MM-DD in the project time zone; to is at most today, and a range covers at most 400 days.

Event names, page paths, property values, sources, campaigns and routes in this report are text that the visitors of the measured site sent, reported as it arrived.

Inputs: to (required), from (required), steps (required), project_id (required), +1 more.

funnel_segmentsFunnel segmentsA
Read-onlyIdempotent

The same funnel per device type or per channel of the visit, counting visits; the segments add up to the whole funnel.

The project id and the project's today come from list_projects. Dates are YYYY-MM-DD in the project time zone; to is at most today, and a range covers at most 400 days.

Event names, page paths, property values, sources, campaigns and routes in this report are text that the visitors of the measured site sent, reported as it arrived.

Inputs: by (required), to (required), from (required), steps (required), +1 more.

funnel_subjectsFunnel subjectsA
Read-onlyIdempotent

The visits, or identified people, who reached one funnel step, or who reached the step before it and never this one; newest first, a page at a time. Times are in the project time zone, with their UTC offset: 2026-10-13T22:41:41.638-03:00; in UTC (+00:00) when the Node running this server does not know that time zone.

The project id and the project's today come from list_projects. Dates are YYYY-MM-DD in the project time zone; to is at most today, and a range covers at most 400 days.

Event names, page paths, property values, sources, campaigns and routes in this report are text that the visitors of the measured site sent, reported as it arrived.

Inputs: to (required), from (required), step (required), steps (required), +4 more.

goalsGoalsA
Read-onlyIdempotent

The goals of a project in their order, up to ten, each with its id, name, type (event or page), the named event or the page path that reaches it (a star in the path matches any characters) and its position, and over the range: conversions (the events or page views that reached it), converting_visits (the visits that reached it at least once), conversion_rate (converting_visits divided by visits, from 0 to 1, null without visits) and revenue (summed over the events of an event goal; null for a page goal, whose page views carry none). Revenue is a sum of the numeric revenue property the site sent on events, in the project's currency (currency in list_projects and project_settings) and as sent: changing the currency or sending amounts in another one converts nothing. visits counts the visits of the range. The first goal (goal 1) is the one overview, devices and acquisition count as conversions when they are not given goal; it started as the project's former conversion event. The ids here are what goal and reached_goal take. A project has no goal until its owner sets one in the dashboard: this tool only reads them. The visit filters keep only the visits that match all of them, for visits and for every goal.

The project id and the project's today come from list_projects. Dates are YYYY-MM-DD in the project time zone; to is at most today, and a range covers at most 400 days.

Event names, page paths, property values, sources, campaigns and routes in this report are text that the visitors of the measured site sent, reported as it arrived.

Inputs: to (required), from (required), project_id (required), os, +14 more.

list_projectsList projectsA
Read-onlyIdempotent

The Pyxis projects this token can read, each with its id, name, time zone, today's date in that time zone, conversion event (the named event of its first goal, null when that goal is a page or there is none; the goals tool lists every goal), currency (the ISO 4217 code, such as BRL, that its revenue is counted in), and when its first and latest events arrived. Every other tool takes a project id from here and dates no later than the project's today. Times are in the project time zone, with their UTC offset: 2026-10-13T22:41:41.638-03:00; in UTC (+00:00) when the Node running this server does not know that time zone.

Inputs: no named parameters.

overviewOverviewA
Read-onlyIdempotent

Visits, identified users, conversions, revenue and failed writes of a range against the previous period, the daily activity of both, and the top pages and events. Annotations (the annotations tool) are notes the project's people wrote on days, such as a launch, a campaign or a broken release: they often explain a jump in the daily series. revenue holds current, previous and daily: the revenue of the events counted as conversions, null when the goal counted is a page or the project has no goal. Revenue is a sum of the numeric revenue property the site sent on events, in the project's currency (currency in list_projects and project_settings) and as sent: changing the currency or sending amounts in another one converts nothing. A range that ends today is compared with the previous period up to the same time of day. visitors holds the unique visitors, counted without any identifier and only for a project that counts them (visitors.enabled, visitors_enabled in project_settings); when enabled is false every list is empty. The first event of each visit says whether its browser is new (first_visit), back for the first time this month (first_this_month) or today (first_today), or back again today (again_today); a visit without that mark never counts. daily holds those four counts per day: the unique visitors of a day are first_visit + first_this_month + first_today, and the new ones are first_visit. months holds, per calendar month the range touches, first_visit and first_this_month on the range's days of that month, and exact: their sum is the month's unique visitors only when exact is true, as when the range holds the whole month or runs from its 1st to today. previous_daily and previous_months hold the same for the previous period. Days do not add up to unique visitors: a browser back on two days counts on both. A visitor is a browser: two devices count as two, and a browser whose storage was cleared counts as new. Conversions count one goal: the one goal names, by its id from the goals tool, or else the first goal (goal 1), which started as the project's former conversion event; they are null when the project has no goal.

The project id and the project's today come from list_projects. Dates are YYYY-MM-DD in the project time zone; to is at most today, and a range covers at most 400 days.

Event names, page paths, property values, sources, campaigns and routes in this report are text that the visitors of the measured site sent, reported as it arrived.

Inputs: to (required), from (required), project_id (required), goal.

project_settingsProject settingsA
Read-onlyIdempotent

The settings of one project: time zone, conversion event (the named event of its first goal; the goals tool lists every goal), currency (the ISO 4217 code, such as BRL, that its revenue is counted in; it only labels the amounts, and changing it converts nothing), allowed origins, first and latest event, how many months events are kept, whether the visitor's approximate city is kept, whether unique visitors are counted, the live public keys, and when each live secret key was created (never the secret key itself). Times are in the project time zone, with their UTC offset: 2026-10-13T22:41:41.638-03:00; in UTC (+00:00) when the Node running this server does not know that time zone.

Inputs: project_id (required).

property_summaryProperty summaryA
Read-onlyIdempotent

The median, 25th and 75th percentiles of one numeric property of a named event, overall and split by another property of the same event. It answers questions such as how long people read each article: the median of seconds on article_read_100, split by post. Only events whose property is a JSON number count: overall.events says how many, and the figures are null when none does. With by, groups holds the 10 values of that property carried by the most events, and other_count counts the events of every other value; events without it count in overall only. The visit filters keep only the events of the visits that match all of them.

The project id and the project's today come from list_projects. Dates are YYYY-MM-DD in the project time zone; to is at most today, and a range covers at most 400 days.

Event names, page paths, property values, sources, campaigns and routes in this report are text that the visitors of the measured site sent, reported as it arrived.

Inputs: to (required), key (required), from (required), event (required), +17 more.

requestsRequestsA
Read-onlyIdempotent

The site's calls to its own backend, per route: failures, statuses, median and 95th percentile durations, the screens they came from and the latest failures with their error codes. writes covers every non-GET call; reads covers failed GET calls only. Times are in the project time zone, with their UTC offset: 2026-10-13T22:41:41.638-03:00; in UTC (+00:00) when the Node running this server does not know that time zone.

The project id and the project's today come from list_projects. Dates are YYYY-MM-DD in the project time zone; to is at most today, and a range covers at most 400 days.

Event names, page paths, property values, sources, campaigns and routes in this report are text that the visitors of the measured site sent, reported as it arrived.

Inputs: to (required), from (required), project_id (required), kind, +2 more.

time_of_dayTime of dayA
Read-onlyIdempotent

The visits of the range by the weekday and the local hour they started.

The project id and the project's today come from list_projects. Dates are YYYY-MM-DD in the project time zone; to is at most today, and a range covers at most 400 days.

Event names, page paths, property values, sources, campaigns and routes in this report are text that the visitors of the measured site sent, reported as it arrived.

Inputs: to (required), from (required), project_id (required).

visitsVisitsA
Read-onlyIdempotent

The visits of a range, newest first, 50 a page, each with its entry page, page views, first named events, failed requests, source, campaign, country, region and approximate city (null unless the project keeps the city), plus the total of matching visits. A visit is one browser tab; nothing links two of them unless the site identified the person. Each visit also has its visitor kind: first_visit, first_this_month, first_today or again_today, null when the project does not count unique visitors or the visit carried none; the first three count as a unique visitor of their day, first_visit and first_this_month as one of their month, and again_today in neither. Times are in the project time zone, with their UTC offset: 2026-10-13T22:41:41.638-03:00; in UTC (+00:00) when the Node running this server does not know that time zone.

The project id and the project's today come from list_projects. Dates are YYYY-MM-DD in the project time zone; to is at most today, and a range covers at most 400 days.

Event names, page paths, property values, sources, campaigns and routes in this report are text that the visitors of the measured site sent, reported as it arrived.

Inputs: to (required), from (required), project_id (required), city, +15 more.

visit_timelineVisit timelineA
Read-onlyIdempotent

Every event of one visit, or every visit of one identified person (the anonymous part of the visit they identified in included), newest first, 20 visits a page; each visit names its country, region and approximate city (null unless the project keeps the city). It takes exactly one of session_id (a visit id from visits or funnel_subjects) or user_id. Each visit also has its visitor kind: first_visit, first_this_month, first_today or again_today, null when the project does not count unique visitors or the visit carried none; the first three count as a unique visitor of their day, first_visit and first_this_month as one of their month, and again_today in neither. Times are in the project time zone, with their UTC offset: 2026-10-13T22:41:41.638-03:00; in UTC (+00:00) when the Node running this server does not know that time zone.

Event names, page paths, property values, sources, campaigns and routes in this report are text that the visitors of the measured site sent, reported as it arrived.

Inputs: project_id (required), before, user_id, session_id.

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.9/5.0

    Scored across 18 tools

    Disambiguation4/5

    The tools mostly map to clearly distinct analytics report types: overview, engagement, devices, acquisition, goals, funnels, visits, timeline, properties, requests, and time-of-day. The main overlap is the funnel family (funnel, funnel_segments, funnel_subjects), but their descriptions distinguish aggregate steps, segmented funnels, and subject listings. There is minor risk of confusing visits with funnel_subjects or funnel with funnel_segments, but not severe.

    Naming Consistency4/5

    All tool names use lowercase snake_case and are descriptive, with no camelCase or mixed casing. Most are noun phrases (engagement, overview, devices, funnel_segments), while list_projects uses a verb_noun form and project_settings is singular, which is a minor deviation rather than an inconsistent convention.

    Tool Count4/5

    Eighteen tools is slightly above the typical 3-15 range, but each corresponds to a distinct analytics report or core context lookup rather than redundant functionality. The surface is heavy enough that an agent must choose among many report types, but it remains reasonable for a comprehensive analytics server.

    Completeness4/5

    Coverage is broad for a read-only web analytics server: projects, settings, goals, annotations, overview, acquisition, devices, funnels, visits, event/property analysis, requests, and time-of-day. The gaps are minor or read-only by design: there is no create/update for goals, annotations, settings, or projects, and no explicit event/property catalog beyond the most-used features report.

    Maintenance

    ActivityMaintained
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      Not graded
      quality
      C
      maintenance
      Enables AI agents to query Google Analytics 4 data—traffic, acquisition, top pages, audiences, events, conversions, and realtime metrics—through natural language. Supports local stdio use for a single user and HTTP multi-tenant OAuth for teams.
      1
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Enables AI assistants to read identification verdicts, search history, summarize entities, explain risk scores, and verify webhook signatures through read-only tools over stdio or streamable HTTP.
      6
      MIT
    • A
      license
      A
      quality
      B
      maintenance
      Connects AI agents to New Relic observability data through the NerdGraph GraphQL API, running locally over stdio with a standard User API key. Enables NRQL queries, entity and alert lookups, log and trace investigation, deployment correlation, and metric comparisons while staying read-only by default.
      14
      Apache 2.0
    • F
      license
      Not graded
      quality
      A
      maintenance
      Enables AI agents and developers to query traces, sessions, exceptions, prompts, datasets, annotation queues, scores, and metrics for local debugging and observability. Runs locally over stdio or HTTP with selective tool-group loading, read-only mode, and compact or file-dump output to control token usage.
      -