MCP Cost Tracker Router
Real-time cost awareness for MCP agent workflows
Connector by dbsectrainer · GitHub account verified by the MCP Registry
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.
About
Reviews
Write a reviewNo 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_policyestimate_workflow_costexport_budget_auditexport_chargebackexport_spend_reportget_project_costsget_session_costget_spend_historyget_tool_costssuggest_model_routing
Write 4 · Create, change, send or run things.
record_usageset_budget_alertset_projecttag_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-onlyCheck whether a model is allowed for a given task type under the routing policy.
estimate_workflow_costread-onlyPre-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-onlyExport audit log of budget enforcement decisions. Optionally filter by date range and format as JSON or CSV.
export_chargebackread-onlyGenerate a chargeback report for internal team billing, grouped by project or session.
export_spend_reportread-onlyGenerate 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-onlyGet cost report for a project, optionally filtered by a since date.
get_session_costread-onlyReturns 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-onlyQuery 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-onlyReturns per-tool cost breakdown for the current session, sorted by cost descending. Useful for identifying the most expensive operations. All costs are estimates.
record_usageRecord 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_sessionStart a new cost-tracking session. Previous session data is retained in history and accessible via get_spend_history.
set_budget_alertSet 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_projectCreate or update a project with an optional budget in USD.
suggest_model_routingread-onlyHeuristic 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_sessionTag 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
- Packages
- npm mcp-cost-tracker-router
- License
- MIT
- First seen
- Oct 24, 2026
- Last checked
- Oct 25, 2026
More from dbsectrainer
- 0.477score
MCP Legal Doc Analyzer
dbsectrainer
Domain-specific MCP tooling for legal document workflows
ConnectorBFreshness: BLocalRead-only★ 1Claude Code +5 - 0.465score
MCP Data Pipeline Connector
dbsectrainer
Universal data connector for CSV, Postgres, and REST APIs via DuckDB
ConnectorBFreshness: BLocalClaude Code +5 - 0.465score
MCP Eval Runner
dbsectrainer
A standardized testing harness for MCP servers and agent workflows
ConnectorBFreshness: BLocalClaude Code +5 - 0.462score
MCP Agent Trace Inspector
dbsectrainer
Step-by-step observability for MCP agent workflows
ConnectorBFreshness: BLocalClaude Code +5 - 0.462score
MCP Server Health Monitor
dbsectrainer
Health monitoring for all your MCP servers
ConnectorBFreshness: BLocalClaude Code +5
Cite this page
MCP Cost Tracker Router. Agent Mart. https://agentmart.dev/connectors/dbsectrainer-mcp-cost-tracker-router (last updated 2026-10-25)