goccc

backstabslash/goccc
★ 12 stars Go Code/Dev Tools Updated 8mo ago ✓ Clean
Goccc is a fast, zero-dependency CLI tool designed to function as both a cost calculator and a live statusline provider for Claude Code. It breaks down your API costs by model, day, project, and month — more precise and lightweight than ccusage, with additional features like MCP server tracking and local currency support.
View on GitHub → 🛡️ Security & TRiSM Audit →

⚡ What This Server Does & Key Capabilities

The goccc Model Context Protocol (MCP) server provides seamless integration between AI assistants (such as Claude Desktop, Cursor, and Claude Code) and Goccc is a fast, zero-dependency CLI tool designed to function as both a cost calculator and a live statusline provider for Claude Code. It breaks down your API costs by model, day, project, and month — more precise and lightweight than ccusage, with additional features like MCP server tracking and local currency support. By connecting this server, your AI agent gains specialized capabilities to inspect, query, and automate tasks within the Code/Dev Tools domain.

Core Agent Capabilities

💡 Example Prompts to Ask Your AI Agent

Once installed in Claude Desktop or Cursor, try asking your assistant:

"Review recent commits in this repository, run the test suite, and highlight performance bottlenecks."
"Search for functions that don't have unit tests and generate test cases for them."

Compatible AI Clients

🟣 Claude Desktop ⚡ Cursor IDE 💻 Claude Code CLI 🌊 Windsurf 🤖 Gemini CLI

Quick Install

Copy the config for your editor. Verify environment variables or setup notes in the README.

Add to claude_desktop_config.json:

{
  "mcpServers": {
    "goccc": {
      "command": "go",
      "args": [
        "run",
        "github.com/backstabslash/goccc@latest"
      ]
    }
  }
}
⚡
Building Production MCP Agents? PRO TOOLKITS
Get the Complete 31,400+ MCP Ecosystem Dataset ($29) or the FastMCP + TypeScript Starter Kit ($39) with turnkey Docker & Cloudflare deployment.

Topics

anthropicapi-costsclaudeclaude-codeclicost-calculatordeveloper-toolsgolangstatuslineusage-tracker