agent-cost-mcp
A local-first MCP server for Claude Code that analyzes JSONL session logs to provide per-tool spend attribution, daily trend analysis, anomaly detection, and budget guardrails. It helps operators identify which tools or subagents are burning tokens and offers optimization hints without requiring cloud services or API keys.
Package and access
Local package with source-attributed installation metadata. Koskamo does not execute packages during review.
What you can do with it
- Identify which tools dominate cost share in heavy sessions
- Detect retry loops and runaway behavior before they compound
- Estimate likely run cost and set budget thresholds
- Attribute cost by provider, model, tool, and subagent tree
Source and maintenance
- Maintenance checked
Packages and installation
Source-provided package data. Koskamo has not executed or live-probed this package.
@vk0/agent-cost-mcp 2.3.3
{
"version": "2.3.3",
"transport": "stdio",
"identifier": "@vk0/agent-cost-mcp",
"registryType": "npm"
}Tools
Reported by the attributed source; not independently observed by Koskamo.
Connect from your client
Each snippet configures the same source-provided package; replace placeholders before use.
Cursor
{
"mcpServers": {
"agent-cost-mcp": {
"command": "npx",
"args": [
"-y",
"@vk0/agent-cost-mcp@2.3.3"
]
}
}
}Cline
{
"mcpServers": {
"agent-cost-mcp": {
"command": "npx",
"args": [
"-y",
"@vk0/agent-cost-mcp@2.3.3"
]
}
}
}VS Code
{
"servers": {
"agent-cost-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@vk0/agent-cost-mcp@2.3.3"
]
}
}
}Claude Desktop
{
"mcpServers": {
"agent-cost-mcp": {
"command": "npx",
"args": [
"-y",
"@vk0/agent-cost-mcp@2.3.3"
]
}
}
}Let your agent find its tools
Find servers like agent-cost-mcp from your agent. Add Koskamo once to search the index for endpoints, access requirements, and client setup. Public discovery needs no key.