L'Atlas / MCP servers / spendctl
MCP server

spendctl

dev.spendctl/spendctl

MCP server OK 8 tools

Get a review See pricing

Spend policy for AI agents that pay (x402, MPP). Login-free sandbox, real sidecar, no real funds.

Technical sheet

Author
spendctl.dev (registry namespace)
Repository
—
Site
spendctl.dev/docs/sandbox
Version
0.1.0
Transport
Streamable HTTP
Authentication
None (observed by our test)
Server address
https://mcp.spendctl.dev/mcp Streamable HTTP
Tools
8
Categories
AI, agents and memory, Finance and payments
Last updated
26 Oct 2026
Published
26 Oct 2026

Badge for your README

Listed on L’Atlas

Free, for every entry. It links back to this entry and shows “tested OK” as long as our latest test succeeded.

MarkdownREADME.md
[![Listed on L’Atlas](https://latlas.dev/badge/fiche/dev.spendctl/spendctl.svg?lang=en)](https://latlas.dev/en/mcp/dev.spendctl/spendctl)
HTML
<a href="https://latlas.dev/en/mcp/dev.spendctl/spendctl"><img src="https://latlas.dev/badge/fiche/dev.spendctl/spendctl.svg?lang=en" alt="Listed on L’Atlas" height="20"></a>

Our tests

Every week: initialize then tools/list, without credentials, never calling a tool. Method

Address
https://mcp.spendctl.dev/mcp
Last result
OK 28 Nov 2026, 09:46
Response time
713 ms (initialize + tools/list)
Protocol version
2025-11-25
Announced name
spendctl-sandbox 0.1.0
Tools
8

History

DateResultResponseTools
28 Nov 2026, 09:46OK713 ms8

Exposed tools (8, from tools/list, 28 Nov 2026)

sandbox_create

Create a spendctl sandbox

Creates an isolated spendctl sandbox and returns its sandbox_id. Call it first: every other tool needs the sandbox_id, and one sandbox serves a whole conversation (create another only to try a different preset). The sandbox is a real spendctl sidecar with a throwaway wallet, a mock x402 facilitator and two mock paid APIs; no real money moves and nothing outside the sandbox is reachable. Returns the sandbox_id, the agent's policy (budgets, allowed hosts, approval rule) and the paid endpoints with their prices. Limits: 5 sandboxes per minute per client address (claude.ai users share addresses and get a larger allowance); a sandbox expires after 2 hours without calls (24 hours at most). Example: preset "strict" to see refusals, "approvals" to see a payment held for a human.

ParameterTypeRequiredDescription
presetenum: "default" | "strict" | "approvals"noPolicy preset. default: comfortable caps, both endpoints allowed; strict: $0.015 per request and $0.03 per day, weather only, so the search API and a fourth weather call are refused; approvals: payments at or above $0.015 wait for approve

sandbox_pay

Fetch a paid sandbox URL

Fetches one of the sandbox's paid endpoints (HTTP 402, x402) through the spendctl sidecar, which applies the sandbox agent's budget, allowlist and approval policy, pays with the throwaway wallet if allowed, and returns the response. Use it for every paid call in the sandbox: with dryRun to see the decision without paying, with approvalId to complete a payment that was held and then approved. The endpoints are https://weather.sandbox.spendctl.dev/weather?city= ($0.01) and https://search.sandbox.spendctl.dev/search?q= ($0.02), as listed by sandbox_create and documented at https://spendctl.dev/docs/sandbox/; any other host is refused. Returns a one-line summary (HTTP status, amount paid, decision, receipt id) followed by the response body, or the refusal with its reason, or an approval id when the payment is waiting for a human. On a client that supports MCP input requests (protocol revision 2026-07-28, form elicitation) a held payment comes back as an input_required result asking the user to approve or deny, and the client's retry completes or refuses it; other clients get the approval id as text. Only sandbox hosts exist and no real funds are involved; the request is always a GET and responses are clipped at 20,000 characters. Example: url https://weather.sandbox.spendctl.dev/weather?city=Kyoto

ParameterTypeRequiredDescription
sandbox_idstringyesThe sandbox_id returned by sandbox_create (32 hex characters)
urlstringyesAbsolute URL of a sandbox endpoint, e.g. https://weather.sandbox.spendctl.dev/weather?city=Kyoto
idempotencyKeystringnoReuse the same key when retrying a call so the sandbox is never charged twice, e.g. "kyoto-1"
dryRunbooleannotrue: only report what spendctl would decide; never pay
approvalIdstringnoThe approval id from an earlier sandbox_pay result, after approve accepted it, to complete that held payment

await_approval

Wait for a held sandbox payment's decision

Waits for the decision on a payment that sandbox_pay reported as held, without paying again: long-polls the sandbox sidecar for up to timeoutSeconds (default 10, at most 20) and returns pending, approved, denied, expired or withdrawn, with the ledger entry and the decision deadline. This is what an agent does in the real product while a human decides; in the sandbox the model is also the approver (approve), so call approve from another turn or first. After approved, repeat sandbox_pay with approvalId to complete the payment. Read-only; never pays and never decides.

ParameterTypeRequiredDescription
sandbox_idstringyesThe sandbox_id returned by sandbox_create (32 hex characters)
approvalIdstringyesThe approval id returned by sandbox_pay in its "waiting for approval" result (Approval id: ...)
timeoutSecondsintegernoHow long to wait for a decision before answering pending (1 to 20, default 10)

withdraw_approval

Withdraw a held sandbox payment

Takes back a payment that sandbox_pay reported as held, as a real agent does when the task that needed the payment was cancelled or superseded: nothing is paid, the approval closes as withdrawn (distinct from deny), a later approve on that id is refused and await_approval answers withdrawn at once. Use it with an approval id from this sandbox; a new sandbox_pay call opens a fresh approval if the payment is wanted after all. Withdrawing an id that was already decided reports that decision as an error.

ParameterTypeRequiredDescription
sandbox_idstringyesThe sandbox_id returned by sandbox_create (32 hex characters)
approvalIdstringyesThe approval id returned by sandbox_pay in its "waiting for approval" result (Approval id: ...)
notestringnoOptional reason recorded with the withdrawal, e.g. "task cancelled", up to 200 characters

check_budget

Check remaining budget

Shows the sandbox agent's spending limits, what has been spent in each window and what is left. Use it before a paid call when the remaining budget matters, or after a refusal to see which limit was hit. Returns the agent name and mode, the per-request limit, the approval threshold, what happens when a budget is exceeded, the allowed hosts and one line per window (hourly, daily: spent, limit, remaining). Read-only; changes nothing.

ParameterTypeRequiredDescription
sandbox_idstringyesThe sandbox_id returned by sandbox_create (32 hex characters)

list_receipts

List receipts

Lists the sandbox agent's most recent payment attempts, newest first: paid (amount and mock transaction hash), refused (reason codes) and waiting for approval. Use it to report what happened so far or to find a receipt id; after a hold, the approval id is in the sandbox_pay result. Returns up to `limit` lines, one per attempt, with time, receipt id, method, URL, amount and status, or "No payments yet." Read-only.

ParameterTypeRequiredDescription
sandbox_idstringyesThe sandbox_id returned by sandbox_create (32 hex characters)
limitintegernoHow many attempts to return, newest first (1 to 100, default 10)

get_policy

Show the sandbox policy

Returns the sandbox's spendctl.yaml as text: the preset name and the agent's budgets, allowed hosts and approval rules. Use it to explain why a payment was refused or held, or to show what a spendctl policy file looks like. Read-only; the sandbox policy cannot be changed, create a sandbox with another preset instead.

ParameterTypeRequiredDescription
sandbox_idstringyesThe sandbox_id returned by sandbox_create (32 hex characters)

approve

Approve or deny a held sandbox payment

Approves or denies a payment that sandbox_pay reported as waiting for approval, as the human approver would with `spendctl approve`. Use it only with an approval id from this sandbox; in the real product a human decides, in the sandbox the model plays that role. Returns the approval id and its new status (approved or denied). An approved payment completes when sandbox_pay is called again with the same approvalId; a denied one stays refused. Deciding the same approval twice keeps the first decision.

ParameterTypeRequiredDescription
sandbox_idstringyesThe sandbox_id returned by sandbox_create (32 hex characters)
approvalIdstringyesThe approval id returned by sandbox_pay in its "waiting for approval" result (Approval id: ...)
decisionenum: "approve" | "deny"noapprove releases the held payment; deny refuses it for good
notestringnoOptional reason recorded with the decision, up to 200 characters

Client compatibility

Based on the transports each client documents as supported; this is not a live test inside the client.

ClientDocumented transportsThis serverSource
Claude Codestdio Streamable HTTP SSEtransport accepteddoc
Claude (claude.ai, Claude Desktop, Cowork)stdio Streamable HTTP SSEtransport accepteddoc
ChatGPT (serveurs MCP personnalisés / plugins)Streamable HTTP SSEtransport accepteddoc
Cursorstdio Streamable HTTP SSEtransport accepteddoc
VS Code (GitHub Copilot)stdio Streamable HTTP SSEtransport accepteddoc
Windsurf (documentation redirigée vers Devin Local / Devin CLI)stdio Streamable HTTP SSEtransport accepteddoc
Gemini CLIstdio Streamable HTTP SSEtransport accepteddoc
OpenAI Codex (CLI, extension IDE, app)stdio Streamable HTTPtransport accepteddoc

Ready-to-copy configs

Remote address used: https://mcp.spendctl.dev/mcp. Formats taken from each client’s documentation.

Claude Code
claude mcp add --transport http spendctl https://mcp.spendctl.dev/mcp
Claude (claude.ai, Claude Desktop, Cowork)
Customize > Connectors > + Add > Add custom connector ; Name : spendctl ; URL : https://mcp.spendctl.dev/mcp
ChatGPT (serveurs MCP personnalisés / plugins)
chatgpt.com/plugins > + > Add custom MCP server ; Name : spendctl ; Server URL : https://mcp.spendctl.dev/mcp ; Create as a plugin
Cursor.cursor/mcp.json (projet) ou ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "spendctl": {
      "url": "https://mcp.spendctl.dev/mcp"
    }
  }
}
VS Code (GitHub Copilot).mcp.json à la racine du workspace, ou ~/.copilot/mcp-config.json ($COPILOT_HOME/mcp-config.json)
{
  "mcpServers": {
    "spendctl": {
      "type": "http",
      "url": "https://mcp.spendctl.dev/mcp",
      "tools": ["*"]
    }
  }
}
Windsurf (documentation redirigée vers Devin Local / Devin CLI).devin/mcp_config.json (projet), .devin/mcp_config.local.json (local), ~/.config/devin/mcp_config.json (utilisateur)
{
  "mcpServers": {
    "spendctl": {
      "url": "https://mcp.spendctl.dev/mcp"
    }
  }
}
Gemini CLI~/.gemini/settings.json (utilisateur) ou .gemini/settings.json (projet)
{
  "mcpServers": {
    "spendctl": {
      "httpUrl": "https://mcp.spendctl.dev/mcp"
    }
  }
}
OpenAI Codex (CLI, extension IDE, app)~/.codex/config.toml (ou .codex/config.toml pour un projet de confiance)
[mcp_servers.spendctl]
url = "https://mcp.spendctl.dev/mcp"

Cite this source

Writing an article or comparison? This entry distinguishes registry information from our measurements. Cite the permanent link and the test date; an OK result is not a security audit or an availability guarantee.

spendctl · L’Atlas · Tested on

Markdown
[spendctl — L’Atlas](https://latlas.dev/en/mcp/dev.spendctl/spendctl)
Test methodology and limitations

Source : Registre officiel MCP · retrieved 29 Nov 2026. L’Atlas adds no data beyond this source and its own tests.