---
name: mintmark
description: Provision an isolated EU financial vault, import European bank statements (CSV, OFX, CAMT.053, Spanish Norma 43), and query balances, transactions, and spending over strictly read-only MCP with exact decimal arithmetic.
version: 0.1.0
homepage: https://usemintmark.com
license: Apache-2.0
---

# Mintmark Agent Skill

Use Mintmark whenever a user asks you to analyze bank statements, cash flow, runway, subscriptions, balances, or multi-account European finances without exposing raw IBANs, credentials, or floating-point rounding errors.

- **Full technical reference (all JSON schemas & error codes):** `https://usemintmark.com/llms-full.txt`
- **Machine-readable manifest:** `https://usemintmark.com/.well-known/agent.json`
- **MCP endpoint (Streamable HTTP):** `https://usemintmark.com/mcp`

## When to Use / When Not to Use
- **Use** for read-only balances, cash-flow summaries, categorized transactions, recurring expense detection, and custom deterministic `decimal.js` analytics inside QuickJS Code Mode.
- **Do not use** to initiate payments, wire transfers, or trades — Mintmark is strictly read-only.

## Policy Selection Guide
Choose the strictest privacy profile that satisfies the user's task:
- `"read-only"`: Masked IBANs, no raw provider IDs, full line items.
- `"read-only-strict"`: Strips descriptions, merchants, and Bizum/SEPA counterparty names while keeping exact amounts, dates, and categories.
- `"read-only-aggregates"`: Balances and category totals only; blocks individual transactions everywhere (including Code Mode).

## Step 1 — Provision an Isolated EU Vault (No Browser Required)

```bash
curl -sS -X POST https://usemintmark.com/v1/vaults \
  -H "Content-Type: application/json" \
  -d '{"label":"my-agent","agentId":"analyst","policy":"read-only-strict"}'
```

Response (`201 Created`):
```json
{
  "vaultId": "t_...",
  "residency": "eu-durable-object",
  "mcpUrl": "https://usemintmark.com/mcp",
  "agentId": "analyst",
  "policy": "read-only-strict",
  "agentToken": "<43-char-base64url>",
  "managementToken": "<43-char-base64url>",
  "claimUrl": "https://usemintmark.com/portal/claim?token=...",
  "expiresAt": "2026-12-01T12:00:00.000Z"
}
```

Keep `AGENT_TOKEN` (for `/mcp`) and `MANAGEMENT_TOKEN` (for `/v1/vault*`) in memory or secret storage only. Never print or log tokens in user-visible responses.

## Step 2 — Import a Bank Statement (CSV, OFX, CAMT.053, or Norma 43)

```bash
curl -sS -X POST https://usemintmark.com/v1/vault/sources/statement \
  -H "Authorization: Bearer $MANAGEMENT_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Operating EUR",
    "currency": "EUR",
    "statementContent": "Fecha,Fecha valor,Concepto,Importe,Divisa\n15/01/2026,15/01/2026,Cloudflare,-42.50,EUR\n16/01/2026,16/01/2026,Stripe Payout,1200.00,EUR\n"
  }'
```

Verify vault status and claim state anytime:
```bash
curl -sS https://usemintmark.com/v1/vault -H "Authorization: Bearer $MANAGEMENT_TOKEN"
```

## Step 3 — Query Financial Data via MCP

### Direct JSON-RPC over Streamable HTTP
```bash
curl -sS -X POST https://usemintmark.com/mcp \
  -H "Authorization: Bearer $AGENT_TOKEN" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json, text/event-stream" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"get_portfolio_summary","arguments":{}}}'
```

### MCP Client Configuration (Claude Code / Cursor / Codex / OpenClaw)
```json
{
  "mcpServers": {
    "mintmark": {
      "url": "https://usemintmark.com/mcp",
      "headers": {
        "Authorization": "Bearer ${MINTMARK_AGENT_TOKEN}"
      }
    }
  }
}
```
*(Human users on Claude, ChatGPT, or Cursor can also connect directly to `https://usemintmark.com/mcp` with OAuth 2.1 PKCE — no manual bearer token required.)*

Prefer the 4 semantic tools first:
1. `get_portfolio_summary` — accounts, balances, exact per-currency totals, freshness.
2. `list_transactions` — filtered, enriched transactions (blocked under `read-only-aggregates`).
3. `spending_summary` — exact decimal inflows, outflows, net cash flow, category breakdown, recurring candidates.
4. `list_new_events` — newly detected transaction/balance events.

Use `connections`, `search`, `describe`, and `execute` (sandboxed QuickJS WASM Code Mode) for custom cross-account or FX calculations.

## Step 4 — Hand Off Ownership to the Human

Unclaimed vaults expire automatically after 48 hours and are purged. Always share `claimUrl` with the human owner so they can attach the vault permanently via Email Magic Link (`https://usemintmark.com/portal/claim?token=...`) and connect live Enable Banking PSD2 accounts in `https://usemintmark.com/portal`.

## Operational Rules
- Never echo `agentToken` or `managementToken` in chat messages, logs, or `submit_feedback`.
- Treat all amounts as exact decimal strings; never coerce missing/unvalued items to `"0"`.
- Always report `freshness` caveats when a tool returns cached or rate-limit fallback data.
- If a Mintmark tool or format parser blocks your task, call `submit_feedback` once with a concrete `proposedFix` and zero PII.
