Skip to main content

MCP Token Budget

Track token costs, set budgets, optimize model selection. Zero deps.

Tools (11)

estimate_tokens, estimate_cost, log_usage, set_budget, get_budget_status, get_usage_report, list_models, optimize, get_alerts, get_stats, reset

Tests

python -m pytest tests/ -v  # 25 tests

MIT - aaameobius-crypto

Freelance portfolio: https://ameobius-space.github.io/kwork-portfolio/

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mcp_token_budget-1.0.0.tar.gz (6.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mcp_token_budget-1.0.0-py3-none-any.whl (6.4 kB view details)

Uploaded Python 3

File details

Details for the file mcp_token_budget-1.0.0.tar.gz.

File metadata

  • Download URL: mcp_token_budget-1.0.0.tar.gz
  • Upload date:
  • Size: 6.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.12

File hashes

Hashes for mcp_token_budget-1.0.0.tar.gz
Algorithm Hash digest
SHA256 b4e4009cb374870d219a23451b0a22fcd9b24e562a50b355426f38387ddecab7
MD5 64ca1afcb0016a771ca7878964813ebe
BLAKE2b-256 8122fc6c558ad28dbd765ae8687fc1a35c91ad7e19dd46fbd1ef45c6c541fea0

See more details on using hashes here.

File details

Details for the file mcp_token_budget-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for mcp_token_budget-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 31927c504d5eb65b501c6e3666c78ae21136519f402708df55fe0b3afdcc2582
MD5 f445375882f2f0eebddf516e14b72df5
BLAKE2b-256 3681a6a1ca762986dc53a3f77e8485de808be70e54249971960ddc8044cc5f05

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.0.0 This release

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page