Infrastructure · Testing

Prepaid micropayments for MCP tools and AI agents

Testing

tur-credits is in testing.

Hold a prepaid balance in öre. Each MCP or API service sets the price per call. When the balance is too low, clients get HTTP 402 or MCP error -32042.

Built for developers and founders who ship MCP servers or APIs and need to charge AI agents a small amount per call — without a full billing stack, and without requiring a crypto wallet. Three free trial calls per tool, agent, and day come before the paywall.

Part of The Unnamed Roads. Studio status: /projects/tur-credits.

The problem

Agent traffic is call-shaped. A monthly subscription needs an account before the first tool runs. Card checkouts often have a minimum that is high for a 1–2 SEK call. Crypto paywalls ask the client for a wallet many MCP hosts cannot complete. You need a prepaid balance, a few free trials, and a machine-readable payment required response.

How it works

  1. Create a key. POST /v1/keys returns a key with balance 0.
  2. Verify email. Starter credit of 1000 öre (10 SEK), once per address, on credit-billed projects.
  3. Charge before the paid tool runs. Free tools stay free. Paid tools allow 3 trial calls per tool, agent, and day, then debit the balance. The debit is atomic and uses an idempotency key; balance never goes negative.
  4. If payment is required. HTTP 402 or MCP error -32042, with price, balance, and a top-up path. Invoice is the default top-up. Credit lands when the invoice is marked paid.

Production host: credits.theunnamedroads.com.

What the agent sees

When trials are used and the balance is too low, REST returns HTTP 402 with PAYMENT_REQUIRED. MCP handlers return JSON-RPC error -32042 with the same fields. Shortened example:

{
  "error": {
    "code": "PAYMENT_REQUIRED",
    "price_ore": 200,
    "balance_ore": 0,
    "what_you_get": "Full paid tool result",
    "tool": "create_order",
    "project": "tpr",
    "topup": {
      "create_topup": {
        "method": "POST",
        "path": "/v1/tpr/top-ups"
      }
    }
  }
}

Pricing and an example

Balance is prepaid in öre (100 öre = 1 SEK). Each service sets the price per tool. Typical paid calls are 100 to 200 öre (1 to 2 SEK). Facts, schema, catalogue, and quote-style tools are often free. Three trial calls per tool, agent, and day come before the paywall. Starter credit is 1000 öre after verified email on credit projects. Invoice top-up is live. Stripe Checkout packages of 50, 100, and 250 SEK are coming soon and are not the default.

Two billing modes exist in the shared service: credits (prepaid öre and paywall — this page) and service (MCP tools stay free; the purchase is ordering the work). Studio products such as The Outcome Layer and The Data Labelers use service mode. They are not pay-per-call products.

The Print Route

On The Print Route, catalogue and preview tools are free (list_products, get_prices, check_print_file, preview). get_order_status is 100 öre (1 SEK). create_order is 200 öre (2 SEK). Agents can explore for free, then pay for the action that has cost.

How this compares to x402, Stripe, and subscriptions

tur-credits was built so MCP services can charge in SEK, with invoice top-up and a paywall that clients already understand, without requiring a crypto wallet.

Approach What it is Fit for 1–2 SEK MCP calls
tur-credits Prepaid SEK/öre balance, trials, then 402 / -32042. Invoice top-up. No wallet required. Built for this. Invoice is not instant. Testing / beta.
x402 Open protocol: pay per call, often USDC on Base, wallet + facilitator. Works if the client can pay on-chain. Many MCP clients stop at the payment error.
Stripe machine payments Agent pays with a card Shared Payment Token or stablecoin; funds settle to Stripe. Card minimum is high for a 1–2 SEK call. Access and geography can be limited.
Subscription Monthly plan and human checkout. Poor fit for a single agent call. Account setup blocks unknown agents.
Skyfire / Apify tokens Agent wallet buys a prepaid token with a spend cap. Useful on those platforms. Not a general MCP billing library in SEK.
Nevermined Paywall and credit burn on their plans, including MCP helpers. Closer to subscriptions/credits on their protocol than a SEK invoice.
Payman (Genie) An agent payment assistant (payer side). Does not monetise your MCP server.

Get started if you run an MCP server

  1. Create a key and verify email to receive starter credit on a credit project.
  2. Gate the paid tool with checkAndCharge or withCreditsGate from @tur/credits-client. Pass a hashed agent id so trials are counted per agent.
  3. Return the packaged MCP error when httpStatus === 402.

Step-by-step docs: quickstart and developers on credits.theunnamedroads.com. This page does not publish an npm install path until that is confirmed.

Frequently asked questions

What is tur-credits?
A prepaid micropayments service for MCP tools and AI agents. You hold a balance in öre, and each service sets the price per call.
How do I charge an AI agent for an MCP tool call?
Gate the tool, charge the prepaid balance before the full result runs, and allow a few free trial calls first. If the balance is too low, return HTTP 402 or MCP error -32042 with the price, the remaining balance, and how to top up.
Do callers need a crypto wallet?
No. The balance is in SEK (öre). The default top-up is an invoice. A crypto wallet is not required.
How is this different from x402?
x402 is an open pay-per-call protocol, usually settled in USDC with a wallet. tur-credits is a prepaid SEK balance with trials, an invoice top-up, and the same 402-style paywall, so an agent or a human can pay without on-chain setup.
What does a call cost?
Each service sets its own price. Typical paid calls are 100 to 200 öre (1 to 2 SEK). Catalogue, schema, and quote tools are often free. Three trial calls per tool, agent, and day come before the paywall.
How do I top up?
Request an invoice through the API. Credit is added when the invoice is marked paid. Stripe Checkout packages of 50, 100, and 250 SEK are coming soon and are not the default.
What is the status of tur-credits?
Testing, new, and in beta. Invoice top-up is live. Stripe Checkout is not the default yet.
Does The Unnamed Roads use this on its own tools?
Yes, as a shared service for studio MCP and API calls. The Print Route is a public example: catalogue and preview tools are free, order status is 100 öre, and creating an order is 200 öre.

Home · Projects · tur-credits status · The Print Route · Contact