Back to MCP marketplace
mcp-cost-tracker-router
development-it
In Review

mcp-cost-tracker-router

Added by npm

About

Real-time cost awareness for MCP agent workflows

Tools

  • get_session_cost
    Returns token totals and USD cost estimates for the current session. All costs are estimates; verify with your LLM provider's billing dashboard.
  • get_tool_costs
    Returns per-tool cost breakdown for the current session, sorted by cost descending. Useful for identifying the most expensive operations. All costs are estimates.
  • set_budget_alert
    Set a budget threshold in USD. A warning is emitted when session costs reach 80% or 100% of this threshold. Use with --enforce-budget to block calls beyond the limit.
  • reset_session
    Start a new cost-tracking session. Previous session data is retained in history and accessible via get_spend_history.
  • get_spend_history
    Query historical spend aggregated by time period (day/week/month). Returns breakdown by model and tool across all sessions. All costs are estimates.
  • record_usage
    Record token usage for a tool call. Logs LLM API cost estimates into the tracker. Emits a budget warning (notifications/message) if 80% of threshold is reached. Pricing table versions are tracked in CHANGELOG.md.
  • suggest_model_routing
    Heuristic model recommendation by task type. Analyzes the task description and returns a recommended model with reasoning and estimated cost per 1K tokens. Optionally factors in cost constraints.
  • estimate_workflow_cost
    Pre-run cost estimation for a multi-step workflow. Provide a list of tool steps with estimated token counts and models to get total and per-step cost estimates. Output is clearly labeled as ESTIMATE.
  • export_spend_report
    Generate a single-file HTML spend report with session cost breakdown, historical spend by period, model cost comparison chart (CSS bars), and budget status. No external CDN dependencies.
  • export_budget_audit
    Export audit log of budget enforcement decisions. Optionally filter by date range and format as JSON or CSV.
  • set_project
    Create or update a project with an optional budget in USD.
  • get_project_costs
    Get cost report for a project, optionally filtered by a since date.
  • tag_session
    Tag the current session with a project name for cost allocation.
  • export_chargeback
    Generate a chargeback report for internal team billing, grouped by project or session.
  • check_routing_policy
    Check whether a model is allowed for a given task type under the routing policy.

Playground

Tested live

Checking your session…

Community reviews

Reports from signed-in users. These reviews describe individual experiences and are not security audits.

No published reviews yet. Share a specific setup result to help the next user evaluate this server.

Used this MCP server?

Sign in before writing so your review is never lost.