AgentBill MCP

Created By
marketinglior-pixel5 days ago
Preflight spend control for AI agents. Block runaway agent loops before they start - not after the bill arrives. Per-request cost ceilings, budget checks, and outcome-based metering in 2 MCP tool calls.
Overview

What is AgentBill?

AgentBill is a preflight gate for AI agent runs. It blocks runaway loops before they start — not after the damage is done.

Why not just use monthly caps?

Monthly caps don't catch the bad single run. One 3-hour research loop can blow your budget before the cap triggers. AgentBill enforces a ceiling at the invocation level.

How it works

  1. Call preflight() before the agent runs — AgentBill checks budget and blocks if exceeded
  2. Agent runs
  3. Call record_event() after — logs usage for billing

Two tool calls. That's it.

Install

pip install agentbill-sdk

Quick start

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("Budget exceeded") client.record(agent_id="researcher", cost=check.estimated_cost)

Free tier

1,000 preflight calls/month. No credit card required.

Get your API key: https://agentbill.fly.dev/register

Server Config

{
  "mcpServers": {
    "agentbill": {
      "command": "uvx",
      "args": [
        "agentbill-mcp"
      ],
      "env": {
        "AGENTBILL_API_KEY": "your-api-key"
      }
    }
  }
}
Project Info
Created At
5 days ago
Updated At
5 days ago
Author Name
marketinglior-pixel
Star
-
Language
-
License
-
Category

Recommend Servers

View All
Coinrebate

2 days ago
Gi
@HasanJahidul

14 hours ago
Tavily Mcp
@tavily-ai

JavaScript
a year ago