Finance Toolkit
500+ transparent financial methods calculated from raw statements, not third-party endpoints.
Beschreibung vom Entwickler (englisches Original)
Prices LLM/agent runs per successful task, with spend recording and budget status.
Diese drei werden nie zu einer Punktzahl zusammengefasst: Meinungen, Messungen und Beliebtheit sind verschiedene Dinge.
Für diesen Server haben wir noch keine Zusammenfassung in einfacher Sprache geschrieben. Unten stehen die Fakten, die wir aus der Registry gelesen haben.
Wähle die KI-App, die du nutzt, und kopiere die Einstellungen.
AGENT_COST_LEDGER_PATHDu brauchst
Welche App nutzt du?
Wähle oben deine App. Wir merken sie uns, damit der Button beim nächsten Mal „In … installieren“ anzeigt.
Öffne Claude Desktop → Settings → Developer → Edit Config und füge dies in claude_desktop_config.json ein
{
"mcpServers": {
"agent-cost": {
"command": "uvx",
"args": [
"agent-cost-mcp-server"
],
"env": {
"AGENT_COST_LEDGER_PATH": "your-value"
}
}
}
}Führe das in deinem Terminal aus
claude mcp add agent-cost --env AGENT_COST_LEDGER_PATH=your-value -- uvx agent-cost-mcp-serverTrag die leeren Werte ein, bevor du ihn startest.
In .cursor/mcp.json in deinem Projekt oder in ~/.cursor/mcp.json einfügen
{
"mcpServers": {
"agent-cost": {
"command": "uvx",
"args": [
"agent-cost-mcp-server"
],
"env": {
"AGENT_COST_LEDGER_PATH": "your-value"
}
}
}
}Dein Browser fragt, ob er die App öffnen darf, dann zeigt die App die Einstellungen und bittet dich um Bestätigung. Schlüsselwerte bleiben leer, damit du sie selbst einträgst.
In .vscode/mcp.json in deinem Projekt einfügen
{
"servers": {
"agent-cost": {
"type": "stdio",
"command": "uvx",
"args": [
"agent-cost-mcp-server"
],
"env": {
"AGENT_COST_LEDGER_PATH": "your-value"
}
}
}
}Dein Browser fragt, ob er die App öffnen darf, dann zeigt die App die Einstellungen und bittet dich um Bestätigung. Schlüsselwerte bleiben leer, damit du sie selbst einträgst.
Dieser Server läuft auf deinem Computer, und ChatGPT kann sich nur mit Servern im Internet verbinden. Wähle eine andere App.
Deine Auswahl bleibt in einem Cookie auf diesem Gerät; kein Konto nötig.
AGENT_COST_LEDGER_PATH envDiese Einstellungen werden aus dem Registry-Eintrag des Entwicklers erzeugt. Wenn in der README etwas anderes steht, folge der README.
Läuft auf deinem Computer; die Tool-Liste erscheint nach der Installation in deiner KI-App.
Wir prüfen Informationen, die jeder sehen kann; den Code haben wir nicht gelesen. Checks, die nicht zutreffen, werden nicht mitgezählt. · Geprüft am 7. Nov. 2026
Der Registry-Name wurde mit dem GitHub-Konto karmendra8386 bestätigt, dem das Repo gehört
Dieses Repo haben wir noch nicht von GitHub gelesen
Dieses Repo haben wir noch nicht von GitHub gelesen
Dieser Server läuft auf deinem Computer; es gibt keinen Endpunkt im Internet
Läuft auf deinem Computer und nutzt stattdessen lokale Einstellungen
Läuft auf deinem Computer; Tool-Listen können wir nur von Endpunkten im Internet lesen
Verglichen mit allen aktiven Servern dieser Kategorie in der Registry. Sterne zählen nur, wenn dem Herausgeber das Repo gehört.
Er hat 1 von 1 zutreffenden Basischecks bestanden. Den Code haben wir nicht gelesen. Bevor du einen Schlüssel oder Token hinzufügst, sieh nach, welche Zugriffe der Server verlangt, und nutze einen Schlüssel, der nur die Berechtigungen hat, die du brauchst.
Die Registry nennt keinen erforderlichen Schlüssel, manche Server bitten dich aber bei der ersten Nutzung, dich anzumelden.
Er läuft auf deinem Computer. Deine KI-App startet ihn bei Bedarf, und die Daten laufen nicht über die Server des Entwicklers (außer der Server ruft selbst einen Onlinedienst auf).
Das GitHub-Repo wurde zuletzt – geändert, und die neueste Version (0.1.1) kam vor 4 Tagen in die Registry.
Apps, die MCP unterstützen, etwa Claude Desktop, Claude Code, Cursor und VS Code. Außerdem brauchst du Python (uv) auf deinem Computer.
In derselben Kategorie: Finance Toolkit, SolidInvoice, Korea Tax Calculator
Server derselben Kategorie von anderen Entwicklern, sortiert nach Sternen.
So liest du eine Karte:★ GitHub-SterneiDrei Säulen: Bewertungen · Checks · NutzungiAktualisiert = neueste Version in der Registry veröffentlichti
500+ transparent financial methods calculated from raw statements, not third-party endpoints.
Create and send invoices and quotes, manage clients, and track payments in SolidInvoice.
Korean tax calculation and tax-audit judgment MCP: 96 tools with statutory citations.
Unverändert aus dem Repo des Entwicklers übernommen. PopNx MCP hat den Inhalt weder geprüft noch empfiehlt es ihn. HTML, Bilder und Skripte wurden entfernt. Links führen von dieser Website weg.
An MCP server that gives agents and developers tools to estimate, budget, and compare the cost of LLM work before and during a run — the model-spend counterpart to AWS infrastructure cost tooling.
Agent frameworks decide for themselves how many model calls a task takes, so the cost of a run is usually only visible after the bill arrives. This server answers, from inside your tooling:
The server is self-contained: a maintained pricing snapshot ships with it, no AWS account or API key is needed, all state is a local JSON ledger, and it makes no network calls at runtime.
| Tool | Arguments | Returns |
|---|---|---|
price_usage | model_id, input_tokens, output_tokens | Input/output/total cost in USD for one concrete usage record |
estimate_run_cost | model_id, input_tokens, output_tokens | The model's cost for one run, plus the same workload priced on every other model, cheapest first |
compare_models_for_task | input_tokens, output_tokens, success_rates? | All models ranked by expected cost per successful task (cost per attempt ÷ success rate) |
record_spend | task_id, model_id, input_tokens, output_tokens | The recorded ledger entry, priced at list rates |
budget_status | task_id, budget_usd | {spent_usd, remaining_usd, over_budget, calls, models_used, by_model} for the task. by_model maps each model_id to {calls, input_tokens, output_tokens, spent_usd} |
Cost per token is the wrong ranking for agent work: a cheap model that fails half its tasks costs more per success than a pricier, reliable one. Pass measured success rates to compare_models_for_task if you have them; models without a supplied rate are ranked on raw cost.
This server supplies the numbers. *Enforcing* a budget (stopping a run) belongs to the agent framework — see BudgetedModel in strands-agents/samples for that pattern.
The server is published on PyPI (current release 0.1.1) and listed on the Official MCP Registry as io.github.karmendra8386/agent-cost-mcp-server. Requires Python 3.10+; the uvx path needs uv.
claude mcp add agent-cost -- uvx agent-cost-mcp-server
Add to the client's MCP configuration (Claude Desktop: claude_desktop_config.json; Cursor: .cursor/mcp.json):
{
"mcpServers": { "agent-cost": { "command": "uvx", "args": [ "agent-cost-mcp-server" ] } } }
Add to .vscode/mcp.json (VS Code uses a servers key):
{
"servers": { "agent-cost": { "type": "stdio", "command": "uvx", "args": [ "agent-cost-mcp-server" ] } } }
pip install agent-cost-mcp-server
agent-cost-mcp-server # serves over stdio
If you need the unreleased tip of master rather than the PyPI release:
pip install git+https://github.com/karmendra8386/agent-cost-mcp-server
agent-cost-mcp-server # serves over stdio
compare_models_for_task for one attempt at a task using 10,000 input and 2,000 output tokens, with example success rates supplied for a few models (substitute your own measured rates; models without a supplied rate are ranked on raw cost):
{
"input_tokens": 10000, "output_tokens": 2000, "success_rates": { "amazon.nova-micro": 0.2, "amazon.nova-lite": 0.6, "openai.gpt-5-nano": 0.4, "openai.gpt-4o-mini": 0.9, "anthropic.claude-haiku-3-5": 0.85, "anthropic.claude-sonnet-4-5": 0.95 } }
Response, captured from a live run of the server (pricing snapshot v1, 2026-10-20; first 5 of 18 ranked models):
{
"input_tokens": 10000, "output_tokens": 2000, "ranked": [ { "model": "amazon.nova-lite", "display_name": "Amazon Nova Lite", "cost_per_run_usd": 0.00108, "success_rate": 0.6, "cost_per_success_usd": 0.0018 }, { "model": "google.gemini-2.5-flash-lite", "display_name": "Gemini 2.5 Flash-Lite", "cost_per_run_usd": 0.0018, "success_rate": 1.0, "cost_per_success_usd": 0.0018 }, { "model": "openai.gpt-4o-mini", "display_name": "GPT-4o mini", "cost_per_run_usd": 0.0027, "success_rate": 0.9, "cost_per_success_usd": 0.003 }, { "model": "amazon.nova-micro", "display_name": "Amazon Nova Micro", "cost_per_run_usd": 0.00063, "success_rate": 0.2, "cost_per_success_usd": 0.00315 }, { "model": "openai.gpt-5-nano", "display_name": "GPT-5 nano", "cost_per_run_usd": 0.0013, "success_rate": 0.4, "cost_per_success_usd": 0.00325 } ], "pricing_snapshot": "v1 (2026-10-20)" }
Note the flip: Amazon Nova Micro is the cheapest model per run ($0.00063), but at a 20% success rate it ranks fourth per *successful* task ($0.00315 — roughly five attempts per success). Nova Lite costs 1.7× more per run and is the cheapest per success.
Prices live in src/agent_cost_mcp_server/pricing.json — a versioned snapshot of list prices (USD per 1M tokens) for major Bedrock and OpenAI-compatible models, dated in the file. Prices change; verify against the provider's pricing page before making spending decisions. Updating the snapshot is a one-file change, and the server reads it at startup.
record_spend appends to a local JSON ledger at ~/.agent-cost-mcp-server/ledger.json. Set AGENT_COST_LEDGER_PATH to use a different file. Nothing leaves the machine.
The pricing and cost-per-success model are a port of tokenecon, an open-source library for per-task agent cost accounting (paper: doi.org/10.5281/zenodo.23195511), including a Strands integration that prices live agent runs. This server exposes the same math over MCP so any agent or IDE can call it.
Proposed for the awslabs/mcp collection in RFC #4772.
uv sync --extra dev # or: pip install -e ".[dev]"
pytest
If you use this software in your work, please cite the software itself — and, for the cost model and methods behind it, the companion preprint.
Software
@software{pandey_agent_cost_mcp_server_2026,
author = {Pandey, Karmendra}, title = {agent-cost-mcp-server}, version = {0.1.1}, doi = {10.5281/zenodo.23680824}, url = {https://github.com/karmendra8386/agent-cost-mcp-server}, date = {2026-10-26} }
Companion preprint
K. Pandey, "Token-Economics for Agentic AI: A Cost Model and Tiered Routing
Reference," Zenodo, DOI 10.5281/zenodo.23195511, Oct. 2026.
@misc{pandey_tokeneconomics_2026,
author = {Pandey, Karmendra}, title = {Token-Economics for Agentic AI: A Cost Model and Tiered Routing Reference}, doi = {10.5281/zenodo.23195511}, url = {https://zenodo.org/records/23195511}, publisher = {Zenodo}, date = {2026-10} }
A CITATION.cff is included for automated citation tooling.
Apache-2.0 — see LICENSE.
Copyright 2026 Karmendra Pandey.