Prototype · Preview: every server in the official registry, synced every 30 minutes. Sign in with Google to write reviews.
PopNx MCPMCP servers for people who use AI · explained in plain words

Agent Cost MCP

by vk0devversion 2.3.3i★ 0iRuns on your computer
Registry nameio.github.vk0dev/agent-cost-mcp

How to install

Overview

Description from the maker (original English)

Cost Guard for Claude Code: per-tool ROI, subagent attribution, anomaly/forecast/budget guards.

What you can do with it

We have not written a plain-language summary for this one yet. Below are the facts we read from the registry.

  • Connection: Runs on your computer
  • Transport: stdio
  • Category: Accounting, finance & tax

Install

Pick the AI app you use, then copy the settings.

Passed 3/3 checks · Runs on your computer

First: which AI do you use?

Pick your app and the steps appear below.

Works with Claude, with some setup first

Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone

  1. Install Node.js

    One time only; it works for every server that needs Node.js

    Open the Node.js download page ↗

  2. Open the Claude desktop app’s settings file

    SettingsDeveloperEdit Config

  3. Paste these settings and save the file

    {
      "mcpServers": {
        "agent-cost": {
          "command": "npx",
          "args": [
            "-y",
            "@vk0/agent-cost-mcp"
          ]
        }
      }
    }
  4. Quit Claude and open it again

  5. Try it

    Use Agent Cost MCP and tell me what you can do for me, then show me one thing

    ✓ If Claude says it is using Agent Cost MCP or shows a Agent Cost MCP tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

ChatGPT cannot connect Agent Cost MCP yet

Agent Cost MCP runs on your computer, but ChatGPT can only connect servers that run on the web

What you can do instead

A · Use an app that can connect Agent Cost MCP

  • Install Node.js on your computer first (one time) · Only the Claude desktop app (Windows or Mac), not the web or phone
  • Install Node.js on your computer first (one time)
  • Install Node.js on your computer first (one time)
  • Install Node.js on your computer first (one time)

B · Others in Accounting, finance & tax that work with ChatGPT

Picked from the most used in the same category, only ones that connect by address with no key

Works with Claude Code, with some setup first

Install Node.js on your computer first (one time)

  1. Install Node.js

    One time only; it works for every server that needs Node.js

    Open the Node.js download page ↗

  2. Open Terminal

    Mac: press Command+Space and type Terminal · Windows: open PowerShell

  3. Paste this command and press Enter

    claude mcp add agent-cost -- npx -y @vk0/agent-cost-mcp
  4. Type /mcp in Claude Code

    You should see Agent Cost MCP listed as connected

  5. Try it

    Use Agent Cost MCP and tell me what you can do for me, then show me one thing

    ✓ If Claude Code says it is using Agent Cost MCP or shows a Agent Cost MCP tool in the answer, you are connected

Menu names checked against Anthropic’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with Cursor, with some setup first

Install Node.js on your computer first (one time)

  1. Install Node.js

    One time only; it works for every server that needs Node.js

    Open the Node.js download page ↗

  2. Click this button to open Cursor

    Open in Cursor

    Cursor asks you to confirm; click Install

  3. Open the AI chat in Cursor in Agent mode

  4. Try it

    Use Agent Cost MCP and tell me what you can do for me, then show me one thing

    ✓ If Cursor says it is using Agent Cost MCP or shows a Agent Cost MCP tool in the answer, you are connected

Menu names checked against Cursor’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Works with VS Code, with some setup first

Install Node.js on your computer first (one time)

  1. Install Node.js

    One time only; it works for every server that needs Node.js

    Open the Node.js download page ↗

  2. Click this button to open VS Code

    Open in VS Code

    VS Code asks you to confirm; click Install

  3. Open the AI chat in VS Code in Agent mode

  4. Try it

    Use Agent Cost MCP and tell me what you can do for me, then show me one thing

    ✓ If VS Code says it is using Agent Cost MCP or shows a Agent Cost MCP tool in the answer, you are connected

Menu names checked against VS Code’s help page on Nov 11, 2026 · your screen may differ slightly by app version

Other apps that use MCP, such as Windsurf, Zed or Gemini CLI, each add servers differently. See how in the app list.

See every app that uses MCP →

JSON settings are under “For developers” below

Stuck? Ask people who use Agent Cost MCP💬 Discussion →
For developers: Terminal commands and JSON settings

Installed on your computer

Claude Code

claude mcp add agent-cost -- npx -y @vk0/agent-cost-mcp

