Agentβ™₯︎Age
Catalog

Tokenscope

Official

by wartzar-bee Β· HTML

Analyze Claude Code session cost & context attribution: output, cached re-reads, cache writes.

This MCP server provides analysis of Claude Code session cost and context attribution. It outputs breakdowns of how much cost comes from model output versus context that is re-sent each turn. The included readme excerpt describes it as a local, read-only CLI that parses Claude Code session logs to explain where the money goes.

πŸ› οΈ Key Features

  • Analyze Claude Code session cost
  • Attribute costs to model output vs. cache read (re-sent context)
  • Parse Claude Code session logs
  • Topics: ai-cost, anthropic, claude, claude-code, llm-cost, token-usage, mcp

πŸš€ Use Cases

  • Diagnose which parts of an AI-coding session drive spending
  • Identify context re-sent every turn as a major cost factor
  • Review β€œlatest session” totals and per-category cost shares

⚑ Developer Benefits

  • Read-only access pattern (as described in the excerpt)
  • Produces cost breakdowns such as β€œTotal cost” over β€œmodel turns”
  • Uses local parsing of session logs to support repeatable analysis

Topics

ai-costanthropicclaudeclaude-codeclillm-costtoken-usagemcpmcp-servermodel-context-protocol