Kanagu

Pay-per-call utility APIs for developers and AI agents, as one remote MCP server. Live now: business-day counting and business deadlines with observed public holidays for the US, UK, Germany, France and Japan, at $0.001 per call. Authenticate with a Kanagu API key as a Bearer token.

Hosted MCP Server

npx add-mcp 'https://api.kanagu.dev/mcp'

Installs into Claude Code, Codex, Cursor and more

Documentation

Each operation is one POST endpoint and one MCP tool with a fixed price, from $0.001/call. Call it from your code with an API key, or hand the key to your agent. No seats, no tiers, no minimum.

TRY

Run any operation against the live API now. Anonymous calls are free, up to 10 per IP per UTC day.

OPERATIONS

11 operations. Every one is the same POST path on REST and the same tool name over MCP.

bankstatement

bankstatement.extract $0.12 / page

Extract and reconcile transactions from text PDFs for Wells Fargo Advantage Checking, Chase checking and Barclays bank accounts.POST /v1/bankstatement/extract

calendar

calendar.business-days $0.001 / call

Count business days in [startDate, endDate) or add signed business days from startDate. Weekends and observed public holidays are excluded.POST /v1/calendar/business-days

calendar.deadline $0.001 / call

Calculate a deadline in local business days or hours and trace skipped dates.POST /v1/calendar/deadline

csv

csv.check $0.03 / call

Check a CSV against a target schema and return diagnostics and a normalized preview.POST /v1/csv/check

einvoice

einvoice.generate $0.02 / call

Generate a KoSIT-validated XRechnung UBL or CII invoice, or a ZUGFeRD PDF/A-3.POST /v1/einvoice/generate

einvoice.parse $0.02 / call

Extract invoice parties, references, dates, amounts, and lines from XML or hybrid PDF.POST /v1/einvoice/parse

einvoice.validate $0.02 / call

Validate an invoice XML or a hybrid invoice PDF's XML against KoSIT rules.POST /v1/einvoice/validate

email

email.parse $0.03 / call

Parse an RFC 5322 email into headers, addresses, MIME bodies, attachments, and thread IDs.POST /v1/email/parse

screenshot

screenshot.diff $0.01 / call

Compare public web pages or a stored screenshot baseline at a fixed viewport.POST /v1/screenshot/diff

vat

vat.audit $0.03 / call

Retrieve completed VAT verifications and their consultation numbers for your account.POST /v1/vat/audit

vat.verify $0.03 / call

Verify an EU or UK VAT number and return audit evidence. Upstream failures are unbilled.POST /v1/vat/verify

PRICING

  • Each successful keyed call is billed at the price listed beside its operation: once per call, or per page where the price says so.
  • Usage is metered and billed monthly in USD through Polar.
  • Failed calls are not billed.
  • A retry with the same Idempotency-Key returns the first result and is billed once.
  • Trial: 10 anonymous REST calls per IP per UTC day. MCP needs a key.

KEYS

Checkout gives you one API key, shown once on the confirmation page. Send it as Authorization: Bearer <key> on REST and MCP.

Checkout runs on Polar Sandbox while Kanagu is in test mode. No real charge.

EXAMPLES

Set KANAGU_KEY to your key, then call bankstatement.extract.

curl

curl https://api.kanagu.dev/v1/bankstatement/extract \
  -H "Authorization: Bearer $KANAGU_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url":"https://www.wellsfargo.com/assets/pdf/personal/help/tester.pdf"}'

TypeScript (fetch)

const res = await fetch("https://api.kanagu.dev/v1/bankstatement/extract", {
  method: "POST",
  headers: {
    Authorization: \`Bearer ${process.env.KANAGU_KEY}\`,
    "Content-Type": "application/json",
  },
  body: JSON.stringify({
    "url": "https://www.wellsfargo.com/assets/pdf/personal/help/tester.pdf"
  }),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const result = await res.json();

MCP · Claude Code

claude mcp add --transport http kanagu https://api.kanagu.dev/mcp \
  --header "Authorization: Bearer $KANAGU_KEY"

MCP · Cursor (.cursor/mcp.json)

{
  "mcpServers": {
    "kanagu": {
      "url": "https://api.kanagu.dev/mcp",
      "headers": {
        "Authorization": "Bearer ${env:KANAGU_KEY}"
      }
    }
  }
}

Every operation is listed as a tool with its input and output schema. Tool name = operation ID.

ERRORS

Errors return JSON as {"error":{"code","message"}}. Codes you will meet most:

400invalid_inputThe body does not match the request schema. The message names each field.
401invalid_api_keyThe Bearer key is missing, malformed, invalid or inactive.
409idempotency_conflictThe Idempotency-Key was already used with a different body.
429trial_limitThe anonymous trial allows 10 calls per IP per UTC day. Retry-After gives the seconds left.

All error codes