Cost Tracker Router MCP server
Real-time cost awareness for MCP agent workflows
not scanned yet
0 stars
Reviews
Write oneNobody has reviewed Cost Tracker Router yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Cost Tracker Router tools
No tool declarations could be read from the package source. They show once the server is installed.
How Cost Tracker Router compares
Against every graded AI and agents MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 83/100
- higher than 68% of 4,460 AI and agents servers
Release history: 2 versions in the registry since 2026-03-23, latest 2026-11-04, typically one every 225 days.
Install Cost Tracker Router in Claude Code, Cursor or VS Code
Runs npx -y mcp-cost-tracker-router on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add mcp-cost-tracker-router -- npx -y mcp-cost-tracker-router
What the publisher says
From the Cost Tracker Router repository's README, as published. We do not edit it. Read it on GitHub
MCP Cost Tracker & Router
npm mcp-cost-tracker-router package
Local-first cost awareness for MCP agent workflows. Token counts are calculated offline using js-tiktoken — no proxy, no API round-trip, no spend data leaving your machine. When costs climb, routing suggestions point you to cheaper models before the invoice arrives.
Tool reference | Configuration | Contributing | Troubleshooting
Key features
- Per-tool cost breakdown: See exactly which tool calls are consuming the most tokens and budget.
- Budget alerts: Set a session spend threshold and get warned at 80% and 100% before you exceed it.
- Offline token counting: Uses js-tiktoken for accurate counts — no API calls required.
- Model routing suggestions: Recommends cheaper models for the current task type (advisory, never enforced without opt-in).
- Multi-provider pricing: Tracks costs across Claude, OpenAI, and Gemini models from a single configurable pricing table.
- Spend history: Query daily, weekly, and monthly totals by model or tool.
- Project cost allocation: Tag sessions to named projects and generate chargeback reports.
- HTML spend reports: Export a single-file, self-contained HTML report with charts and budget status.
- Audit log: Append-only log of every budget enforcement decision.
Why this over proxy-based cost trackers?
Most cost-tracking tools work by routing all your API traffic through their server and measuring tokens server-side. That means your prompts and responses transit a third-party service, and you're dependent on their uptime.
If your prompts contain sensitive information or you can't route traffic through a third party, this is the right tool. If you need a managed dashboard with team sharing, a proxy-based service may suit you better.
Disclaimers
mcp-cost-tracker-router stores tool call metadata (token counts, model names, timestamps) locally in SQLite. It does not store prompt or response content. Cost calculations are estimates based on a local pricing table and may not exactly match your provider's invoice.
Requirements
- Node.js v20.19 or newer.
- npm.
Getting started
Add the following config to your MCP client:
{
"mcpServers": {
"cost-tracker": {
"command": "npx",
"args": ["-y", "mcp-cost-tracker-router@latest"]
}
}
}To set a session budget alert:
{
"mcpServers": {
"cost-tracker": {
"command": "npx",
"args": ["-y", "mcp-cost-tracker-router@latest", "--budget-alert=5.00"]
}
}
}MCP Client configuration
Amp · Claude Code · Cline · Cursor · VS Code · Windsurf · Zed
Your first prompt
Enter the following in your MCP client to verify everything is working:
How much has this session cost so far?Your client should return a token and USD cost summary for the current session.
Tools
Session (4 tools)
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Cost Tracker Router: common questions
- Is Cost Tracker Router MCP server safe?
- Mostly: it is graded B (83/100). Read the Cost Tracker Router safety report
- How do I install Cost Tracker Router?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Cost Tracker Router need an API key?
- Yes. The registry entry asks for
YOUR_API_KEY. - Is Cost Tracker Router maintained?
- The last commit was 42 days ago (2026-09-23). The latest release is v1.0.1.
- What can I use instead of Cost Tracker Router?
- Servers from other publishers that do the same job: llmtrim MCP server and three.ws Brain MCP server.
Alternatives to Cost Tracker Router
Same job from other publishers: the closest match first, then the best rated.
- llmtrimMCP server and proxy that compresses LLM prompts, tool output, and replies to cut token cost.not reviewedEstablishedA
- three.ws BrainList LLM providers and run chat completions through the three.ws multi-provider router.not reviewedEstablishedB