mcp-cost-tracker-router MCP Server

npm mcp-cost-tracker-router package

Local serverstdioMIT

What is the mcp-cost-tracker-router MCP Server?

mcp-cost-tracker-router is an MCP project maintained in the dbsectrainer/mcp-cost-tracker-router repository. The maintainer describes its purpose as “npm mcp-cost-tracker-router package”. Read the project documentation for the complete scope.

Installation

The documented npm package is mcp-cost-tracker-router. The configuration below comes from the maintainer’s example; adapt its paths and account values to your environment.

Source

Project documentation · Repository · Discovery listing. This profile records the public documentation checked on 2026-10-08.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
get_session_costReturns token totals and USD cost estimates for the current session. Read-only.
get_tool_costsReturns per-tool cost breakdown for the session, sorted by cost descending. Read-only.
reset_sessionStart a new cost-tracking session. Previous session data is retained in history.
record_usageRecord token usage for a tool call. Takes tool_name, model (optional), input_tokens, and output_tokens. Emits a budget warning notification if 80% of threshold
set_budget_alertSet a budget threshold in USD (threshold_usd). Warns at 80% and 100% of the threshold. Use with --enforce-budget to block calls beyond the limit.
suggest_model_routingHeuristic model recommendation by task type. Takes task_description and optional constraints.max_cost_usd. Returns recommended model with reasoning and…
check_routing_policyCheck whether a model is allowed for a given task type under the routing policy. Takes task_type and model.
get_spend_historyQuery historical spend aggregated by period (day/week/month). Returns breakdown by model and tool. Read-only.
estimate_workflow_costPre-run cost estimation for a multi-step workflow. Takes a steps array with tool_name, estimated_input_tokens, estimated_output_tokens, and optional model.…
export_spend_reportGenerate a single-file HTML spend report with session breakdown, historical spend, model cost comparison, and budget status. Read-only.
export_budget_auditExport the audit log of budget enforcement decisions. Accepts optional from_date, to_date, and format (json/csv). Read-only.
set_projectCreate or update a project with an optional budget_usd. Takes project_name.
tag_sessionTag the current session with a project_name for cost allocation.
get_project_costsGet cost report for a project. Takes project_name and optional since (ISO date). Read-only.
export_chargebackGenerate a chargeback report for internal billing. Takes from_date, to_date, optional group_by (project/session), and optional format (json/csv). Read-only.

How to install the mcp-cost-tracker-router MCP Server

{
  "mcpServers": {
    "cost-tracker": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-cost-tracker-router@latest"
      ]
    }
  }
}

From the project documentation. Replace placeholders and example paths before connecting.