Control your Tokei (tokei.io) pre-launch and waitlist campaigns from AI agents and the command line.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste the JSON block into your client's configuration file under mcpServers, then restart the application.
Control your Tokei pre-launch and waitlist campaigns from the command line β and from AI agents like Claude Code and OpenClaw. Wraps the Tokei v1 REST API with JSON-only output, zero runtime dependencies.
Requires Node 22+.
Install it as a plugin and the tokei-agent skill comes with it β Claude then
knows the whole command surface without being told:
Set TOKEI_API_KEY (see Quick start) and you're done. The CLI
itself still runs via npx, so there is nothing else to install.
Create an API key at tokei.io β Dashboard β Settings β API Keys. Pick read-only unless you need to change things; API access requires an active subscription or lifetime plan.
Export it β the syntax differs by shell:
Every command prints JSON to stdout with a top-level rate_limit object. Exit codes: 0 success, 1 API/network error, 2 usage error (JSON on stderr).
Interactive output (0.3.1+). When stdout is an interactive terminal, the CLI renders a banner and a human-readable summary instead of raw JSON. When stdout is a pipe, a redirect, CI, or the
mcptransport, it prints exactly the JSON it always has β so agents, scripts and MCP clients are unaffected. SetTOKEI_OUTPUT=jsonto force JSON at a terminal too;NO_COLORdisables colour and animation, andTOKEI_NO_ANIM=1keeps the colour but stops the movement.
Known issue β exit codes on Node 24 / Windows (fixed in 0.3.0). On 0.2.2 and earlier the CLI could print its correct JSON output and then abort during process exit, corrupting the exit code (
$LASTEXITCODEread-1073740791/0xC0000409on success and failure alike). On an affected version, judge a run by the JSON on stdout, not by the exit status β or upgrade. (Historical labelling slip: the 0.3.0 tarball misreported--versionas0.2.2; 0.3.1+ reports correctly.)
Read (any key):
| Command | Does |
|---|---|
me | Verify the key; account, plan, API usage |
pages:list | List pages β --status, --mode, --page, --per-page |
pages:get <contestId> | One page in full (prizes, reward tiers, public URL) |
stats <contestId> | Aggregated analytics |
leaderboard <contestId> | Participants ranked by points |
referrals:top <contestId> | Top referrers ranked by conversions, plus referral totals |
winners:list <contestId> | Selection-run history, newest first, with each run's winners nested |
entries:list <contestId> | Signups β filter with --email |
surveys:list <contestId> | Survey responses |
webhooks:list | List webhook subscriptions |
templates:list | The platform's named starting points, for pages:clone --template |
actions:catalog | Every entry-action type Tokei supports β --type <actionType> |
events:catalog | Every webhook event Tokei's delivery engine understands β --type <eventName> |
Write (needs a read+write key):
| Command | Does |
|---|---|
pages:clone | Create a page by cloning one you own, a named template, or the starter. 20/day cap |
media:upload <file> | Upload an image or video, get back a public_url for pages:update. β€5MB per file (video too) |
pages:update <contestId> | Update title, description, dates, prizes, reward tiers, appearance (incl. the Custom template: --template simple / --custom-css), media, and entry actions (entry_methods, incl. custom-link rows) |
pages:publish <contestId> | Take a page live (needs a future end_date) |
pages:unpublish <contestId> | Back to draft β blocks new signups, but the page still renders publicly |
entries:create <contestId> | Add a signup |
webhooks:create | Subscribe an HTTPS endpoint (whsec_ secret shown once β save it!) |
webhooks:delete <webhookId> | Remove a subscription |
Write commands take simple fields as flags and full/nested bodies via --data '<json>' or --data @file.json (flags win on conflict). Run tokei-agent --help for every flag, or see SKILL.md β the agent-oriented reference bundled in this package, with worked examples and error-handling guidance.
The package doubles as a local MCP server (stdio): every command above becomes an MCP tool (pages_list, pages_update, stats, β¦) for Claude Code, Claude Desktop, and other MCP clients.
Or in JSON config:
| Variable | Required | Meaning |
|---|---|---|
TOKEI_API_KEY | Yes | Sent as Authorization: Bearer <key> |
TOKEI_API_URL | No | Base URL override (default https://tokei.io) |
Tokei is built so agents draft and humans approve: give monitoring agents a read-only key, reserve read+write keys for agents that genuinely need to change things, and set key expiry. New webhook subscriptions created via the API trigger a security notification to the account owner.
Full policy: https://tokei.io/privacy
tokei-agent is a thin client for the Tokei v1 REST API. It collects no data of
its own: there is no telemetry, no analytics, no crash reporting, and no
phone-home of any kind.
It reads exactly two inputs from your environment β TOKEI_API_KEY and the
optional TOKEI_API_URL β plus the arguments you pass on the command line (or
the arguments an MCP client passes to a tool call). For media:upload it also
reads the bytes of the local file you name.
Your API key is used solely as an Authorization: Bearer header on requests to
your Tokei account. Command arguments become the request path, query string, or
JSON body. Nothing is written to disk: the CLI creates no config file, cache,
credential store, or log file, and holds nothing after the process exits.
API responses β which can include entrant email addresses, survey answers, and analytics β are printed as JSON to stdout. From that point they are handled by whatever invoked the CLI (your shell, your scripts, or your AI agent and its conversation history). Treat that output as the personal data it is.
Nothing is sold or shared with third parties. Data is transmitted only to:
https://tokei.io, or the host you set in TOKEI_API_URL) β every
command, to serve your request against your own account.media:upload only. The API returns a
short-lived signed upload URL and the CLI PUTs your file bytes straight to it;
the file becomes a public asset on your promotion page.The CLI contacts no other host.
The CLI retains nothing. Data held in your Tokei account β promotions, entries, survey responses β is retained under the Tokei privacy policy above, and you can request access or deletion there. API keys are created, scoped, expired, and revoked by you at Dashboard β Settings β API Keys; revoking a key immediately stops all access through it.
Tokei β https://tokei.io/privacy β support@tokei.io
MIT
No reviews yet β be the first to share how this listing worked for you.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/tokei-agent)<a href="https://allmcps.com/mcp/tokei-agent"><img src="https://allmcps.com/api/badge/tokei-agent?style=directory" alt="Tokei Agent on AllMCPs" /></a>