KiroStats
FreeNot checkedReal-time credit usage and session tracking for Kiro IDE, reading from local state without auth or network.
About
Real-time credit usage and session tracking for Kiro IDE, reading from local state without auth or network.
README
Real-time credit usage and session tracking for Kiro IDE — as an MCP server.
No auth. No network. No cloud dependency. Reads directly from Kiro's local execution files.
What You Get
Three metrics, live from the same source that powers Kiro's "Est. Credits Used" display:
- Credits Used — exact per-turn credits from execution files
- Agent Time — cumulative time Kiro spent processing
- Session Time — total time since the chat started
Usage
Type /stats in any Kiro chat.
How It Works
Kiro persists every agent execution to disk as JSON files containing usageSummary[] arrays with exact per-turn credit values. KiroStats reads these files directly.
Data source:
%APPDATA%/Kiro/User/globalStorage/kiro.kiroagent/{workspace-hash}/{session-hash}/{execution-hash}
The single tool (get_session_stats) finds the running execution, groups all executions by chatSessionId, and returns aggregated credits and timing.
Install
git clone https://github.com/BrennanWebb/KiroStats.git
cd KiroStats
.\install.ps1
The installer:
- Pip-installs the MCP server package
- Registers it in
~/.kiro/settings/mcp.json - Creates a
/statssteering file for manual invocation
Restart Kiro after install.
Manual Install
pip install -e .
Add to ~/.kiro/settings/mcp.json:
{
"mcpServers": {
"kiro-stats": {
"command": "kiro-stats-mcp",
"autoApprove": ["get_session_stats"]
}
}
}
Copy .kiro/steering/stats.md from this repo to ~/.kiro/steering/.
Tool
| Tool | Returns |
|---|---|
get_session_stats |
credits_used, agent_time, session_time |
Supported Platforms
| OS | Kiro Data Path |
|---|---|
| Windows | %APPDATA%\Kiro\User\globalStorage\kiro.kiroagent\ |
| macOS | ~/Library/Application Support/Kiro/User/globalStorage/kiro.kiroagent/ |
| Linux | ~/.config/Kiro/User/globalStorage/kiro.kiroagent/ |
Requirements
- Python 3.10+
- Kiro IDE installed and opened at least once
Uninstall
pip uninstall kiro-stats-mcp
# Remove "kiro-stats" from ~/.kiro/settings/mcp.json
# Delete ~/.kiro/steering/stats.md
License
MIT
Installing KiroStats
This server has no published package — it is built from source. Open the repository and follow its README.
▸ github.com/BrennanWebb/KiroStatsFAQ
Is KiroStats MCP free?
Yes, KiroStats MCP is free — one-click install via Unyly at no cost.
Does KiroStats need an API key?
No, KiroStats runs without API keys or environment variables.
Is KiroStats hosted or self-hosted?
Self-hosted: the server runs locally on your machine via the install command above.
How do I install KiroStats in Claude Desktop, Claude Code or Cursor?
Open KiroStats on unyly.org, pick your client tab (Claude Desktop, Claude Code, Cursor) and press Install — the config is generated automatically, no JSON editing.
Related MCPs
GitHub
PRs, issues, code search, CI status
by GitHubFilesystem
Secure file operations with configurable access controls.
Memory
Knowledge graph-based persistent memory system.
Template MCP Server
A CLI tool to create a new Model Context Protocol server project with TypeScript support, dual transport options, and an extensible structure
by mcpdotdirectCompare KiroStats with
Not sure what to pick?
Find your stack in 60 seconds
Author?
Embed badge for your README
Browse similar
All development MCPs
