agentbill-mcp
AgentBill
Facturación basada en el uso para agentes de IA. Verificación previa (preflight). Límite por solicitud. Sin Stripe.
Stripe te dice cuánto has gastado. Demasiado tarde. AgentBill bloquea la ejecución antes de que comience si el presupuesto lo indica.
"En el momento en que usas Stripe como red de seguridad, ya has perdido la ejecución." — scarlett1908, r/LangChain
Instalación
pip install agentbill-sdk
Related MCP server: agent-budget
Inicio rápido
from agentbill import AgentBillClient
client = AgentBillClient(api_key="agb_your_key")
check = client.preflight(agent_id="researcher", budget=5.00) if not check.approved: raise Exception("Presupuesto excedido")
client.record(agent_id="researcher", cost=check.estimated_cost)
Obtén tu clave API: https://agentbill.fly.dev/register
Qué hace
Verificación previa (Preflight). Antes de que el agente se ejecute, AgentBill comprueba: ¿tiene este cliente suficiente presupuesto? Si no, bloquéalo antes de que se consuma cualquier cómputo.
Límite por solicitud. Los límites mensuales no detectan una mala ejecución individual. Un bucle de investigación de 3 horas puede agotar tu presupuesto antes de que se active el límite. AgentBill aplica un techo a nivel de invocación.
Medición basada en resultados. Tú defines qué cuenta como un evento facturable. No bytes, no segundos. La acción a nivel de negocio que realizó el agente.
Nivel gratuito
1.000 llamadas de preflight al mes. No se requiere tarjeta de crédito.
Qué NO hace
Flujos de trabajo de varios pasos con máquinas de estado o lógica de reversión (fuera del alcance)
Reemplazar tu procesador de pagos (AgentBill se sitúa delante de él)
Panel sin código para no desarrolladores
Node.js
npm install agentbill
Por qué no Stripe
Stripe | AgentBill Bloqueo de preflight: No | Sí Límite por solicitud: No | Sí Bloquea antes del cómputo: No | Sí Creado para agentes: No | Sí
Servidor MCP
AgentBill incluye un servidor MCP para la integración nativa con Claude Code, Cursor, Windsurf y cualquier host de agentes compatible con MCP.
Instalar a través de agentbill-mcp en PyPI:
uvx agentbill-mcpEl servidor MCP expone dos herramientas:
preflight(agent_id, customer_id, estimated_units, ceiling)— verifica el presupuesto antes de ejecutar. Bloquea si está agotado.record_event(agent_id, units, customer_id, metadata)— factura después de que se complete el trabajo.
Configurar en ~/.claude/settings.json:
{
"mcpServers": {
"agentbill": {
"command": "uvx",
"args": ["agentbill-mcp"],
"env": { "AGENTBILL_API_KEY": "sk_live_..." }
}
}
}Fuente: mcp/ | PyPI: agentbill-mcp | Registro MCP: io.github.marketinglior-pixel/agentbill-mcp
Dale una estrella a este repositorio
Si los límites por solicitud eran lo que necesitabas, dale una estrella. Ayuda a otros desarrolladores a encontrarlo.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
Veqen brings together work and coding agent costs per person and team, product inference costs per customer, agent spending, protection incidents, invoice checks, chargeback and the month-end close. Ask your assistant to investigate recorded spending, compare model prices, review provider keys and incidents, record bills and credits, or manage budgets, alerts, teams and spending policies. Your account role and plan govern access. Provider-key shut-off and agent-card controls require the appropriate role and provider permissions. Destructive actions require confirmation, and organizations can require a second person to approve a shut-off. SDK budget blocking is not a guaranteed spending cap. Work and coding agents are free for up to 3 people; product inference is free up to $1,000 in monthly AI spend. Connect your Veqen account for private organization data. The separate public model-price server needs no account. Estimates remain separate from provider invoices. Setup and permissions: https://veqen-app.com/docs/mcp
Veqen brings together work and coding agent costs per person and team, product inference costs per customer, agent spending, protection incidents, invoice checks, chargeback and the month-end close. Ask your assistant to investigate recorded spending, compare model prices, review provider keys and incidents, record bills and credits, or manage budgets, alerts, teams and spending policies. Your account role and plan govern access. Provider-key shut-off and agent-card controls require the appropriate role and provider permissions. Destructive actions require confirmation, and organizations can require a second person to approve a shut-off. SDK budget blocking is not a guaranteed spending cap. Work and coding agents are free for up to 3 people; product inference is free up to $1,000 in monthly AI spend. Connect your Veqen account for private organization data. The separate public model-price server needs no account. Estimates remain separate from provider invoices. Setup and permissions: https://veqen-app.com/docs/mcp
Hosted MCP server for LLM cost estimation, model comparison, and budget-aware routing.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceMCP server for AgentPay — the payment gateway for autonomous AI agents. Fund a wallet once, give your agent the key, and it discovers, provisions, and pays for tool APIs on its own. One key, every tool.112 npm1MIT
- AlicenseNot gradedqualityDmaintenanceBudget management and cost tracking MCP server for autonomous agents, enabling budget creation, cost recording, spending projections, and alert rules.MIT
- AlicenseAqualityCmaintenanceMCP server that enables AI agents to request human approval before spending money, check approval status, verify signed tokens, and manage API keys.9MIT
- AlicenseNot gradedqualityCmaintenanceMCP server that reports AI agent costs (tokens, latency, dollars) with per-tenant isolation via OAuth, and includes an ADK agent for natural-language queries.Apache 2.0