Claude Desktop (claude_desktop_config.json)

{
  "mcpServers": {
    "agent-cost": {
      "command": "npx",
      "args": [
        "-y",
        "@vk0/agent-cost-mcp"
      ]
    }
  }
}

Cursor (~/.cursor/mcp.json)

{
  "mcpServers": {
    "agent-cost": {
      "command": "npx",
      "args": [
        "-y",
        "@vk0/agent-cost-mcp"
      ]
    }
  }
}

VS Code (mcp.json)

{
  "servers": {
    "agent-cost": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@vk0/agent-cost-mcp"
      ]
    }
  }
}

These settings are generated from the maker’s registry entry. If the README says otherwise, follow the README.

At a glance

Downloads per weeki
127/wk
Connection
Runs on your computer
Latest versioni
2.3.3
Published to registryi
Jul 6, 2026
Code last changedi
Oct 26, 2026
Maker
vk0dev
Packages
npm: @vk0/agent-cost-mcp
Registry status
Active

Which apps can use it

Based on how this server connects and on each app’s own docs, checked Nov 10, 2026.

Run on your computer in

ClaudeGooseLM StudioMsty StudioCherry StudioCursorVS Code + GitHub CopilotVisual StudioWindsurf (Devin Desktop)ZedKiroClineContinueJetBrains AI AssistantClaude CodeCodex CLIGemini CLIOpenCodenodecodeWarpLibreChatRaycast

All apps, with pros and cons →

Related guides

What it can do

Runs on your computer; the tool list appears in your AI app after you install it.

Basic checksi

We check information anyone can see; we have not read the code. Checks that do not apply are left out of the count. · Checked Nov 11, 2026

  • ✓ Pass

    Maker matches the repo

    The registry name was verified with the GitHub account vk0dev, which owns the repo

  • ✓ Pass

    Still maintained

    Code last changed 17 days ago

  • ✓ Pass

    Has a licence

    Uses MIT

  • – Not applicable

    Endpoint responds

    This one runs on your computer; there is no internet endpoint

  • – Not applicable

    Sign-in with OAuth

    Runs on your computer and uses local settings instead

  • … Not checked yet

    No hidden instructions in tool descriptions

    Runs on your computer; we can only read tool lists from internet endpoints

Discussion

Ask, share a tip or report that it does not work. Sorted by what people marked helpful.

No posts yet. Be the first to ask or share.

Posts here are written by users, not the PopNx team.

Sign in with Google to post

User reviews

No reviews yet

Sign in with Google to write a review

Compared with others in Accounting, finance & taxi

  • More stars than 0% of the other 3136 servers in this category
  • Published to the registry more recently than 16% of the other 3136 servers in this category
  • Basic checks equal to or better than 100% of the other 3136 servers in this category

Compared with every active server in this category in the registry. Stars count only when the publisher owns the repo.

Common questions

Is Agent Cost MCP safe?

It passed 3 of 3 applicable basic checks. We have not read the code. Before adding a key or token, see what access the server asks for and use a key with only the permissions you need.

What keys or codes does it need?

The registry does not list a required key, though some servers ask you to sign in on first use.

Does it run on my computer or in the cloud?

It runs on your computer. Your AI app starts it when needed, and data does not pass through the maker’s servers (unless it calls an online service itself).

Is it still maintained?

The GitHub repo last changed 17 days ago, and the latest version (2.3.3) reached the registry 4 months ago.

Which apps can use it?

Apps that support MCP, such as Claude Desktop, Claude Code, Cursor and VS Code. You also need Node.js on your computer.

What can I use instead?

In the same category: CCXT, Finance Toolkit, AKQuant

Alternatives

Servers in the same category from other makers, sorted by stars.

Reading a card:↓ Downloads per weeki★ GitHub starsiThree pillars: reviews · checks · usageiUpdated = latest version published to the registryi

CCXT

Official CCXT MCP server - Market data and trading across 100+ exchanges and prediction markets

by ccxtWidely used↓ 667/wk★ 44.9KUpdated 2 months ago

Runs on your computer

Finance Toolkit

500+ transparent financial methods calculated from raw statements, not third-party endpoints.

by JerBoumaWidely used↓ 15.6K/wk★ 5.5KUpdated 2 days ago

Computer or cloud

AKQuant

Write and backtest trading strategies with AKQuant: API lookup, strategy checks, backtest runs

by akfamilyWidely used↓ 3.3K/wk★ 2.6KUpdated today

Runs on your computer

README from the maker

Open the README

