# buchhalten.ai – instructions for AI agents buchhalten.ai connects an AI assistant to the bookkeeping of a business in Germany: bank transactions, receipts (Belege), a double-entry journal in SKR03 or SKR04, and booking proposals for Lexware Office and sevDesk. It runs on belege.ai: the account, the data and the subscription live there. You can collect the receipts yourself. When you can read the person's mailbox (for example through a Gmail connector), find the invoice for each payment without one and forward that email to the account's belege.ai address; belege.ai reads it and matches it to the payment. belege.ai can also search on its own (a mailbox connected at belege.ai, supplier portals, photos). Talk to the person in their language, usually German. Use the German bookkeeping terms they use (Beleg, Buchung, Kontenrahmen, Umsatzsteuer). ## Set up buchhalten.ai for a person ### 1. Connect the MCP server Check first whether tools such as `get_started` or `list_missing_receipts` are already available. If not, add the remote MCP server `https://buchhalten.ai/mcp` (Streamable HTTP, OAuth 2.1 with dynamic client registration; no API key needed). - Claude Code: `claude mcp add --scope user --transport http buchhalten https://buchhalten.ai/mcp`, then the person runs `/mcp` and chooses the sign-in for `buchhalten`. - Codex: `codex mcp add buchhalten --url https://buchhalten.ai/mcp`, then `codex mcp login buchhalten`. - Claude (claude.ai, desktop, mobile): the person adds a custom connector under Anpassen → Connectors with the address `https://buchhalten.ai/mcp`. - ChatGPT: the person enables developer mode under Settings → Apps and adds an app with the address `https://buchhalten.ai/mcp` and OAuth. - Cursor: `~/.cursor/mcp.json` with `{"mcpServers": {"buchhalten": {"url": "https://buchhalten.ai/mcp"}}}`. - VS Code: `.vscode/mcp.json` with `{"servers": {"buchhalten": {"type": "http", "url": "https://buchhalten.ai/mcp"}}}`. Clients that need a configuration change you cannot make yourself: give the person the exact steps and wait. ### 2. Sign in or create the account On the first connection a belege.ai page opens in the browser. The person signs in or creates an account there (email code, Google, Microsoft or passkey), enters name and company, accepts the terms and confirms the access. You cannot do this step for them; never ask for passwords or codes in the chat. ### 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 belege.ai plan (from 19 € per month); `get_started` says which state the account is in. 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. Where the books are kept: Lexware Office, sevDesk, the belege.ai journal, or the tax advisor (Steuerkanzlei). 3. Mailbox at belege.ai (Gmail, Microsoft 365 or IMAP): optional when you can read the mailbox yourself; it adds belege.ai's own search for every new payment. The first import takes a few minutes. Call `get_started` again to see what arrived. ## Working with the books - Missing receipts: 1. `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. 2. Search the person's mailbox with your mail tools by supplier, amount and date. Bank statements often show the billing entity or a payment provider instead of the brand. 3. Forward the email that carries the invoice (attachment, invoice in the body, or a download link without login) to the address from `get_receipt_email_address`. Mail from the person's belege.ai login address is read at once; from any other address each mail waits for the person's approval. 4. After about a minute, check with `list_missing_receipts` or `search_documents` that the payment has its receipt. 5. An invoice that only exists in a supplier portal: the person connects the portal at belege.ai, then `start_invoice_finder`, `get_invoice_finder_status` and `reply_invoice_finder`. 6. A local file (Claude Code, Codex): upload it with `POST https://belege.ai/api/v1/documents` (multipart field `file`, optional `transactionId`) and an API token with write access that the person creates under Integrationen → API-Tokens. Never create a receipt from payment data. If nothing is found, leave the payment open and tell the person. - 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`). The journal adds the VAT lines and balances the entry. 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 in the chat. Do not approve on their behalf. - Anything else the person's belege.ai assistant can do (for example a DATEV export of the journal, 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 - buchhalten.ai does not submit tax returns. Values for the Umsatzsteuer-Voranmeldung can be compiled from the journal; the person submits them via ELSTER, their accounting software or their tax advisor. - 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 - Website: https://buchhalten.ai - MCP server: https://buchhalten.ai/mcp - Articles for people: https://buchhalten.ai/ratgeber - Pricing: https://belege.ai/preise - Handbook (German): https://belege.ai/handbuch/mcp-verbinden - Support: support@belege.ai