ai-usage-mcp

MCPattested
v0.5.1Mohit BansalMITUpdated 2d agonpmGitHub

Local-first MCP server that reports real token usage and cost across coding agents (Claude Code, OpenCode). Nothing leaves your machine.

Works in
ClaudeCursorCopilotGemini

Inferred from the transports this listing declares (stdio). A client not listed here hasn’t been ruled out — it just isn’t something Forge can confirm.

Attested build
A verified provenance attestation binds this artifact to the listed repository. Nobody has claimed the listing yet — this proves where the code was built, not who stands behind it.
1GitHub stars
2d agoLast update
Package
AuthorMohit Bansal
LicenseMIT
Version0.5.1
Sourcenpm+mcp-registry
Trust Status
A
85/100Trusted
Listed in Forge index+10/10
Identity verified · attested build+20/20
Ed25519 publish signature+0/5
Included automatically when the publisher runs `forge publish`
Domain verification+0/5
Publisher: host /.well-known/forge.json on the package homepage with { "publisher": "<github-login>" }
npm Trusted Publishing (Sigstore)+5/5
npm maintainer match+0/5
Publisher: add the verified GitHub login to the npm package's maintainers (npm owner add <login>)
CVE scan · clean+30/30
Static analysis · clean+20/20
Paste into Claude Code, Cursor, or any AI assistant to fix all gaps
StatusIdentity verified
PublisherUnverified
SignatureUnsigned
Domain
Provenance✓ Sigstore-verified · 58ef299
Dependencies✓ 60 resolved+ · none vulnerable
Tool surface7 tools · none privileged
Security scan✓ Cleanv0.5.1 · todayHow well does this scan work?
EvalsNone
IndexedSep 5, 2026

Verification confirms publisher identity (repo ownership), not code safety. The security scan covers known CVEs and suspicious install scripts.

Tools

7 tools · none privileged
Statically extracted from the published packagev0.5.1 · 2h ago

Read out of the source npm actually ships, at scan time. The package was never executed. Tools registered dynamically at runtime, or hidden inside bundled or minified code, can be missed — so this is a floor on the tool surface, not a complete census of it.

client_usageToken usage and cost per coding agent (Claude Code vs OpenCode).

Token usage and cost per coding agent (Claude Code vs OpenCode).

No input schema was published for this tool.

daily_usagePer-day token usage and cost, newest day first. Use this for "how much did I use

Per-day token usage and cost, newest day first. Use this for "how much did I use

No input schema was published for this tool.

model_usagePer-model token usage and cost, highest token count first. Use this to answer

Per-model token usage and cost, highest token count first. Use this to answer

No input schema was published for this tool.

project_usagePer-project token usage and cost, highest token count first. A project is the working

Per-project token usage and cost, highest token count first. A project is the working

No input schema was published for this tool.

recent_sessionsMost recently active sessions with project path, client, model(s), duration,

Most recently active sessions with project path, client, model(s), duration,

No input schema was published for this tool.

session_usageUsage for one session: client, model(s), duration, token breakdown and cost.

Usage for one session: client, model(s), duration, token breakdown and cost.

No input schema was published for this tool.

usage_summaryTotal token usage and cost for a period, split by client (Claude Code, OpenCode).

Total token usage and cost for a period, split by client (Claude Code, OpenCode).

No input schema was published for this tool.

7 of 7 tools published a description.

Tool names and descriptions are written by the publisher and shown verbatim as inert text. They are the strings an MCP client passes to a model, so Forge scans them for prompt-injection patterns — any finding appears with the security scan above. “Privileged” is a keyword match on the tool name, not an audit of what the tool does: a benign-sounding name can still do anything.

About

Local-first MCP server that reports real token usage and cost across coding agents (Claude Code, OpenCode). Nothing leaves your machine.

Keywords
mcpmodel-context-protocolclaude-codeopencodetoken-usagecostlocal-first
Alternatives
Comparing tool surfaces…

Dependency tree

What one Forge scan resolved from npm metadata on 2026-09-05 — observed resolution, not a publisher declaration.

60 packages resolved · 2 direct · none carrying advisories Resolution stops at depth 4 and 60 packages.

The crawl stopped at the depth-4 limit. Anything below that level was never resolved.

The crawl stopped at the 60-package limit. The rest of the tree was never resolved.

36 more resolved packages are not drawn here (display cap: 24). Every dependency carrying an advisory is drawn regardless of the cap. Full inventory (CycloneDX SBOM)

Declared but not resolved

53 declared dependencies never landed in the tree. They are missing from Forge's resolution, not from the package.

+41 more not listed. The counts by reason above cover all of them.

Not followed: peerDependencies. This tree covers runtime dependencies only, so anything those pull in was never resolved.