agent-cost-mcp (vk0dev/agent-cost-mcp) is an MCP server listed on the M8ven Trust Index. It scores 60 out of 100, grade C. It declares 11 tools. No publisher has claimed this listing.
Local-first Claude Code cost analyzer. Parses JSONL session logs to surface per-tool spend, daily trends, and optimization hints.
Caution. Specific findings reduced this grade. They are listed on the page. Grades reflect the full trust pyramid: code, verification depth, and reputation. New projects cap at C until adoption is earned.
How we verified
Verified is a snapshot. Live keeps it current, and builds your track record.
⚡ Connect GitHub → continuous verification on every pushwhy connect →Who stands behind it
vk0dev
Source: Glama · also listed on github_repo_search
Claim it to get a verified publisher badge, a free copy of our full audit findings, and direct contact for any high-priority issues we find. Or connect your repo for our deepest verification, Live Monitored: read-only, revoke anytime. What we access →
Install from
The grade above is for the source repository. Registries can serve a different version, so we mark the ones we were not able to read.
These names and descriptions are the publisher's own, read from the source code. We print them as written. Our assessment is the findings above, not this list.
configure_budgetSet deterministic daily/session budget caps and alert thresholds for local cost guardrails. Does NOT enforce billing-side spend limits or notify external systems.
get_session_costGet a single Claude Code session cost summary with token totals and estimated USD cost from a session log. Does NOT fetch remote billing data, reconcile invoices, or infer missing logs.
get_tool_usageInspect which tools appear most often across one session or a filtered project log directory to spot context-heavy patterns. Does NOT measure per-tool token usage precisely or inspect live Claude Code sessions.
get_subagent_treeShow a bounded parent-plus-subagent session tree for one local Claude Code session so nested cost attribution is easier to inspect. Does NOT infer hidden lineage beyond the available local JSONL files or reconstruct remote orchestration state.
get_tool_roiRank tools by a bounded heuristic ROI view using context share, linked result share, and estimated cost share from parsed local sessions. Does NOT claim exact per-tool billing attribution or infer true business value.
get_cost_trendRoll session logs into a day-by-day cost trend for a local project path so you can watch spend move over time. Does NOT predict future spend, sync cloud analytics, or backfill missing timestamp history.
get_cost_forecastProject a bounded local cost forecast from recent daily trend data so you can estimate upcoming spend. The forecast is deterministic, recency-weighted, non-seasonal, and local-first; confidence metadata and sparse-history adjustment may appear, but it does NOT model seasonality, external events, or …
detect_cost_anomaliesFlag unusually high or low daily cost spikes against the recent local baseline for a project. Does NOT stream alerts continuously, infer root cause automatically, or act as a longer-term monitoring system.
estimate_run_costEstimate the likely cost of a planned run before execution using prompt/output token assumptions and cache reuse. Does NOT inspect live runs, predict tool-level ROI, or model cache-creation writes beyond the bounded assumptions in the result.
set_monitor_webhookConfigure an alert webhook target for signed monitor events such as forecast/anomaly/cap notifications. Does NOT test the remote endpoint or manage webhook history.
suggest_optimizationsGenerate lightweight optimization suggestions from one parsed session log after cost or tool-usage review. Does NOT rewrite prompts automatically, inspect source code, or stand in for a full human performance audit.
Disclosed vulnerabilities in this server's declared npm dependencies (via OSV). Whether each is reachable depends on the installed versions.
@modelcontextprotocol/sdk has cross-client data leak via shared server/transport instance reuse
Anthropic's MCP TypeScript SDK has a ReDoS vulnerability
Model Context Protocol (MCP) TypeScript SDK does not enable DNS rebinding protection by default
SMITHERY_API_KEYTool annotations
No tools have read-only/destructive annotations
Add readOnlyHint or destructiveHint annotations to every tool so hosts can warn users before invoking.
All four hints declared on every tool
11/11 tools missing one or more hints — configure_budget (missing: readOnlyHint, destructiveHint, idempotentHint, openWorldHint); get_session_cost (missing: readOnlyHint, destructiveHint, idempotentHint, openWorldHint); get_tool_usage (missing: readOnlyHint, destructiveHint, idempotentHint, openWorldHint), +8 more. OpenAI's directory rejects tools where any of the four hints are missing or non-boolean.
For every tool, set all four hints (readOnlyHint, destructiveHint, idempotentHint, openWorldHint) to explicit true/false values that match the handler’s actual behaviour.
Tool inputs are validated
Only 0/11 tool handlers declare input schemas (0%)
Declare an inputSchema with zod/joi/yup on every tool definition.
Tool handlers catch errors
Only 2/11 tool handlers wrap calls in try/catch (18%)
Wrap each tool handler body in try/catch and return a structured error response.
Shell command execution
1 child_process call — runs shell commands
Prefer library functions over shell-outs. If you must shell out, ensure all inputs are properly escaped.
Production dependencies are patched
0 critical, 3 high severity in production deps — @modelcontextprotocol/sdk@1.12.0 (high), @modelcontextprotocol/sdk@1.12.0 (high)
Run npm audit fix, or upgrade the affected packages to a non-vulnerable version.
Claim the listing to review these findings one by one and send us a correction where you disagree, straight to the team. Claiming also means we tell you when the grade moves, and reach you first if we find anything urgent.
[](https://m8ven.ai/mcp/vk0dev/agent-cost-mcp)?variant=verified from the URL.Vetting this one by hand? Tool Check is an MCP that scores other MCPs. Add it once and ask Claude, ChatGPT, or any MCP client to grade a server, surface CVEs, check the publisher, and suggest safer alternatives — before you install.
https://m8ven.ai/api/mcp/tool-check