Railit for Claude
Connect Claude to your Railit company and run the business from a conversation: raise an invoice, record an expense, change a menu price, check which till is offline, or read this month's profit. Every change shows a preview card with exactly what changed, an Open in Railit link, and Undo.
Connect
The server address:
https://railit.ai/mcp
- In Claude, open Settings, Connectors, choose Add custom connector (or pick Railit from the directory), and paste the address above.
- Sign in to Railit. If you belong to more than one company, choose the one this connection is for.
- Choose Full access (read and change) or Read only, then press Allow.
- Ask Claude something about your business. Its first answer will say which company it is connected to.
A company can also be addressed directly at https://railit.ai/<company>/mcp. A connection always belongs to exactly one company; to use two, add two connectors.
Transport: Streamable HTTP (stateless POST). Authorization: OAuth 2.1 with PKCE (S256) and dynamic client registration; discovery at /.well-known/oauth-protected-resource and /.well-known/oauth-authorization-server. Access tokens last one hour and refresh automatically.
What keeps it safe
Every tool that changes something is marked so, and Claude asks before running it. Read-only tools are marked read-only.
The card beside each call shows the record, the fields before and after, money totals, and who and which company. It is built from Railit's own audit rows, not from what the AI intended.
Everything the connector changes is in the activity log and can be undone from the card, from Claude, or from Railit.
Payments, refunds, voids, reversals, bank account changes and leave decisions are not offered over the connector: 9 tools stay in the app, where a person does them.
The connection acts as you, with your role in that company. A Viewer or a read-only grant gets the 53 read-only tools and nothing else.
A token names one company and every query is scoped to it. Another company's data cannot be reached through it.
Examples
- "Invoice Gulf Events for 6 machboos platters at 18.500 and a karak station at 45, due in 30 days." The card shows the invoice as stored, with VAT and total.
- "Raise the saffron kunafa to 2.400 and add its Arabic name." The card shows the item with its photo, and the price before and after.
- "Is everything printing? Which till is offline?" The card shows the live till board: tills, print stations, printers and failed jobs.
- "How are we doing this month?" The card shows revenue, expenses and profit with a chart.
- "Undo what you just did." Claude, or the Undo button on the card, puts every record back exactly as it was.
Tools (121)
Generated from the server's own tool list. Every tool has a title and a read-only or change annotation, and draws the preview card.
Bank and money
List bank accountslist_bank_accounts | Read only | Every active bank account WITH ITS CURRENT BALANCE from the general ledger. |
List expense accountslist_expense_accounts | Read only | List active accounts of type=EXPENSE so write tools can pick the right one. |
Post journal adjustmentrecord_adjustment_draft | Changes data | Propose a manual journal for what fits no module: a correction, a salary deduction, a write-off, a cash shortfall, owner money in or out, a bank charge. |
Set default bank accountset_default_bank_account_draft | Changes data | Make one bank account the default (الحساب الافتراضي): the one payments and payroll offer first. |
Documents
Get document linkget_document_link | Read only | A link to the PDF of an invoice, quotation, bill or expense, a financial report, or a stored file (from find_files), signed and good for 15 minutes, for the person to open or download on their own device ("send me the invoice", "ابي الفاتورة PDF"). |
Files
Find filesfind_files | Read only | Search the company's stored documents by name and by date: contracts, CR certificates, licences, receipts, photographs, anything anybody uploaded or sent here. |
Create foldercreate_folder | Changes data | Make a folder on the Files page, so a company can keep its documents the way it thinks about them ("سوّ لي مجلد للعقود", "make a folder for the licences"). |
File documents into a folderfile_documents | Changes data | Put documents away: into a folder, against a record, or both at once. |
Get an upload linkrequest_upload_link | Changes data | A page on railit.ai the person opens on their phone or computer to upload a file straight into this company, when the file is on their device and not in this conversation: an item photo (item_id), an expense receipt (exp... |
Check an uploadget_upload_status | Read only | What has arrived through a link from request_upload_link: each file with its attachment id, name, type and size, and whether the link is still open. |
Items, menu and stock
Find itemsfind_item | Read only | Find a product or service in the catalogue by name (English or Arabic), SKU or id. |
List low stocklist_low_stock | Read only | Every stocked item at or below its reorder point, with how many are left and how many to order. |
Get stock valueget_stock_value | Read only | What the stock is worth right now, in total and optionally per warehouse, together with the balance of account 1300 Inventory so a mismatch is visible. |
Get recipeget_recipe | Read only | What a dish is made of (الوصفة / المكونات): each ingredient with its quantity per one sold, the waste %, its unit, and the cost per plate worked out from what the ingredients are worth today. |
List option groupslist_modifier_groups | Read only | The menu option groups (خيارات الطلب / الإضافات), e.g. |
List menu categorieslist_item_categories | Read only | The menu's categories (Drinks, Mains, Desserts): id, English and Arabic name, parent, whether it is active, and how many items are in each. |
Create itemcreate_item_draft | Changes data | Propose a new product or service for the catalogue (صنف جديد). |
Update itemupdate_item_draft | Changes data | Propose a change to an existing item: the price above all, but also the name, the unit, the reorder point, whether and where it shows on the till (sell_on_till, till_sort), its photo (image_url), or making it inactive. |
Adjust stockadjust_stock_draft | Changes data | Propose a stock correction: a physical count that differs from the books (COUNT), goods damaged, expired or stolen (WRITE_OFF), or stock that existed before the company started using this system (OPENING). |
Add item photoupload_item_image_from_url | Changes data | Put a photo on a product (صورة الصنف) from a public image link. |
Set recipeset_recipe_draft | Changes data | Write what a dish is made of (الوصفة / المكونات): the ingredients, how much of each goes into ONE sold, and the waste %. |
Create or edit option groupset_modifier_group_draft | Changes data | Create or change a menu option group: a question the till asks when a dish is tapped ("Spice level / الحرارة": Mild, Spicy), with the price each choice adds. |
Attach option group to itemsattach_modifier_group_draft | Changes data | Offer an existing option group on more dishes, or stop offering it, without restating its options: "put Spice level on the falafel wrap too". |
Edit menu categoryupdate_item_category_draft | Changes data | Change one menu category the way the Items page does: rename it, set or clear its Arabic name, move it under a parent (or to the top with parent null), or switch it off or on. |
Remove item photoremove_item_image_draft | Changes data | Take the photo off one menu item, so the till and the ordering page show its name only. |
People and leave
Get leave balanceleave_balance | Read only | How much leave somebody has left: annual, sick and unpaid, with what has been taken and what is carried over. |
See who is offwho_is_off | Read only | Who is away between two dates, and on what kind of leave. |
Find leave requestsfind_leave_requests | Read only | Leave requests, newest first. |
List leave typeslist_leave_types | Read only | The kinds of leave this company has, with their codes. |
List payroll runslist_payroll_runs | Read only | The payroll runs (مسيرات الرواتب), newest pay date first: number, period, pay date, status (DRAFT, POSTED, PAID), how many payslips and the gross and net totals. |
Get payslipget_payslip | Read only | One payslip (قسيمة راتب): the employee, the run and its period and status, gross, deductions, net, notes, and whether it has been paid. |
Update employeeupdate_employee_draft | Changes data | Propose a change to an existing employee, salary, role, department, contact details. |
Book leavebook_leave_draft | Changes data | Propose time off. Resolve relative dates yourself ("next Thursday" → a YYYY-MM-DD) rather than passing them through. |
Approve or decline leavedecide_leave_draft | Changes data | Propose approving or declining somebody's leave request. |
Create payroll runcreate_payroll_run_draft | Changes data | Start a payroll run as a DRAFT (مسير رواتب مسودة): one payslip per active employee (or only employee_ids) for the period, at their base salary plus active allowances, for checking and editing on the Payroll page. |
Record attendancerecord_attendance_draft | Changes data | Record attendance days and salary allowances, as the Attendance page does (الحضور والبدلات). |
Terminate employeeterminate_employee_draft | Changes data | Mark an employee as having left (إنهاء خدمة), as the Employees page does: status TERMINATED as of now, and their sign-in sessions for this company end at once. |
Purchasing and expenses
Find billsfind_bill | Read only | Find a vendor bill by number, id, or list recent for a vendor name. |
Find expensesfind_expense | Read only | Find an expense by number or id. |
Find vendorsfind_vendor | Read only | Find a vendor by name fragment, email, or id. |
Record expensecreate_expense_draft | Changes data | Stage an expense draft for user approval. |
Record purchase billcreate_purchase_draft | Changes data | Turn what is running low into purchase orders. |
Create billcreate_bill_draft | Changes data | Enter a supplier bill (فاتورة مورّد) exactly as it came in: any supplier, any lines, with VAT. |
Post billpost_bill_draft | Changes data | Post a DRAFT supplier bill: the goods are received (every stocked line goes into stock at the bill's price, and becomes that item's last purchase price) and the bill is booked to the ledger as owed to the supplier. |
Set item suppliersset_item_suppliers_draft | Changes data | Say who we buy each product from and what it costs us (مورّد الصنف وتكلفته): one row per product and supplier, up to 100 at once. |
Records and the activity log
List recordslist_records | Read only | List or browse records of one kind: employees, customers, vendors, invoices, bills, expenses, quotations, payments, items (the product and service catalogue, the price list, not what is on the shelf; find_item and get_st... |
Add note to recordadd_note | Changes data | Leave a note on a record: an expense, an invoice, a bill, a customer, an employee, anything with a document number. |
Find records by amountfind_by_amount | Read only | Is a payment somebody just showed you ALREADY RECORDED? |
List recent changeslist_changes | Read only | The activity log: every change made in this company with who, when, through which connection and tool, which record, and the fields before and after. |
Preview an undoplan_undo | Read only | What undoing ONE change (an audit_id from list_changes) would do, before doing it: which fields go back to what, or that a deleted record comes back with its lines, and whether it is allowed. |
Import customers, vendors or employeesenter_records | Changes data | Add people and companies to this workspace: staff, customers, suppliers. |
Update customer or vendorupdate_party_draft | Changes data | Propose a change to a customer or supplier already on file, email, phone, address, VAT or CR number, the trading name, or notes. |
Delete recorddelete_record_draft | Changes data, asks first | Delete a DRAFT invoice, supplier bill, expense or quotation, a product (kind "item", حذف صنف), a menu option group (kind "modifier_group", once no dish offers it), or a menu category (kind "item_category", حذف فئة, by it... |
Undo changesundo_changes_draft | Changes data, asks first | Take back changes, newest first, through the product's own undo: one change (audit_ids from list_changes), several, or everything in a window ("everything you did in the last hour": who this_connection, last_minutes 60). |
Reports
Get financial snapshotget_balance_sheet_snapshot | Read only | Revenue, expenses and net profit from the GENERAL LEDGER, plus open receivables and payables, plus what is being held for CUSTOMERS, overpayments, deposits and refunds not yet paid back, named customer by customer. |
Audit the ledgeraudit_ledger | Read only | READ THE GENERAL LEDGER ITSELF and report what is wrong with it. |
Find journal entryfind_journal_entry | Read only | Read ONE journal entry and its lines: every account with its debit and its credit, the date, the memo, what document it came from, and whether it has already been reversed (and by which entry). |
Summarize recordssummarize_records | Read only | Count and total a collection without listing it. |
Get till salesget_pos_sales | Read only | What the till sold over a date range, in the company's own time zone: orders, gross, discounts, VAT, refunds, average ticket, and the same broken down by item, category, hour of day, order type (dine in, takeaway, delive... |
Get reportget_report | Read only | A financial report as DATA, computed from the ledger by the same service as the Reports page, so the figures match the screen and the PDF: profit_and_loss (revenue and expenses by account, net) and cash_flow for a period... |
Schedule the WhatsApp sales digestset_scheduled_report_draft | Changes data | The sales digest sent to WhatsApp on a schedule, as on Settings > WhatsApp > Reports: create one (daily or weekly, a time HH:mm in the company's time zone, the WhatsApp numbers it goes to), change one, or stop one (stays listed, switched off). |
Sales and online ordering
Find invoicesfind_invoice | Read only | Find an invoice by number (e.g. |
Find customersfind_customer | Read only | Find a customer by name fragment, email, phone number, or id. |
List overdue invoiceslist_overdue_invoices | Read only | List currently overdue invoices, SENT or PARTIAL with a due_date in the past. |
Get online ordering linkget_ordering_link | Read only | The company's public online ordering page: its link (built on the address this connection uses), a QR code for it as a PNG data URL (for a car window or a counter), whether it is live, whether it is taking orders right n... |
Get ordering website settingsget_website_settings | Read only | Everything set on the online ordering page: on or off, title, tagline, announcement, about text (English and Arabic), which sections show and in what ORDER (hero, announcement, featured, menu, about, hours, contact), the... |
List online orderslist_online_orders | Read only | Orders placed on the online ordering page: who (name, phone), what, total, how they collect it (pickup, car with the car number, delivery with the address), status (PENDING waiting to be accepted, ACCEPTED with the ready... |
Get delivery settingsget_delivery_settings | Read only | How delivery from the online ordering page works for this company: on or off and whether it is taking deliveries right now, the restaurant's location (and a map link), the rules (delivery hours or the opening hours, maxi... |
Quote a delivery feequote_delivery | Read only | What a customer at an address would be quoted for delivery, exactly as the ordering page computes it: which zone, the fee (or free), the minimum and whether the food meets it, the small-order fee, the time, the distance, or why delivery is refused there. |
Find credit notesfind_credit_note | Read only | Look up credit notes by number (CN-...), by the invoice they were raised against, by customer name or id, or by status (DRAFT, OPEN, CLOSED, VOID). |
Create invoicecreate_invoice_draft | Changes data | Stage an INVOICE for user approval, a demand for payment for work already agreed or delivered. |
Create quotationcreate_quotation_draft | Changes data | Stage a QUOTATION for user approval, a priced offer to a customer for work not yet agreed. |
Update ordering websiteupdate_website_draft | Changes data | Change the online ordering page, in one change: switch it on or off (enabled), the title, tagline, announcement banner and about text in English and Arabic, which sections show and their ORDER (sections: the visible ones... |
Open or pause online orderingset_online_ordering_status_draft | Changes data | Pause online orders because the kitchen is busy ("pause for 30 minutes"), or resume them. |
Set restaurant locationset_restaurant_location_draft | Changes data | Set where the restaurant is, for distance rings and the maximum delivery distance: a full Google Maps link the owner pasted (the long one; a short maps.app.goo.gl link cannot be read without calling Google, so ask them t... |
Set delivery zonesset_delivery_zones_draft | Changes data | Set the delivery zones: AREA zones name Bahrain areas (and optionally block numbers), RING zones are distances from the restaurant (from_km to to_km; needs the restaurant location). |
Set delivery rulesset_delivery_rules_draft | Changes data | The rules around delivery: switch it on or off; its own hours (seven days, Sunday first; or hours_every_day with closed_days) or same_as_opening_hours; the furthest it goes (max_km, null for no cap); what happens below a... |
Update online order statusset_online_order_status_draft | Changes data | Move one order from the online ordering page along, exactly as the Online orders page and the till do: accept it (rings it up at the till and promises a ready time; ready_in_minutes, default the page's preparation time),... |
Set ordering page coverset_website_cover_from_url | Changes data | Put a picture from a public link (JPEG, PNG or WebP, the restaurant's own photo) at the top of the online ordering page, as Settings > Online ordering > Cover does, or remove the cover (remove: true). |
Edit draft invoiceupdate_invoice_draft | Changes data | Edit a DRAFT invoice: its customer, issue and due dates, notes, discount, VAT rate or lines. |
Email invoice to customersend_invoice_email_draft | Changes data | Email an issued invoice to its customer, at the email on the customer's record, with the invoice PDF attached (the same PDF the dashboard downloads, in the customer's document language unless language says otherwise). |
Email quotation to customersend_quotation_email_draft | Changes data | Email a quotation to its customer, at the email on the customer's record, with the quotation PDF attached. |
Mark quotation sent, accepted or rejectedset_quotation_status_draft | Changes data | Move a quotation along: sent (from DRAFT), accepted (the customer agreed, from SENT) or rejected (from SENT, and reason is required: the customer's reason, in the user's words). |
Convert quotation to invoiceconvert_quotation_to_invoice_draft | Changes data | Turn a SENT or accepted quotation into a DRAFT invoice with the same customer, lines, discount and VAT, due in 30 days, exactly as the dashboard's Convert does. |
Draft credit notecreate_credit_note_draft | Changes data | Draft a credit note against an issued invoice, for the same customer, currency and VAT rate: the whole invoice (leave lines and amount out), chosen lines (lines: each the invoice line's position, optionally with a smalle... |
The web
Read a web pageread_website | Reads a web page | Read a company's public web page and pull out its details, address, phone, email, CR number, logo. |
Workspace memory
Recall workspace memoryrecall | Read only | Read the full text of one of the notes or procedures listed under "What you can look up". |
Remember a factremember | Changes data | Write down something the user told you that will still be true next week, how their business works, a term you would otherwise have to ask about again, or how this person likes to work. |
Forget a factforget | Changes data | Delete a memory by name, when the user says it is wrong or no longer applies. |
Workspace, setup and the till
Get document designget_document_design | Read only | Read how this workspace's invoices, quotations and thermal till receipt are designed right now: the brand accent colour, whether a logo is set, the document language (en/ar/both) and paper size, and the receipt's tagline... |
Get setup progressonboarding_status | Read only | Where this company is in getting set up, and what is left. |
Get workspace layoutget_layout | Read only | How this company's screens are laid out: every row of the dashboard side menu with its key, English and Arabic label, the heading it sits under, and whether it is hidden; the custom order; and the till view (till_photos:... |
List payment methodslist_payment_methods | Read only | How this company's till is paid: every payment method (cash, card, BenefitPay, bank transfer, and any extra card acquirer), whether it is switched on, which bank account its money settles to, the acquirer or receiving bank, and whether the till can use it. |
Get till featuresget_till_features | Read only | What this company's tills may do after a sale: the Orders list and how far back it reaches (history_days 1, 3 or 7), reprinting receipts and kitchen tickets, taking payment later on an unpaid order, editing orders, voids... |
List cash drawer sessionslist_cash_sessions | Read only | The tills' cash drawer shifts, newest first: which till, who opened it and when, the opening float, and for a closed one who closed it, the cash counted, the cash expected (float + cash sales - cash refunds) and the difference (negative is short). |
List tillslist_tills | Read only | The till tablets of this company: name, five-digit code, whether it is online, and whether it was removed. |
Live till statusget_pos_live | Read only | The restaurant's till system right now: every till tablet (online or offline, last seen, app version, battery, the printers it prints to), the print stations (browsers at the counter with USB printers; which one is the M... |
List kitchen stationslist_kitchen_stations | Read only | The kitchen's sections that each print their own ticket (for example pastries, broasted, shawarma): each station's name in English and Arabic, whether it is on, whether it takes everything not assigned elsewhere, and the... |
Get design rulesget_design_contract | Read only | Everything needed to write this company's invoice, quotation, credit-note or till receipt design FROM SCRATCH as code: the HTML template language (placeholders like {{doc.number}}, {{#each lines}}, helpers money/date/per... |
Get sample designsget_design_samples | Read only | The FULL SOURCE of working designs to learn from or start from: the built-in default invoice and receipt rewritten in the design language, polished variants (minimal, bilingual Arabic-first, branded with logo; receipt co... |
List document designslist_document_designs | Read only | Every saved design version of this company, newest first per kind: version, status (DRAFT, ACTIVE, ARCHIVED), whether it passed compliance and what is missing, and a preview image link (PNG; PDF too for A4 documents) the owner can open. |
Check a designcheck_document_design | Read only | Validate and compliance-check a design WITHOUT saving it: reports syntax errors with their exact location, sandbox violations (scripts, event attributes, external URLs, @import), and every REQUIRED element that is missin... |
Update company profileupdate_company_profile_draft | Changes data | Propose a change to THIS workspace's own company details, the ones printed on its invoices and quotations. |
Design invoices and receiptsdesign_documents_draft | Changes data | Design this workspace's documents and its thermal till receipt - the invoice/quotation PDF and the receipt a customer takes away. |
Update workspace layoutupdate_layout_draft | Changes data | Change the company's side menu or till view, for everyone in the company: hide rows nobody uses ("hide payroll from the menu"), show them again, put rows first, or make every till names only (till_photos false), with pho... |
Update company settingsupdate_organization_draft | Changes data | Change what kind of business this is, which products are switched on, or the company name, locale and timezone. |
Invite team memberinvite_member_draft | Changes data | Email somebody an invitation to join this company with a role (Owner, Admin, Finance, Engineer, Sales, Designer, Viewer). |
Finish setupfinish_onboarding_draft | Changes data | Mark the welcome screen as finished for this company, as pressing a door on it does: from then on signing in lands on the dashboard. |
Configure payment methodsconfigure_payment_methods_draft | Changes data | Set how the till is paid, in one change: switch cash, card, BenefitPay or bank transfer on or off, set a percentage on a method (percent + percent_mode: a provider fee, or a surcharge added to the bill), name the card ac... |
Set till featuresset_till_features_draft | Changes data | Switch the till's after-sale features on or off for every till in the company, in one change: history, reprint_receipt, reprint_kitchen, pay_later, edit_orders, void_refund, the history window (history_days: 1 today, 3 o... |
Set kitchen stationsset_kitchen_stations_draft | Changes data | Set up the kitchen stations and which menu each one prints. |
Send test printsend_test_print_draft | Changes data | Print a test page on one printer: to is 'receipt' (the main counter's receipt printer), 'kitchen' (the whole-order kitchen printer when there are no stations), a kitchen station's name, or a till tablet's name or five-digit code. |
Reprint orderreprint_order_draft | Changes data | Print an order's paper again: what is 'receipt' (marked COPY), 'kitchen' (the whole ticket, marked REPRINT) or a kitchen station's name (only that station's dishes). |
Set print routingset_print_routing_draft | Changes data | Choose where paper goes: main_station names the print station (a browser reported by get_pos_live) that prints for every till, or null to let whichever is running print; receipts_at_main whether the customer's receipt pr... |
Print a documentprint_job_draft | Changes data | Retry a failed print job (it goes back in the queue and the print station prints it), or cancel one that is failed or still waiting so it never prints. |
Create Windows till codecreate_windows_till_code_draft | Changes data | Make a one-time TILL CODE (like K7QM-4XPA, valid 24 hours, single use) that logs a Windows PC in as this restaurant's MAIN till: it opens straight to the till, is the main print station and takes incoming orders. |
Reload, restart, update or rename a tillsend_device_command_draft | Changes data | Tell one till tablet to reload its screen (for "the till is stuck"), restart the app, or update to the newest released build, exactly as the device card's buttons do; or rename it. |
Update memberupdate_member_draft | Changes data | Change what somebody who can sign in to this company may do, or withdraw an invitation that has not been accepted. |
Draft document designdraft_document_design | Changes data | Save a design as a new DRAFT version (it prints nothing until approved). |
Approve document designapprove_document_design_draft | Changes data | Put a DRAFT design version into force: from now on that document (invoice PDFs and emails, quotations, credit notes, or the till receipt online and offline) prints in it. |
Revert document designrevert_document_design_draft | Changes data | Go back to an earlier design version (by version number) or to the built-in design (to: "default") for one kind of document. |
Troubleshooting
- "Connected to the wrong company": disconnect, reconnect, and choose the company on the consent screen, or use
https://railit.ai/<company>/mcp. - A change is refused for read-only access: the connection was granted read only. Disconnect and reconnect with full access, as an Owner or Admin.
- A till tool says the till is off: the owner switches the till on in Railit under Settings, Products.
- Something looks wrong: every change is in Railit under Activity, with the connection that made it, and can be undone there.
Support and privacy
Email [email protected]; a person reads every message. How connector data is handled is in the privacy policy; the terms are at railit.ai/terms.