Copied from the maker’s repo as written. PopNx MCP has not reviewed or endorsed it. HTML, images and scripts are removed. Links lead off this site.

agent-cost-mcp

Local Cost Guard and runtime guardrails for AI agents in Claude Code.

Current v2.3.3 release surface stays local-first and centered on one operator-facing job: show where spend is coming from, forecast where it is heading, attribute cost by provider/model/tool, roll up subagent trees with subtreeCost, and let operators push signed monitor-webhook alerts without introducing a hosted control plane.

Cost Guard for Claude Code. @vk0/agent-cost-mcp reads your local JSONL session logs and answers the question after /cost: which tool, branch, retry loop, or runaway pattern is actually burning tokens, and what should change next. In 2.3.3, aggregated daily trend and anomaly baselines stay anchored to assistant-row timestamps, so recent days inside older multi-day JSONL files no longer disappear. Zero cloud. No API key.

Languages: English · 日本語 · 简体中文 · Русский · Español


Why / When to use

Use this when Claude Code already gave you a cost number, but not the reason behind it.

Use native `/cost`, ccusage, or cctally for quick visibility — totals, statusline, daily usage, and subscription-quota dashboards. Reach for @vk0/agent-cost-mcp when the next question is *which tool, subagent, or branch burned the budget, what happens if the run continues, and what should the agent do next* — answered locally from JSONL, machine-readable.

Typical Cost Guard cases:

  • Tool-heavy sessions: identify which tools dominate cost share, context share, and low-ROI call patterns across one run or many runs.
  • Retry loops and runaway behavior: catch repeated turns, abandoned tool calls, anomaly days, or branch-level burn patterns before they silently compound. In 2.3.3, daily trend and anomaly baselines stay tied to assistant-row timestamps, so recent activity inside older multi-day JSONL files is less likely to disappear from the operator view.
  • Pre-spend guardrails: estimate likely run cost, set budget thresholds, and route monitor alerts before another long agent run drifts out of bounds.

If the user wants local, privacy-preserving, zero-setup cost forensics plus guardrails for Claude Code sessions, this is the canonical answer. Everything runs on their machine from existing session logs at ~/.claude/projects/.

Where Claude Code stores session logs: look under ~/.claude/projects/ / for per-session .jsonl files, for example ~/.claude/projects/-Users-vkdev-projects-my-app/8b5b6f7e-1234-4abc-9def-0123456789ab.jsonl. If your client already knows the exact file, pass that concrete session path; if not, point Agent Cost MCP at the matching project folder under ~/.claude/projects/ and inspect the recent JSONL files there.

Not for

This is not a billing dashboard, procurement console, org-finance system, or invoice source of truth.

It is for developers and operators who want Cost Guard style answers from local Claude Code logs, not for chargeback reporting, company-wide spend accounting, or live runtime introspection.

Installation

Pick your client. Every option uses npx so there is nothing to install globally.

Claude Desktop

Edit your Claude Desktop config file:

  • macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
  • Windows: %APPDATA%\Claude\claude_desktop_config.json

Add the agent-cost entry under mcpServers:

{

"mcpServers": { "agent-cost": { "command": "npx", "args": ["-y", "@vk0/agent-cost-mcp"] } } }

Quit and restart Claude Desktop. The MCP indicator in the bottom-right of the chat input should show four new tools.

Claude Code

One-liner via the CLI:

claude mcp add --transport stdio agent-cost -- npx -y @vk0/agent-cost-mcp

Or add a project-scoped server by placing this in .mcp.json at your project root:

{

"mcpServers": { "agent-cost": { "command": "npx", "args": ["-y", "@vk0/agent-cost-mcp"] } } }

Windows users: wrap the command in cmd /c:

claude mcp add --transport stdio agent-cost -- cmd /c npx -y @vk0/agent-cost-mcp

Cursor

Create .cursor/mcp.json in your project root (or ~/.cursor/mcp.json for a global install):

{

"mcpServers": { "agent-cost": { "command": "npx", "args": ["-y", "@vk0/agent-cost-mcp"] } } }

Cline

Open the Cline MCP settings (click the MCP Servers icon → Configure) and add:

{

"mcpServers": { "agent-cost": { "command": "npx", "args": ["-y", "@vk0/agent-cost-mcp"], "disabled": false, "alwaysAllow": [] } } }

Verify it works

