Skip to main content

Agent Cost Allocator MCP — multi-tenant LLM cost attribution for chargeback billing. Companion to agent-token-budget. Splits one agent's spend across many tenants for invoicing. By MEOK AI Labs.

Project description

Agent Cost Allocator MCP

🧱 Part of the MEOK A2A Substrate (£499/mo)

See meok.ai/a2a.

Multi-tenant LLM cost attribution for chargeback billing

PyPI License: MIT

The product

Splits one agent's spend across many tenants for chargeback billing. Without cost attribution, agentic SaaS providers can't bill customer A for £X and customer B for £Y based on real LLM usage. This MCP solves that with a signed per-tenant ledger.

Companion to agent-token-budget-mcp (per-session caps) — that MCP stops spending, this one attributes it back.

Tools

Tool Purpose
open_ledger(ledger_id?, currency, period_label?) New monthly ledger
record_charge(ledger_id, tenant_id, model, input/output_tokens, product_code?) Record one billable call
tenant_chargeback_summary(ledger_id, tenant_id) Signed invoice-ready summary
full_ledger_summary(ledger_id) Grand total + tenant ranking
product_breakdown(ledger_id, product_code) Per-product COGS across all tenants
list_ledgers() All open ledgers

Use cases

  • Multi-tenant agent SaaS — bill customer-level usage
  • Internal IT cross-charging across departments
  • Reseller white-label — split MEOK gateway costs across resellers' customers
  • Customer support COGS — "agent used £X across N tickets for customer Y"
  • Per-product economics — "compliance-scan costs us £0.04/call, sells for £0.50, gross margin 92%"

Sister MCPs

Part of the MEOK A2A pack:

  • agent-token-budget-mcp — caps spend per session
  • bft-progress-council-mcp — halts loops
  • agent-rate-limiter-mcp — throttle calls
  • agent-audit-logger-mcp — hash-chained log
  • agent-commerce-protocol-mcp — Stripe ACP for invoicing the chargebacks

Full catalogue: meok.ai/anthropic-registry

Protocol coverage + Universal PAYG

Option Price
Self-host MIT £0
Universal PAYG £29/mo + £0.0002/call
A2A Substrate £499/mo
Universe £1,499/mo
Defence £4,990/mo

Buy: https://meok.ai/a2a

Licence

MIT. By MEOK AI Labs (CSOAI LTD, UK Companies House 16939677).

Project details


Download files

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

Source Distribution

agent_cost_allocator_mcp-1.0.1.tar.gz (7.0 kB view details)

Uploaded Source

Built Distribution

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

agent_cost_allocator_mcp-1.0.1-py3-none-any.whl (6.9 kB view details)

Uploaded Python 3

File details

Details for the file agent_cost_allocator_mcp-1.0.1.tar.gz.

File metadata

File hashes

Hashes for agent_cost_allocator_mcp-1.0.1.tar.gz
Algorithm Hash digest
SHA256 fc42cb170f5ee53c12fc97541e7cd6f9249d6f38120fedf1d2b554a07bb27f0f
MD5 69289cdcf912f9d007155cfe704f7488
BLAKE2b-256 1f175d22dfb02d15f5ad520c18aa781efcfeb553777e5474574f827d2a767215

See more details on using hashes here.

File details

Details for the file agent_cost_allocator_mcp-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for agent_cost_allocator_mcp-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 74da355987e13a83bd2cda99175f5706fd336ae17a9754dc001bd15ca72a8cfa
MD5 053e99e515d75a3762bd381a896d51d8
BLAKE2b-256 e66c9f252ba1da885b1065c33a218ec9070eaaab5c082d11b483a294381abaf6

See more details on using hashes here.

Supported by

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