Budget tools for Claude Code, Cursor and other MCP clients

Last updated 24 November 2026

An agent that can see its own budget makes better choices: it can pick a cheaper model or stop before expensive work. The Xpenvo MCP server gives Claude Code, Cursor, Claude Desktop and any other MCP client five small tools that use the agent’s own Xpenvo key. Model calls get their hard limit through the base URL as usual; these tools cover the rest.

1. Make a budget and a key

Create a free account, make a budget (for example $20 a day) and an agent key for it under Agent keys. The key starts with xpv_ and is shown once. You keep your own provider key and keep paying your provider directly; Xpenvo never stores it.

2. Add the server

Claude Code:

claude mcp add xpenvo --env XPENVO_KEY=xpv_... -- npx -y xpenvo-mcp

Cursor, Claude Desktop and other clients (mcpServers settings):

{
  "mcpServers": {
    "xpenvo": {
      "command": "npx",
      "args": ["-y", "xpenvo-mcp"],
      "env": { "XPENVO_KEY": "xpv_..." }
    }
  }
}

It needs Node 18 or newer and has no dependencies. Optional settings: XPENVO_RUN and XPENVO_CUSTOMER (your own ids, never an email address).

3. The tools

  • xpenvo_status: what the agent can still spend. Free; changes nothing.
  • xpenvo_charge: check a known tool cost, such as a search API call, and charge it. If it is refused, the agent should skip the paid call.
  • xpenvo_hold, xpenvo_settle, xpenvo_release: hold the most a tool call could cost, then charge the real cost or free it.

Privacy

The server sends only the tool arguments and the agent key to Xpenvo, never your prompts, and never prints the key. The code is open (MIT) on npm as xpenvo-mcp.

Questions

Can Claude Code see how much budget it has left?

Yes. Add the Xpenvo MCP server (npx -y xpenvo-mcp with XPENVO_KEY set) and Claude Code gets an xpenvo_status tool that shows what the key can still spend.

Does the MCP server limit model calls?

No. Model calls are limited by pointing the client at the Xpenvo base URL. The MCP server adds budget visibility and checks for tool spending that is not a model call.

More: full setup guide · model prices · tested guarantees · security. Questions? [email protected]