tokei-agent
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@tokei-agentShow me the stats for my active waitlist page."
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
tokei-agent
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.
Install
npm install -g tokei-agent
# or run without installing:
npx tokei-agent --helpRequires Node 22+.
Related MCP server: substack-publisher-mcp
Quick start
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:
export TOKEI_API_KEY=tokei_k_... # bash / zshset -x TOKEI_API_KEY tokei_k_... # fish$env:TOKEI_API_KEY = "tokei_k_..." # PowerShellTry it:
tokei-agent me # verify the key, see plan + API usage
tokei-agent pages:list --status active
tokei-agent stats <contestId> # analytics for one pageEvery 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).
Known issue — exit codes on Node 24 / Windows (fixed in 0.2.3). 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.
Commands
Read (any key):
Command | Does |
| Verify the key; account, plan, API usage |
| List pages — |
| One page in full (prizes, reward tiers, public URL) |
| Aggregated analytics |
| Participants ranked by points |
| Signups — filter with |
| Survey responses |
| List webhook subscriptions |
| The platform's named starting points, for |
Write (needs a read+write key):
Command | Does |
| Create a page by cloning one you own, a named template, or the starter. 20/day cap |
| Upload an image or video, get back a |
| Update title, description, dates, prizes, reward tiers, appearance, and media |
| Take a page live (needs a future |
| Back to draft — blocks new signups, but the page still renders publicly |
| Add a signup |
| Subscribe an HTTPS endpoint ( |
| 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.
tokei-agent pages:clone --title "Spring Launch Waitlist" --source <promotionId>
tokei-agent pages:update <contestId> --end-date 2026-09-01T00:00:00Z
tokei-agent media:upload ./hero.png
tokei-agent pages:update <contestId> --image-video <public_url from the upload above>MCP server
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.
claude mcp add tokei --env TOKEI_API_KEY=tokei_k_... -- npx -y tokei-agent mcpOr in JSON config:
{
"mcpServers": {
"tokei": {
"command": "npx",
"args": ["-y", "tokei-agent", "mcp"],
"env": { "TOKEI_API_KEY": "tokei_k_..." }
}
}
}Environment
Variable | Required | Meaning |
| Yes | Sent as |
| No | Base URL override (default |
Agents, human in the loop
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.
Docs
API reference: https://tokei.io/docs/api
OpenAPI spec: https://tokei.io/openapi.json
Agent skill reference: SKILL.md
License
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseBqualityDmaintenanceMCP server for GoHighLevel API v2 that provides 50+ tools for CRM, billing, marketing, and operations workflows, enabling natural language interaction with contacts, opportunities, conversations, and more.Last updated501MIT
- AlicenseAqualityAmaintenanceMCP server for Substack's official Publisher API that enables querying post analytics, subscriber counts, and publication data through natural language from MCP clients.Last updated65MIT
- Alicense-qualityDmaintenanceMCP server providing tools to search, get, and aggregate Merkl opportunities. Enables querying campaign data, APRs, TVL, and more through natural language.Last updated9MIT
- AlicenseAqualityBmaintenanceMCP server for the Taiga project management API. Enables AI assistants to manage projects, issues, user stories, tasks, epics, sprints, and wiki pages via natural language commands.Last updated5516ISC
Related MCP Connectors
MCP server for interacting with the Supabase platform
Official MCP server for Lovable, the AI-powered full-stack app builder.
Official remote MCP server for Archivist AI TTRPG campaign memory: characters, sessions, and more.
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/gilesdawe/tokei-agent'
If you have feedback or need assistance with the MCP directory API, please join our Discord server