{"name":"io.github.MukundaKatta/promptbudget-mcp","slug":"mukundakatta-promptbudget-mcp","title":null,"description":"Token-budget-aware text handling: count, truncate, and chunk for LLM prompts.","url":"https://mcp.market/server/mukundakatta-promptbudget-mcp","rating":null,"grade":"A","score":92,"certified":false,"status":"active","category":"ai","tags":["ai"],"presence":{"score":22,"stars":0,"forks":0,"downloads_week":28,"last_push_at":"2026-08-29T20:02:42.000Z","license":"Apache-2.0"},"uptime":null,"claimed":false,"transport":"npm","callable_via_gateway":false,"default_price_micros":0,"repository":"https://github.com/MukundaKatta/mcp-stack","website":null,"version":"0.2.0","remotes":[],"packages":[{"registryType":"npm","registryBaseUrl":"https://registry.npmjs.org","identifier":"@mukundakatta/promptbudget-mcp","version":"0.2.0","transport":{"type":"stdio"}}],"tools":[{"name":"chunk_to_budget","description":"Split a long text into multiple chunks, each at most max_tokens tokens, with optional overlap between adjacent chunks. Use when you have source material too long for one prompt and want to feed it through in pieces (for example, RAG ingestion or a fan-out summarize pattern). Overlap is useful so a sentence at a boundary still has surrounding context in the next chunk.","write_action":false,"price_micros":0,"input_schema":null},{"name":"count_tokens","description":"Count the approximate token usage of a text. Optionally compare against a budget and return a 'fits' flag plus overflow. Use as a pre-flight check before assembling a prompt: if count > budget, decide whether to truncate or chunk.","write_action":false,"price_micros":0,"input_schema":null},{"name":"truncate_to_token_budget","description":"Truncate text to fit within a token budget. Four strategies: head (keep beginning), tail (keep end, good for chat history), head_tail (drop the middle, keep both ends), and smart_cut (head_tail with a visible cut marker). Use when you need to put long text into an LLM context window without going over a token limit.","write_action":true,"price_micros":0,"input_schema":null}],"scan":{"score":92,"grade":"A","scanned_at":"2026-09-27T21:30:46.268Z","report":{"scannerVersion":"0.1.9","scannedAt":"2026-09-27T21:30:46.247Z","components":{"code":{"score":25,"max":25,"notes":["3 source files scanned"]},"reliability":{"score":-1,"max":20,"notes":["no gateway calls yet and no remote to probe"]},"poisoning":{"score":-1,"max":15,"notes":["tools not inspected (local package is not executed); not counted"]},"auth":{"score":12,"max":15,"notes":["local package, no credentials required"]},"maintenance":{"score":15,"max":15,"notes":["last push 29 days ago"]},"identity":{"score":8,"max":10,"notes":["registry namespace matches repository owner","GitHub account older than a year"]}},"findings":[],"inputs":{"packages":[{"registryType":"npm","identifier":"@mukundakatta/promptbudget-mcp","version":"0.2.0","found":true,"license":"MIT OR Apache-2.0","hasInstallScripts":false,"dependencyCount":1,"publishedAt":"2026-05-10T22:51:05.764Z","repositoryUrl":"git+https://github.com/MukundaKatta/mcp-stack.git","weeklyDownloads":28}],"repo":{"found":true,"owner":"MukundaKatta","repo":"mcp-stack","archived":false,"pushedAt":"2026-08-29T20:02:42Z","stars":0,"forks":0,"openIssues":3,"ownerType":"User","ownerAvatarUrl":"https://avatars.githubusercontent.com/u/99349238?v=4","ownerCreatedAt":"2022-02-09T16:08:21Z","license":"Apache-2.0"},"icon":{"url":"https://avatars.githubusercontent.com/u/99349238?v=4&s=128","source":"github"},"presence":{"stars":0,"forks":0,"downloadsWeek":28,"license":"Apache-2.0","lastPushAt":"2026-08-29T20:02:42.000Z","score":22}}}},"grade_history":[],"reviews":[]}