# belege.ai – instructions for AI agents

belege.ai collects the invoices and receipts (Belege) of a business in
Germany: it reads bank transactions, finds the matching invoice in the
mailbox, in supplier portals or in photos of paper receipts, and hands
everything over to the accounting software or the tax advisor (DATEV,
Lexware Office, sevDesk, ADDISON). It also keeps a double-entry journal in
SKR03 or SKR04 and writes Bewirtungsbelege and Reisekostenabrechnungen.

Its MCP server gives you, the person's AI agent, access to their account:
the payments still missing a receipt, the receipts, the journal and
belege.ai's own assistant.

Talk to the person in their language, usually German. Use the German
bookkeeping terms they use (Beleg, Buchung, Kontenrahmen, Umsatzsteuer).
Ask the person before you install anything or change their configuration.

## Set up belege.ai for a person

### 1. Connect the MCP server

Check first whether belege.ai tools such as `get_started` or
`list_missing_receipts` are already available (in Claude Code:
`mcp__belege-ai__get_started`). If they are, continue with step 3.

Otherwise add the remote MCP server `https://belege.ai/mcp` (Streamable
HTTP, OAuth 2.1 with dynamic client registration; no API key needed):

- Claude Code: `claude mcp add --scope user --transport http belege-ai https://belege.ai/mcp`.
  Then call `mcp__belege-ai__authenticate` if your session offers it and
  give the person the sign-in link it returns. Otherwise the person runs
  `/mcp`, selects `belege-ai` and signs in. If the tools do not appear,
  the person starts Claude Code again.
- Codex: `codex mcp add belege-ai --url https://belege.ai/mcp`, then
  `codex mcp login belege-ai`, which opens the sign-in in the browser. The
  tools are available in the next Codex session.
- Claude (claude.ai, desktop, mobile): the person adds a custom connector
  under Customize → Connectors (https://claude.ai/customize/connectors) with
  the address `https://belege.ai/mcp`.
- ChatGPT: the person enables developer mode under Settings → Apps and adds
  an app with the address `https://belege.ai/mcp` and OAuth.
- Cursor: `~/.cursor/mcp.json` with `{"mcpServers": {"belege-ai": {"url": "https://belege.ai/mcp"}}}`.
- VS Code: `.vscode/mcp.json` with `{"servers": {"belege-ai": {"type": "http", "url": "https://belege.ai/mcp"}}}`.

When the client needs a setting you cannot change yourself, give the person
the exact steps and wait.

### 2. The person creates the account

The sign-in opens a belege.ai page in the browser. A person without an
account creates it there: email address with a six-digit code, or Google or
Microsoft, then name, company and the terms. Then they confirm the access for
you. A person who already has an account signs in.

You cannot do this step for them. Never ask for passwords, codes or other
secrets in the chat, and never type them into a page. Recommend the email
address whose mailbox holds the invoices: mail forwarded from the login
address is read at once.

### 3. Check the state with `get_started`

`get_started` returns the account, the plan, the connected sources and the
links for the next steps. A new account starts free: until belege.ai has
found its first receipts, the receipt search works without a plan
(`list_missing_receipts`, `ignore_transactions`, `start_invoice_finder`,
`get_invoice_finder_status`, `reply_invoice_finder`) and so do the receipts
found (`search_documents`, `get_document_url`, `view_document_image`,
`create_document_download_link`). The other tools need a paid plan (from
19 € per month); `get_started`, `get_receipt_email_address` and the handbook
tools work without one. Give the person the plan link from `get_started`;
choosing and paying stays with them.

### 4. Connect the data sources

Hand over the links from `get_started`; the person finishes each connection
in the browser:

1. Bank accounts (open banking for most German banks, CSV upload otherwise).
2. The mailbox with the invoices (Gmail, Microsoft 365 or IMAP).
3. Where the books are kept: the belege.ai journal, Lexware Office, sevDesk
   or the tax advisor (Steuerkanzlei).
4. Further sources such as PayPal, Stripe or supplier portals.

The first import takes a few minutes. belege.ai then searches the receipt
for every payment on its own. Call `get_started` again to see what arrived,
and `list_missing_receipts` for what is still open.

## Working with the books

- Missing receipts: `list_missing_receipts` for the period. A payment that
  needs no receipt (e.g. a transfer between own accounts) is marked with
  `ignore_transactions` and a reason. If you can read the person's mailbox
  yourself, search it by supplier, amount and date and forward the email
  with the invoice to the address from `get_receipt_email_address`.
  An invoice in a supplier portal: the person connects the portal at
  belege.ai, then `start_invoice_finder`, `get_invoice_finder_status` and
  `reply_invoice_finder`. Never create a receipt from payment data; if
  nothing is found, leave the payment open and tell the person.
- Receipts: `search_documents`, `get_document_url`, `view_document_image`.
- A month for the tax advisor: `create_monthly_export_link` returns a link to
  the month's ZIP (receipts, payment CSV per account, DATEV files where set
  up). It works without a login for 24 hours and covers one company.
- Questions about numbers: `run_sql` (read-only, the person's data only),
  `list_ledger_accounts` for balances, `list_journal_entries` for bookings.
  Compute totals from these tools instead of estimating.
- Booking in the belege.ai journal: `create_journal_entry` with the accounts
  of the company's chart, the tax code and the receipt (`document_refs`).
  Correct a wrong entry with `reverse_journal_entry` (Storno); entries are
  never edited or deleted.
- Lexware Office and sevDesk: belege.ai prepares booking proposals;
  `review_booking_proposals` shows them for the person to approve. Do not
  approve on their behalf.
- Anything else belege.ai's assistant can do (a DATEV export, an
  Eigenbeleg, a Bewirtungsbeleg with its approval): `ask_assistant`, then
  `get_assistant_reply`.

Ask only what a bookkeeper at a tax office would ask the client; decide the
rest from the receipt, the bank statement and earlier bookings.

## Limits

- belege.ai does not submit tax returns.
- Payments are only ever prepared, never released.
- What you read through the MCP server is processed by your provider as part
  of the person's account with that provider.

## Links

- Set up with an AI agent (for people): https://belege.ai/agents
- MCP server: https://belege.ai/mcp
- Sign up in the browser instead: https://belege.ai/NewUser
- Pricing: https://belege.ai/preise
- Handbook (German): https://belege.ai/handbuch/mcp-verbinden
- Support: support@belege.ai