AgentBudgetMcp
БесплатноНе проверенMCP server for @mukundakatta/agentbudget — token + dollar budget caps for AI agents over stdio. Drop into Claude Desktop, Cursor, Cline, Windsurf, Zed.
Описание
MCP server for @mukundakatta/agentbudget — token + dollar budget caps for AI agents over stdio. Drop into Claude Desktop, Cursor, Cline, Windsurf, Zed.
README
MCP server for @mukundakatta/agentbudget. Exposes token + dollar budget caps to any MCP-aware client (Claude Desktop, Cursor, Cline, Windsurf, Zed) so agents can track spend across tool calls and refuse work that would push past the ceiling.
Install
The cleanest path is to let your MCP client launch the server via npx:
Claude Desktop — claude_desktop_config.json:
{
"mcpServers": {
"agentbudget": {
"command": "npx",
"args": ["-y", "@mukundakatta/agentbudget-mcp"]
}
}
}
Cursor — ~/.cursor/mcp.json or <project>/.cursor/mcp.json:
{
"mcpServers": {
"agentbudget": {
"command": "npx",
"args": ["-y", "@mukundakatta/agentbudget-mcp"]
}
}
}
Same shape works for Cline, Windsurf, Zed — point at the @mukundakatta/agentbudget-mcp package over stdio.
Tools
The server exposes three tools that share one in-memory budget for the duration of the MCP session:
configure_budget
Set the active caps. Calling this replaces any existing budget; totals reset to zero.
| Argument | Type | Notes |
|---|---|---|
max_input_tokens |
number | optional — cap on cumulative input tokens |
max_output_tokens |
number | optional — cap on cumulative output tokens |
max_total_tokens |
number | optional — cap on input + output combined |
max_cost_usd |
number | optional — cap on dollars; needs pricing |
pricing |
object | optional — per-model { inputPer1k, outputPer1k } map; falls back to the built-in starter table |
allow_unknown_pricing |
boolean | optional — when true, models with no pricing cost $0 instead of erroring |
record_llm_usage
Tally one LLM call. Call this after the response — by the time you have token counts, the call already cost money.
| Argument | Type | Notes |
|---|---|---|
model |
string | required when max_cost_usd is set |
input_tokens |
number | required |
output_tokens |
number | required |
Returns one of:
{ "status": "ok", "totals": {...}, "remaining": {...} }— call accepted{ "status": "exceeded", "cap": "...", "limit": ..., "attempted": ..., "overshoot": ..., "totals": {...} }— a cap tripped. This is data, not an MCP error — your agent can read it and decide what to do (fall back, summarize, stop).
budget_status
Peek at current totals + per-cap remaining. Useful for letting the agent decide whether to schedule more work.
Why an MCP server?
You can use @mukundakatta/agentbudget (or its Python sibling) directly inside your own agent code — that's the lower-friction path.
This MCP wrapper exists for two cases:
- Cross-tool budgets: when several MCP-spawned tools share one session, this server keeps a shared spend counter that no individual tool owns. Useful for caps like "do not exceed $5 across this whole session, regardless of which sub-agent runs."
- Client-driven enforcement: when the client (Claude Desktop, Cursor) is the one driving model calls and you want a budget surface the operator can configure declaratively without modifying agent code.
Otherwise, prefer importing the lib directly.
Sibling libraries
Part of the @mukundakatta/agent* reliability stack:
- agentsnap-mcp, agentguard-mcp, agentcast-mcp, agentfit-mcp, agentvet-mcp — and agentbudget-mcp (this server)
Direct lib: @mukundakatta/agentbudget (npm) · agentbudget-py (PyPI)
License
MIT © Mukunda Katta
Установка AgentBudgetMcp
У этого сервера нет опубликованного пакета — он собирается из исходников. Открой репозиторий и следуй инструкции в README.
▸ github.com/MukundaKatta/AgentBudgetMcpFAQ
AgentBudgetMcp MCP бесплатный?
Да, AgentBudgetMcp MCP бесплатный — установка в пару кликов через Unyly без оплаты.
Нужен ли API-ключ для AgentBudgetMcp?
Нет, AgentBudgetMcp работает без API-ключей и переменных окружения.
AgentBudgetMcp — hosted или self-hosted?
Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.
Как установить AgentBudgetMcp в Claude Desktop, Claude Code или Cursor?
Открой AgentBudgetMcp на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.
Похожие MCP
Opencode Omniroute Plugin
OpenCode plugin for the OmniRoute AI Gateway. Drives dynamic model discovery, /connect auth flow, and multi-instance OmniRoute providers via the official @openc
автор: GitHub ActionsRoblox Studio
Enables AI coding tools to control Roblox Studio for workspace exploration, instance manipulation, and script management. It provides tools for playtesting, sce
автор: paralovAntigravity Drawio
MCP server that enables AI assistants to create, parse, render, and validate Draw.io diagrams programmatically.
автор: S-SUJAN-SFetch
Web content fetching and conversion for efficient LLM usage.
Mcp
ModelContextProtocol server for enhancing JSON Resumes
автор: mcpflow.ioVault
Bitwarden/Vaultwarden MCP server — BYOK vault access with 6 tools, Send-based reveal, TOTP, and safe agent-write
автор: agbergsmannAWS KB Retrieval
Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.
автор: modelcontextprotocolSpring AI MCP Server
Provides auto-configuration for setting up an MCP server in Spring Boot applications.
llm-analysis-assistant
A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also
автор: xuzexin-hzMCP-Agent
A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)
автор: lastmile-aiCompare AgentBudgetMcp with
Не уверен что выбрать?
Найди свой стек за 60 секунд
Автор?
Embed-бейдж для README
Похожее
Все в категории ai
