agent-budget
Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@agent-budgetcreate a monthly budget of $500 for API costs"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
agent-budget
Budget management and cost tracking MCP server for autonomous agents.
Set budgets, track costs, get alerts, project spending — designed for AI agents that need to operate within financial constraints.
Features
Budget CRUD — Create, read, update, delete budgets with periods (daily/weekly/monthly/quarterly/yearly/one-time)
Cost Tracking — Record costs against budgets with categories, sources, tags, and metadata
Alert Rules — Configure threshold-based alerts (50%, 80%, 95%, 100%) with severity levels and actions (notify/throttle/halt)
Spending Projections — Forecast spending based on current burn rate
Analytics — Breakdown costs by category, source, or daily totals
Budget Hierarchy — Parent/child budgets with rollup summaries
MCP Server — Full Model Context Protocol server with 20+ tools
CLI — Rich terminal interface with Click + Rich
JSON Persistence — File-based storage, no database required
Related MCP server: cloudscope-mcp
Installation
pip install agent-budgetOr with uv:
uv pip install agent-budgetQuick Start
CLI
# Create a budget
agent-budget create --name "API Costs" --limit 500 --period monthly --category api_calls
# Record a cost
agent-budget cost record <budget_id> --amount 2.50 --source "openai-gpt4" --description "Chat completion"
# Check budget status
agent-budget show <budget_id>
# List all budgets
agent-budget list
# Project spending
agent-budget analyze project <budget_id>
# Breakdown by source
agent-budget analyze by-source <budget_id>MCP Server
# Start the MCP server
agent-budget-serverOr configure in your MCP client:
{
"mcpServers": {
"agent-budget": {
"command": "python",
"args": ["-m", "agent_budget.server"]
}
}
}Python API
from agent_budget.engine import BudgetEngine
from agent_budget.models import BudgetPeriod, CostCategory
engine = BudgetEngine()
# Create a budget
budget = engine.create_budget(
name="API Costs",
limit=500.0,
period=BudgetPeriod.MONTHLY,
category=CostCategory.API_CALLS,
)
# Record costs
entry, alerts = engine.record_cost(
budget_id=budget.id,
amount=2.50,
source="openai-gpt4",
description="Chat completion",
)
# Check if budget is on track
projection = engine.project_spending(budget.id)
print(f"On track: {projection.on_track}")
print(f"Projected total: {projection.projected_total}")
# Get cost breakdown
by_source = engine.get_costs_by_source(budget.id)
by_category = engine.get_costs_by_category(budget.id)MCP Tools
The server exposes 20+ tools:
Tool | Description |
| Create a new budget |
| Get budget details |
| List budgets with filters |
| Update a budget |
| Delete a budget |
| Pause a budget |
| Resume a paused budget |
| Reset budget for new period |
| Record a cost against a budget |
| List cost entries with filters |
| Delete a cost entry |
| Get budget summary/summaries |
| Project spending |
| Cost breakdown by category |
| Cost breakdown by source |
| Daily spending totals |
| Add an alert rule |
| Check triggered alerts |
| List child budgets |
| Roll up parent + children |
Cost Categories
compute— Compute resources (CPU, GPU)api_calls— API/service callsstorage— Storage costsnetwork— Bandwidth/transfer costslicensing— Software licensinglabor— Human labor costsinfrastructure— Infrastructure costsmisc— Miscellaneous
Alert Actions
notify— Log the alert (default)throttle— Signal that the agent should reduce spendinghalt— Signal that the agent should stop spending
Architecture
agent_budget/
├── __init__.py # Package init
├── models.py # Pydantic models (Budget, CostEntry, etc.)
├── engine.py # Business logic (BudgetEngine)
├── store.py # JSON persistence layer
├── server.py # MCP server
└── cli.py # Click CLILicense
MIT
This server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/nyx-builds/agent-budget'
If you have feedback or need assistance with the MCP directory API, please join our Discord server