mcpbeat Sign in

Tokmeter — AI Agent Usage & Cost MCP Server

local only

Tokmeter — AI Agent Usage & Cost runs on your own machine — the client starts it, so there is no endpoint to ping. 185 installs a week from npm. Last commit 19 Sep 2026.

Tokens and cost for Claude Code, Codex and 14 more AI coding agents, from local session files.

Installs per day peak 164 · avg 16 · -0% w/w
a month agotoday
185
Installs / week
npm · @sriinnu/drishti
0
Stars
0 open issues
19 Sep 2026
Last commit
0 releases in 90 days
AGPL-3.0
License
TypeScript

What the code does

We read the source, 7 h ago · rules 3dff92dd89df

Evidence

Things with no honest explanation: a promise that contradicts the code, code that runs at install time while hiding what it does, data leaving the machine.

Decodes a string and executes it packages/core/src/parsers/antigravity.ts:141
    const match = FILE_URI_RE.exec(Buffer.from(refs).toString("utf-8"));
Capabilities

What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.

        let plistPath = home + "/Library/LaunchAgents/com.sriinnu.tokmeter.daily.plist"
Runs an external command packages/cli/src/cli.ts:811
      spawn(process.execPath, [process.argv[1], "daemon", "start"], {
In the project's build, not in the package

Found in continuous integration, deployment or infrastructure files, or in a neighbouring package of the same monorepo. None of this is installed when you add the server: it describes how the project is built and released. We list it because a leaked key in a build pipeline is still a real problem, but it is not something this server does on your machine.

Builds a database query by concatenation .github/workflows/release-macos.yml:140
          find ${APP_NAME}.app -name '._*' -delete 2>/dev/null || true
          /usr/bin/ditto --norsrc -c -k --keepParent ${APP_NAME}.app ${APP_NAME}-${VERSION}.zip

Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.

We found things in this code

Code changes quietly between releases, and nobody reads the diff of a dependency. We do, on every release — watch Tokmeter — AI Agent Usage & Cost and you get told the day something new turns up.

Three servers free · no card

Connect this server

This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.

run in your terminal
claude mcp add tokmeter -- npx -y @sriinnu/drishti
~/Library/Application Support/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "tokmeter": {
      "args": [
        "-y",
        "@sriinnu/drishti"
      ],
      "command": "npx"
    }
  }
}
~/.codex/config.toml
[mcp_servers.tokmeter]
command = "npx"
args = ["-y", "@sriinnu/drishti"]
.cursor/mcp.json
{
  "mcpServers": {
    "tokmeter": {
      "args": [
        "-y",
        "@sriinnu/drishti"
      ],
      "command": "npx"
    }
  }
}
.vscode/mcp.json
{
  "mcpServers": {
    "tokmeter": {
      "args": [
        "-y",
        "@sriinnu/drishti"
      ],
      "command": "npx"
    }
  }
}

Alternatives to Tokmeter — AI Agent Usage & Cost

same job, measured the same way
Claude Code Usage
by wheelbarrel00

Claude Code token usage, cost, and plan limits from local logs and Anthropic's usage API.

23 installs/wk local only
Token Meter
by whdrnr2583-cmd

Local-first dashboard + MCP for Claude Code and Codex token usage. Per-MCP/tool breakdown.

79 installs/wk local only
Claude Handoff
by vasilispapg

Session handoff for Claude Code: list sessions and build handoff docs another agent continues from.

887 installs/wk local only
Th Memory MCP
by worakorn-prince

Local long-term memory MCP server (SQLite) for AI coding agents — OpenCode, Claude Code, Cursor

270 installs/wk local only
SkillFM Claude Code Token Usage
by ericm1018

Claude Code token usage, cost visibility, and SkillFM Beacon AI health checks for MCP agents.

31 installs/wk local only
AI Usage
by mohitbansal321

Reports real token usage and cost from Claude Code and OpenCode data. Nothing leaves your machine.

268 installs/wk local only
Thinkrun
by dundas

Browser control + session recording MCP for AI coding agents (Claude Code, Cursor) — real Chrome.

49 installs/wk local only
AI R
by pro-target

Read local AI agent sessions (Claude Code, Codex, OpenCode, Antigravity, Pi): intents, plans, tools

42 installs/wk local only

Tokmeter — AI Agent Usage & Cost — questions

Answers built from our own checks of this server.

Why is there no uptime for Tokmeter — AI Agent Usage & Cost?
Tokmeter — AI Agent Usage & Cost runs on your own machine over stdio — there is no network address to reach, so uptime cannot be measured for it by anyone. What can be measured is adoption: the npm package @sriinnu/drishti was installed 185 times last week.
How do I connect Tokmeter — AI Agent Usage & Cost?
Copy the ready config from this page — we generate it for Claude Code, Claude Desktop, Codex, Cursor and VS Code, each with the file path that client actually reads. It runs locally, so the command pulls @sriinnu/drishti straight from npm; nothing to host, nothing to sign up for.
How many people use Tokmeter — AI Agent Usage & Cost?
The npm package @sriinnu/drishti was installed 185 times in the last week. Week over week that is -0%. We show installs rather than GitHub stars on purpose: a star is a bookmark, an install is someone actually running it.
Is Tokmeter — AI Agent Usage & Cost open source?
Yes — it is published under the AGPL-3.0 licence, written in TypeScript and 0 stars on GitHub. The source link is on this page, so you can read exactly what it does with your data before you connect it.