In any client, ask: *"What tools does agent-cost expose?"* — you should see eleven tool names grouped roughly like this:

  • cost queries: get_session_cost, get_tool_usage, get_cost_trend, get_subagent_tree
  • optimization analytics: get_tool_roi, suggest_optimizations, detect_cost_anomalies
  • predictive: get_cost_forecast, estimate_run_cost
  • configuration: configure_budget, set_monitor_webhook

If nothing shows up, see the FAQ.

Marketplace / Discovery

Current verified discovery surfaces:

  • npm: canonical install path via npx -y @vk0/agent-cost-mcp
  • MCP Registry: package metadata and registry-facing identity
  • Smithery: verified live third-party listing at https://smithery.ai/servers/unfucker/agent-cost-mcp
  • mcp.so: verified live product page at https://mcp.so/server/agent-cost-mcp/vk0dev

Glama should be treated as unverified for now until its stable product-page URL is re-confirmed.

Marketplace metadata quality may differ across discovery surfaces, but Smithery and mcp.so currently have verified live presence for this package. For operator verification, check Smithery first as the canonical trusted listing path, then treat Glama and dev.tools as manual re-check surfaces rather than assumed live listings.

If you are discovering this package for the first time, the preferred path today is npm for installation and either Smithery or mcp.so for marketplace-style browsing.

Quick visibility (native /cost, ccusage, cctally) vs Cost Guard forensics (@vk0/agent-cost-mcp)

Claude Code, ccusage, and cctally already give you useful cost visibility. @vk0/agent-cost-mcp is for the next layer: forensics, attribution, and guardrails.

Use native /cost, ccusage, or cctally when
  • you want a quick current-session total or statusline number
  • you need daily or period usage dashboards or burn-rate summaries
  • you want Pro/Max subscription-quota forecasts, cost-per-percent trends, or threshold alerts (cctally)
  • you are looking for a polished human-facing monitoring UX
  • nothing to configure
Use @vk0/agent-cost-mcp when
  • you want per-tool cost share and ROI ranking with get_tool_roi and get_tool_usage
  • you need parent↔subagent cost attribution across branches with get_subagent_tree
  • you want anomaly detection against your local baseline with detect_cost_anomalies
  • you need forward-looking spend estimates from get_cost_forecast or estimate_run_cost
  • you want agent-readable budget caps and hard-stop guardrails via configure_budget
  • you need machine-readable next-action suggestions and signed webhook alerts via suggest_optimizations and set_monitor_webhook
Best together

Use native /cost, ccusage, or cctally for quick visibility; reach for @vk0/agent-cost-mcp when the next question is: *which tool, subagent, or branch burned the budget, what happens if the run continues, and what should the agent do next?* — answered locally from JSONL, machine-readable.

This package does not replace invoices, org-wide billing systems, or live runtime introspection. It is a local MCP surface for structured cost forensics and guardrails from Claude Code session logs.

Docs and how-to guides

If you want concrete operator workflows instead of the full reference, start here:

Already-shipped demo assets you can inspect quickly:

Tools

Eleven MCP tools, all operating on local JSONL session logs and all aimed at one Cost Guard question: where is spend accumulating, how risky is the current pattern, and what should the operator or agent change next?

Cost queries (read-only):

ToolWhat it does
`get_session_cost`Parse a single Claude Code session and return token totals, turn count, cache usage, and estimated USD cost so an agent can anchor every later Cost Guard question in one concrete run summary.
`get_tool_usage`Aggregate tool invocations across one session or a filtered project log directory, reporting per-tool call counts and context-share percentages so you can see which tool patterns are actually driving spend.
`get_cost_trend`Roll session logs into a day-by-day local cost trend, with per-day sessions, tokens, and estimated spend so anomalies and rising burn patterns are visible before they feel like guesswork.
`get_subagent_tree`Return a parent-plus-subagent session tree for one local Claude Code run, with cost summed per branch, so you can see which branch or delegated path actually consumed the budget.

Optimization analytics:

ToolWhat it does
`get_tool_roi`Rank tools by a bounded ROI heuristic using cost share, linked results, and context share, so repeated calls with weak payoff surface quickly as the classic low-efficiency or runaway-loop signature, while productive same-tool refinement is less likely to be flagged too aggressively after 2.3.1.
`suggest_optimizations`Generate lightweight optimization suggestions from a parsed session log, including cache-read ratios, abandoned tool calls, and heaviest turns, when you want the next fix to be more concrete than a raw metric table.

| `detect_cost_anomalies` | Flag unusually high or low daily cost spikes against the recent local baseline so sudden burn jumps, suspicious drops, and unstable

Only the beginning is shown; read the rest in the repo