Skip to content
Agentmart
Submit a tool

MCP Cost Tracker Router

Real-time cost awareness for MCP agent workflows

Connector by dbsectrainer · GitHub account verified by the MCP Registry

IndexedMITLocal (stdio)
Write a review

Install

Works with Claude Code, Codex, VS Code, Cursor, Windsurf, Claude Desktop. Read the repository before you give any tool access to your data.

npx agentmarket install connector/dbsectrainer-mcp-cost-tracker-router

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Real-time cost awareness for MCP agent workflows

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this server can do and what it asks for, from its tool list and install config. Checked Oct 25, 2026.

Tools
10 read · 4 write · 1 delete
Secrets
1 (API keys, tokens or passwords)
Install scripts
Not scanned yet
Runs as
Node.js package

Tools by what they do 15

Read from the source code; the running server may list different tools.

Read 10 · Look things up without changing anything.

  • check_routing_policy
  • estimate_workflow_cost
  • export_budget_audit
  • export_chargeback
  • export_spend_report
  • get_project_costs
  • get_session_cost
  • get_spend_history
  • get_tool_costs
  • suggest_model_routing

Write 4 · Create, change, send or run things.

  • record_usage
  • set_budget_alert
  • set_project
  • tag_session

Delete 1 · Delete, drop, revoke or wipe things.

  • reset_session

Secrets and settings it asks for

Secrets: values you paste in that let it act as you.

  • YOUR_API_KEY

Tools (15)

Read from the source code; the running server may differ. Descriptions are the server’s own words; hidden characters are shown as [U+…].

  • check_routing_policyread-only

    Check whether a model is allowed for a given task type under the routing policy.

  • estimate_workflow_costread-only

    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_budget_auditread-only

    Export audit log of budget enforcement decisions. Optionally filter by date range and format as JSON or CSV.

  • export_chargebackread-only

    Generate a chargeback report for internal team billing, grouped by project or session.

  • export_spend_reportread-only

    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.

  • get_project_costsread-only

    Get cost report for a project, optionally filtered by a since date.

  • get_session_costread-only

    Returns token totals and USD cost estimates for the current session. All costs are estimates; verify with your LLM provider's billing dashboard.

  • get_spend_historyread-only

    Query historical spend aggregated by time period (day/week/month). Returns breakdown by model and tool across all sessions. All costs are estimates.

  • get_tool_costsread-only

    Returns per-tool cost breakdown for the current session, sorted by cost descending. Useful for identifying the most expensive operations. 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.

  • reset_session

    Start a new cost-tracking session. Previous session data is retained in history and accessible via get_spend_history.

  • 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.

  • set_project

    Create or update a project with an optional budget in USD.

  • suggest_model_routingread-only

    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.

  • tag_session

    Tag the current session with a project name for cost allocation.

Signals

Stars
0
Forks
0
Open issues
0
Last commit
Sep 23, 2026 (1 month ago)
Last release
Mar 23, 2026 (7 months ago)

From GitHub (fetched Oct 24, 2026).

Details

Registry name
io.github.dbsectrainer/mcp-cost-tracker-router
Version
1.0.0
Auth
API key
License
MIT
First seen
Oct 24, 2026
Last checked
Oct 25, 2026

More from dbsectrainer

Cite this page

MCP Cost Tracker Router. Agent Mart. https://agentmart.dev/connectors/dbsectrainer-mcp-cost-tracker-router (last updated 2026-10-25)