# Tare

> Tare is a free MCP server for developer tools. See where your coding agent's tokens and money went, with cache-safe fixes. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** CLI, macOS, Linux, Windows
- **Website:** https://tare.priberry.com
- **Repository:** https://github.com/priberry-data/tarelab
- **MCP Registry name:** io.github.priberry-data/tarelab
- **Categories:** developer tools, AI models and LLM tooling
- **Listing updated:** 2026-11-14

## About

Most of an agent bill is re-reading context it has already seen. Tare reads the session logs your assistant already keeps, prices every call at API list rates, and attributes spend to startup context, each tool's output, sub-agents and cache rebuilds. It reads Claude Code, Codex CLI, Gemini CLI, Cline, Roo Code and Kilo Code.

The README's own example is a month of 254 sessions at $6,720 API-equivalent spend with $623 flagged as avoidable, including a coffee-break cost for caches that expired after idle pauses. Fixes are deliberately narrow: an output trim hook that cuts long Bash output to first lines, failure lines and the tail, saving the full text locally, and a status line showing cache time left. Backups are taken first and tare fix --undo reverses them.

tare receipt compares cost per commit before and after with a 90% range, and refuses to print a number below 8 finished sessions on either side. It runs locally, uploads nothing and never calls a model. The MCP server offers tare_wrapped, tare_receipt and tare_cache; npx tarelab setup adds it to supported apps.

## Features

- **Spend breakdown:** Splits cost into cache reads, cache writes and output.
- **Waste attribution:** Names startup context, tool output, sub-agents and cache rebuilds.
- **Output trim hook:** Shortens long Bash output while keeping failures.
- **Cache countdown:** Status line shows when the cache goes cold.
- **Savings receipt:** Compares cost per commit before and after fixes.
- **Reversible setup:** Backups and an undo command protect settings.

## Good for

- Find out what a month of Claude Code use would cost on the API
- See how much was lost to idle cache expiry
- Trim noisy test logs before they enter context
- Check whether a fix really saved money

## Install

### Claude Code (Terminal)

```sh
claude mcp add tarelab -- npx -y tarelab
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "tarelab": {
      "command": "npx",
      "args": [
        "-y",
        "tarelab"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "tarelab": {
      "command": "npx",
      "args": [
        "-y",
        "tarelab"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "tarelab": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "tarelab"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "tarelab": {
      "command": "npx",
      "args": [
        "-y",
        "tarelab"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "tarelab": {
      "command": "npx",
      "args": [
        "-y",
        "tarelab"
      ]
    }
  }
}
```

## Tools

- `tare_wrapped`: Returns the spend summary for recent sessions.
- `tare_receipt`: Returns the before-and-after cost per commit comparison.
- `tare_cache`: Returns cache status information.

## FAQ

### Does it send my logs anywhere?

No. It runs locally, uploads nothing and never calls a model.

### Is it free?

The site describes it as local and free.

### Can I undo the fixes?

Yes, tare fix --undo removes only Tare's entries.

### Which agents does it read?

Claude Code, Codex CLI, Gemini CLI, Cline, Roo Code and Kilo Code.

### Is Tare free?

Yes. Tare is free to use.

### How do I add Tare to Claude Code?

Run this command in your terminal: claude mcp add tarelab -- npx -y tarelab

### What are the best alternatives to Tare?

The closest alternatives to Tare are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/tare
