Promptbudget MCP runs on your own machine — the client starts it, so there is no endpoint to ping. 44 installs a week from npm. Last commit 13 Jun 2026.
Token-budget-aware text handling: count, truncate, and chunk for LLM prompts.
We read the source, 3 d ago · rules 995398eba69f
What this server is able to do. For an MCP server this is often the job itself — a terminal server runs commands because that is what it is for. Listed so you know what you are plugging in, not as an accusation.
этот файл ставится пользователю, но в репозитории его нет
Is this your server and something here is wrong? Tell us — corrections are free and do not require a plan.
We found places where it runs commands, builds paths or queries from values it is given. None of that is a flaw by itself — it becomes one when the code changes, and code changes quietly between releases. We re-read it on every one.
This server runs on your own machine — install it with the package manager and the client starts it for you. Package name taken from the official registry entry.
claude mcp add promptbudget-mcp -- npx -y @mukundakatta/promptbudget-mcp
{
"mcpServers": {
"promptbudget-mcp": {
"command": "npx",
"args": [
"-y",
"@mukundakatta/promptbudget-mcp"
]
}
}
}
[mcp_servers.promptbudget-mcp]
command = "npx"
args = ["-y", "@mukundakatta/promptbudget-mcp"]
{
"mcpServers": {
"promptbudget-mcp": {
"command": "npx",
"args": [
"-y",
"@mukundakatta/promptbudget-mcp"
]
}
}
}
{
"servers": {
"promptbudget-mcp": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@mukundakatta/promptbudget-mcp"
]
}
}
}
Count tokens (o200k/cl100k), truncate to a budget, chunk text for RAG and estimate LLM cost.
Token-aware message truncation: fit a chat history into your model's context budget.
Token counting, RAG chunking, truncation, HTML to Markdown and JSON repair
Token and context budget for AI agents. Tracks spend and gates the session.
Shrink images to a token budget for vision LLM agents and pipelines. Not for chat-pasted images.
Cut LLM token costs: count tokens, estimate cost, slim prompts, and pick the cheapest capable model.
at-handle token count, text discarded
Count and cut tokens in prompts, chats and agents for any model. Runs locally, collects no data.
Answers built from our own checks of this server.