Koskamo

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.

agent-cost-mcp logo, by vk0devCommunity listingLocal stdioSource reviewed; not executedPublished by vk0dev
Vendor documentation

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

Community listingRegistry 2.3.3
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

npm
@vk0/agent-cost-mcp package definition
{
  "version": "2.3.3",
  "transport": "stdio",
  "identifier": "@vk0/agent-cost-mcp",
  "registryType": "npm"
}

Tools

Reported by the attributed source; not independently observed by Koskamo.

No tool definitions available.

Connect from your client

Each snippet configures the same source-provided package; replace placeholders before use.

This server is operated by the named third party. Listing and endpoint checks are not an endorsement or a security audit. Review the operator's permissions, terms, and data handling before connecting. How listings are checked and corrected.

Cursor

Merge this local stdio configuration, replace every placeholder environment value, and restart Cursor. Koskamo has not executed this package.
Cursor configuration
{
  "mcpServers": {
    "agent-cost-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@vk0/agent-cost-mcp@2.3.3"
      ]
    }
  }
}

Cline

Merge this local stdio configuration, replace every placeholder environment value, and restart Cline. Koskamo has not executed this package.
Cline configuration
{
  "mcpServers": {
    "agent-cost-mcp": {
      "command": "npx",
      "args": [
        "-y",
        "@vk0/agent-cost-mcp@2.3.3"
      ]
    }
  }
}

VS Code

Merge this local stdio configuration, replace every placeholder environment value, and restart VS Code. Koskamo has not executed this package.
VS Code configuration
{
  "servers": {
    "agent-cost-mcp": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@vk0/agent-cost-mcp@2.3.3"
      ]
    }
  }
}

Claude Desktop

Merge this local stdio configuration, replace every placeholder environment value, and restart Claude Desktop. Koskamo has not executed this package.
Claude Desktop configuration
{
  "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.