# Saffron Browser API and MCP Reference > Use the capture API or hosted MCP server to fetch permitted public web pages, handle supported documents and verify signed results. This reference covers the Phase 1 API, including the shared batch route, and the hosted MCP runtime that negotiates `2025-11-25`. Use the [capture guide](https://saffronbrowser.com/docs) for first-run examples and the [developer portal](https://saffronbrowser.dev/) for integration details. ## Connection - REST API: `https://api.saffronbrowser.com` - MCP Streamable HTTP: `https://mcp.saffronbrowser.com/v1/mcp` - [Request a developer key](https://saffronbrowser.com/#get-key) - [Discovery manifest](https://saffronbrowser.com/.well-known/mcp) - [Server Card](https://saffronbrowser.com/.well-known/mcp/server-card.json) Send `Authorization: Bearer ` on authenticated requests. Keep the key in a secret store and out of URLs, command arguments, logs and source files. Do not forward it across redirects. ## Plans and credits | Offer | Price | Credits | Concurrent slots | | --- | --- | --- | --- | | Free | $0 | 1,000 one-time | 2 | | 10k Refill | $39 one-time | 10,000 prepaid | 5 | | Starter | $49/month | 8,000 per paid month | 5 | Check [availability](https://api.saffronbrowser.com/v1/billing/availability) before selecting an offer. Team, Scale and Enterprise are present in the catalog with checkout closed in the observed production availability. [Plans](https://saffronbrowser.com/plans.html) · [Billing terms](https://saffronbrowser.com/billing-terms) Active monthly credits debit first, prepaid credits second and free credits last, subject to operation eligibility. A successful batch item uses three isolated-browser credits. A failed item does not debit. For an initial crawl or batch, send `Saffron-Max-Charge` as an upper bound and use a stable `Idempotency-Key` of 8 to 128 ASCII letters, digits, underscores or hyphens. Reuse the exact body, key and cap when replaying a request. Do not treat a replayed receipt's original debit field as a new charge. ## REST reference | Method and path | Input and behavior | | --- | --- | | GET `/v1/health` | Public liveness. | | GET `/v1/billing/availability` | Public offer and checkout availability. | | GET `/v1/.well-known/saffron-signers.json` | Public signing policy and Ed25519 public keys. | | GET `/v1/billing/usage` | Authenticated credit balances and usage. | | POST `/v1/scrape` | Capture a permitted public URL. Follow the capture guide for options and Saffron Proof contracts. | | POST `/v1/screenshot` and `/v1/pdf` | Binary captures. See the capture guide for request options and receipt headers. | | POST `/v1/crawl` | `url`, optional `maxPages` (1–12), `maxDepth` (0–3), `includePaths`, `excludePaths` and object `contract`. Path filters are prefixes. | | POST `/v1/map` | `url`, optional `limit` (1–500) and `search`. | | POST `/v1/batch` or `/v1/batch/scrape` | Shared route. `urls` takes 1–12 public URLs or items with `url` and an optional object `contract`. A shared object `contract` can also be provided. | | POST `/v1/monitor` | Create with `action`: `create`, `url` and optional `intervalSeconds` (300–86400). Optional contract, charge cap and allowlisted webhook. Stop with `action`: `stop` and `monitorId`. | | POST `/v1/parse` | `format` (`pdf`, `docx`, `xlsx` or `csv`) and `base64`. Use canonical base64 and at most 180 KiB decoded input. | | GET `/v1/operations/:id/reconciliation` | Read the authenticated account's signed operation evidence and billing state for V6. | | GET `/v1/operations/:id/receipt` | Receipt lookup for older capture operations. Use reconciliation for V6. | The example batch request body contains one public catalog URL. ```json {"urls":["https://saffronbrowser.dev/saffron-catalog-example.html"]} ``` Set `Saffron-Max-Charge: 3` and choose an idempotency key for this capture. The two batch routes share one operation and receipt. Check each item's `ok` field for partial success. A replay with the same key, body and charge cap returns the original result and receipt without another debit. ## Hosted MCP Connect with Streamable HTTP to `https://mcp.saffronbrowser.com/v1/mcp` using the same Bearer header. The MCP Registry listing `com.saffronbrowser/mcp` uses registry version `1.0.0`. The hosted server identifies itself during initialization as `saffron-browser` version `6.0.0-rc.1`. Call `tools/list` after connecting to get current input schemas and annotations. Production enumerated these ten tools. - `browser_scrape`, `browser_scrape_with_contract`, `browser_screenshot`, `browser_pdf` - `browser_crawl`, `browser_map`, `browser_batch_scrape`, `browser_parse` - `browser_monitor`, which can create or stop a scheduled operation - `browser_reconcile`, which reads signed evidence and billing state Only reconciliation has the read-only hint. The other tools can consume credits or change schedule state. Review inputs and the expected cost before invoking them. The Server Card describes how to connect. The Saffron discovery manifest is vendor metadata inspired by the SEP-1960 proposal. ## Verify a V6 batch receipt Read the response's `receipt` and `result`. Independently pin the public key from [the active signer manifest](https://api.saffronbrowser.com/v1/.well-known/saffron-signers.json) and verify the Ed25519 signature on the canonical JSON envelope. Match the envelope's `dataSha256` to the canonical JSON result, `attemptId` to `operationId` and `creditsBilled` to the billed credits. Verify the route, expected request digest, HTTP status and tenant hash in `binding`. The request digest is SHA-256 of canonical JSON for the array `[request body, charge cap or null]`. For V6 batch receipts, canonical JSON recursively sorts object keys before encoding, preserves array order and uses compact JSON. The signer identifier is `ed25519:` followed by the SHA-256 hash of the key's DER SPKI. Compare that identifier to an independently trusted key before accepting the signature. Then reconcile the operation through the authenticated endpoint to confirm the settlement state. An authentic receipt proves the signed record. The ledger confirms whether a replay created another debit.