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.
Once installed in Claude Desktop or Cursor, try asking your assistant:
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"
]
}
}
}