
Analyga
io.github.jysweePublished by GitHub account jysweev0.1.15Updated Oct 24, 2026
Agent-first analytics: stats, events, sessions, funnels, ingest, websites & billing.
The publisher's own server: Vips
Overview
Agent-first web and MCP analytics: an assistant can query stats, events and funnels, send server-side events, manage websites and ingest keys, and get a billing
- What you can do
- Query traffic stats, event counts and cross-site network rollups for a website over a chosen window, all read-only and JSON-structured. Define, list and run conversion funnels for a site. Send server-side events with a stable user id, check ingest health, and mint or revoke per-website ingest keys. Inspect websites and credential scope, and read the full command and error-code schema. Request a billing checkout link for a plan to hand to a human.
- When to use it
- Useful when an assistant fires analytics events or ships changes and needs to confirm they landed and whether anyone completed a flow, without opening a dashboard. Also fits teams that want web and MCP traffic measured from the same agent-driven surface.
- Requirements
- Runs as a remote SSE endpoint or as a local npm package (analyga, command tga, started with npx or tga mcp-serve). An Analyga API key is supplied via the ANALYGA_KEY environment variable or an Authorization bearer header; without one the server starts in onboarding mode and can self-signup. Server-side ingest uses a separate per-website ingest key. Network access to the Analyga service is required.
Installation
In SourceWeft
- Open Analyga in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Web executable via SSE. Remote servers run from the web runtime once configured in a workspace.
Use with an agent
Paste this prompt into Claude Code, Codex, Cursor or another agent — or into SourceWeft chat. The agent reads this server's install guide, shows you its publisher, endpoint and sign-in, and adds it to your client once you agree. Keys never go into a command.
Read https://sourceweft.com/mcp/io.github.jyswee%2Fanalyga/install.md and connect the MCP server it describes to my client. Before changing any config, show me its publisher, endpoint and sign-in method and wait for my OK. Never put an API key in a command or in a file I would commit; ask me where it should come from.Other MCP clients
Add this to your client's mcpServers config.
{
"mcpServers": {
"analyga": {
"type": "sse",
"url": "https://mcp.analyga.com/sse"
}
}
}README
analyga
[npm version] [MCP] [Agent-first]
Agent-first analytics for MCP + web traffic — query, instrument and configure from a terminal or an MCP client. No browser, no dashboard.
A dashboard for humans.
tgafor your agents.
One analytics surface for both halves of modern traffic: the web visits your site still gets, and the agent/MCP calls that increasingly drive it. Analytics tools assume a human staring at a chart — but increasingly the thing that needs the numbers is an agent: it fired the events, it wants to know whether they landed, and it wants five numbers back, not a dashboard to render. analyga is the surface the agent drives itself: one install, and it queries stats and funnels across web and MCP, sends server-side events, and reads its own schema — all as structured JSON, none of it screen-scraped.
Works with: Claude Code · Cursor · Cline · Windsurf · Aider · Codex · any MCP client
[analyga demo — query to funnel in 60 seconds]
One agent, one terminal — query to funnel in 60 seconds. Watch the full demo.
See it in action
No mockups — every clip is a live tga session against a seeded tenant. Click any GIF for the full-res video.
Install
The npm package is analyga; the command is tga.
Quick Start
Every command takes --json — the machine surface is a first-class citizen, not an afterthought:
Read the contract, don't guess flags
That returns every command, argument, flag, type, whether it is read-only, and the full list of error codes — generated from the same table that drives the parser, the help text and the MCP tools, so it cannot drift from what the CLI actually does. If it is not in the schema, it does not exist.
Query — stats, events, funnels
Ask the questions an agent actually asks after it ships: did the events land, and did anyone make it through the flow?
All read-only, all --json-able — an agent branches on the numbers instead of parsing a chart.
Identity — pass --id or your agents collapse into one visitor
Anonymous identity is derived from IP and user-agent. Agent traffic shares both — one CLI version means one user-agent, and agents often share an egress IP — so without a stable id every agent behind that IP collapses into a single visitor. It cannot be backfilled.
Sending events server-side
A discarded event still answers HTTP 200. The ingest endpoint returns {"beep":"boop"} when it drops an event as a bot. This CLI treats that as a hard failure with a hint rather than reporting success — so an agent never believes a dropped event succeeded.
Server-side ingest uses a separate per-website key (ANALYGA_INGEST_KEY or --ingest-key), scoped to one website so it can only ever write that site's traffic. Mint one with tga ingest-key create <websiteId> and revoke it with tga ingest-key revoke <websiteId> — the plaintext is shown once and only its hash is stored.
Billing — hand a human a checkout URL
An agent authenticates with its tenant key, names a plan, and gets back a Stripe Checkout URL to pass to a human who completes payment:
The tenant is pinned server-side from the key. The free plan (and any plan without a configured price) is not purchasable, and internal sister-stack tenants are never billed.
MCP Server
Prefer tools over a CLI? analyga ships an MCP server. Point Claude Code (or any MCP client) at it and your agent gets 13 native tools covering stats, events, funnels, websites, identity, server-side ingest (including minting/revoking ingest keys) and billing checkout.
For clients that use a JSON config, pass your key via ANALYGA_KEY. The MCP server runs outside your project directory, so it will not pick up .analyga/config.json:
Read-only tools are flagged, so a client will not prompt a human to confirm a read. Every tool declares an outputSchema, so an agent never parses prose or guesses field names — and a tool result and --json output are the same bytes, one client across two surfaces. A session with no key sees only the onboarding surface — how to connect, plus analyga_signup to bootstrap its own tenant — rather than the full toolset.
Error codes
Failures carry a stable code and a distinct exit code, so an agent can branch on the outcome instead of string-matching a message.
Exit 1 is reserved for unhandled crashes, so a classified failure is never ambiguous. Where the server can say what to do next, it comes back as a hint on its own line.
Configuration
Resolved highest-priority first:
--keyflagANALYGA_KEYenvironment variable.analyga/config.jsonin the current directory
tga whoami reports which of these won. On a multi-tenant platform, "which tenant am I about to write to" is the question that matters most. .analyga/ holds a live credential — keep it out of version control.
Features
- Self-serve signup —
tga signupcreates a tenant and its first API key with no card and no admin in the loop; keyless, so it works before you have a credential - Tenant-aware identity —
tga whoamishows the pinned tenant and key scope for atga_key, or the user and teams for a session login - Stats & events — top-line traffic and event counts over any window, all read-only, all
--json - Funnels — define once, run anytime; step-by-step conversion for a site
- Network rollup — cross-site stats for a whole team
- Server-side ingest —
tga sendwith a scoped per-site key; mint/rotate/revoke keys withtga ingest-key create|revoke; dropped-as-bot events fail loudly instead of faking a 200 - Billing checkout —
tga billing checkout --plan <id>returns a Stripe URL to hand to a human - Stable identity —
--idkeeps agents from collapsing into one anonymous visitor - agent-schema — one command emits the full contract (commands, flags, types, error codes) so agents never guess
- MCP server — 13 tools (
tga mcp-serve) for Claude Code, Cursor, Cline, Windsurf, any MCP client - Classified errors — stable
code+ distinct exit code per failure class, with actionablehints
Agent Integration
Add to your CLAUDE.md, .cursorrules, .clinerules, .windsurfrules, or AGENTS.md:
Why this exists
Every analytics tool I reached for assumed a human looking at a chart — but the thing that needed the numbers was the agent that fired the events. So the CLI and the MCP server are the primary interface here, not a wrapper bolted onto a REST API. It's early and iterating fast: if something's rough or missing, open an issue.
Documentation
For now, tga --help and tga agent-schema --json are the authoritative reference.
Status
Early. Published for dogfooding by the Tyga sister stacks. Interfaces may change; error codes will not be reworded once published, because agents branch on them.
License
Proprietary — Tyga.Cloud Ltd. See LICENSE.
Source: README.md at commit 99e4cf4
Tools
0Version history
2- v0.1.15LatestSep 23, 2026
- v0.1.14Sep 16, 2026
Score
75% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 daysRequired25 pts
- Auth declaredRequired10 pts
- Tools listedRequired15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts
Declare a license in the repository or the registry entry.
Other Vipsallowed integrations

Vips
com.vipsallowedOfficial publisher
VIPsAllowed's MCP server lets an assistant run a creator business: post content, manage subscribers, send paid DMs, track earnings and payouts.

Computegpu
Published by GitHub account jyswee
Lets an assistant rent cloud GPUs: browse the live catalogue, deploy, stop, resume and destroy instances, with per-second billing.

Weselltours
Published by GitHub account jyswee
A local MCP server for the WeSellTours travel platform that lets an assistant manage hotels, tours and bookings, track bugs and features, and query travel AI.

Taufunctions
Published by GitHub account jyswee
TauFunctions lets an assistant create, deploy, invoke and monitor serverless functions on the TauFunctions platform, locally via npm or as a remote endpoint.

Sslwebsites
Published by GitHub account jyswee
A local MCP server that lets a coding agent issue, renew, revoke, download and monitor SSL/TLS certificates through the SSLWebsites service.