Set up Loyverse in Metorial for Claude, ChatGPT and Cursor
Share Loyverse with your team in Claude, ChatGPT and Cursor through Metorial: OAuth or personal access token sign-in, 36 tools (19 read-only).
To give your team Loyverse in Claude, ChatGPT, Cursor and other AI clients, an admin shares the Loyverse integration in a Metorial portal, and each person signs in to Loyverse with their own account. Agents can manage a cloud-based point-of-sale system for retail stores, cafes, and restaurants. The integration has 36 tools, 19 read-only, 10 write and 7 destructive, plus 5 triggers.
What you'll learn
- How an admin shares Loyverse in a portal and how each person connects
- The 19 OAuth scopes Loyverse can request, and what each one allows
- How to keep the 19 read-only tools and reject the other 17
Before you start
- A portal with at least one access group
- An account with Loyverse for each person who connects
- For the CLI steps: the Metorial CLI, signed in to your portal
Sign-in methods
| Method | Type | What a person provides |
|---|---|---|
| Personal Access Token | API token | token |
| OAuth (default) | OAuth | Signs in to Loyverse |
The portal and metorial setup use OAuth unless someone picks another method.
Personal Access Token
To connect, a person enters:
token: Loyverse Personal Access Token created in the Back Office under Access Tokens
OAuth
People sign in to Loyverse and approve the scopes you allow. The integration can request:
| Scope | Name | What it allows |
|---|---|---|
CUSTOMERS_READ | Customers Read | Read customer records |
CUSTOMERS_WRITE | Customers Write | Create, update, and delete customer records |
EMPLOYEES_READ | Employees Read | Read employee information |
ITEMS_READ | Items Read | Read items, categories, modifiers, and variants |
ITEMS_WRITE | Items Write | Create, update, and delete items, categories, modifiers, and variants |
INVENTORY_READ | Inventory Read | Read inventory levels |
INVENTORY_WRITE | Inventory Write | Update inventory levels |
MERCHANT_READ | Merchant Read | Read merchant account information |
PAYMENT_TYPES_READ | Payment Types Read | Read payment type configurations |
POS_DEVICES_READ | POS Devices Read | Read POS device configurations |
POS_DEVICES_WRITE | POS Devices Write | Create, update, and delete POS devices |
RECEIPTS_READ | Receipts Read | Read sales receipts |
RECEIPTS_WRITE | Receipts Write | Create sales receipts and refunds |
SHIFTS_READ | Shifts Read | Read shift data |
STORES_READ | Stores Read | Read store information |
SUPPLIERS_READ | Suppliers Read | Read supplier records |
SUPPLIERS_WRITE | Suppliers Write | Create, update, and delete supplier records |
TAXES_READ | Taxes Read | Read tax configurations |
TAXES_WRITE | Taxes Write | Create, update, and delete tax configurations |
Use your own Loyverse OAuth app
With your own OAuth app, people see your company's name on the Loyverse consent screen, and the client ID and secret belong to you.
Start the credentials in Metorial
In the dashboard, select Settings, then Organization Settings. Under Integrations and MCP, select Provider Auth, then Create Auth Credentials. Choose Loyverse and copy the Redirect URI.
Register the app with Loyverse
Create an OAuth app or client in Loyverse and add the redirect URI from Metorial as its redirect or callback URL.
Finish in Metorial
Copy the app's client ID and client secret. Back in Metorial, enter a Name, the Client ID and the Client Secret, review Scopes, and select Create. Then pick these credentials for the Loyverse integration.
Admin: share Loyverse in a portal
In the dashboard
Open Shared Resources
Open Workforce, choose the portal, and select Shared Resources under Access.
Share a new integration
Select Share a Resource, then New Integration, and choose Loyverse. Under Auth Method, keep OAuth or pick another. For how members connect, choose Each person connects, so everyone signs in to Loyverse as themselves.
Limit the tools
Under Tool Filters, set the write and destructive groups to Reject if agents should only read from Loyverse.
Choose who gets it
Add the access groups that should see Loyverse. When a person asks for access from the portal, the request appears under Access Requests.
With the CLI
The CLI cannot create the per-user Loyverse integration. Once it exists, check which groups have it:
Employee: connect Loyverse
In the portal
Open Loyverse in the catalog
Sign in to your portal and open Loyverse. The status reads Available.
Authenticate
Under Quick setup, select Authenticate. A Loyverse sign-in tab opens. Sign in and approve the permissions listed.
Confirm
The status changes to Configured. If it later reads Needs reconnect, select Reconnect and sign in again.
With the CLI
catalog search prints the catalog item ID. metorial setup uses OAuth. To connect with Personal Access Token instead, find its ID with metorial catalog get <catalog-item-id> and add --auth-method <auth-method-id>.
Add it to your AI client
metorial install adds your Loyverse connection to a local MCP client such as Claude Code, Cursor or Codex. metorial list prints the integration ID and metorial client list the client identifiers.
For a client that takes a server URL, such as ChatGPT, metorial install custom <integration-id> creates an installation token and shows the endpoint details.
Make it read-only
Open the integration's Tool Filters and set the write and destructive groups to Reject. Agents keep the 19 read-only tools, such as get_item and list_items, and lose the 10 write tools, such as create_refund or create_receipt, and the 7 destructive tools, such as delete_tax or delete_item.
Employees see the result on the integration's page in the portal under Tool access. For the full walkthrough, see Tool permissions.
Check it worked
metorial tools lists the 36 tools, minus any you rejected. get_merchant takes no input. It retrieves account-level merchant information for the connected Loyverse account, including business name, email, country, and currency.
To see every input a tool takes, run metorial schema <integration-id> <tool-key>.
Tools
Read-only tools (19)
list_discounts: Retrieve discount configurations.get_receipt: Retrieve a single sales or refund receipt by its receipt number, including full line items (with line item IDs needed for refunds), payment details, taxes, discounts, and modifiers. NeedsreceiptNumber.list_shifts: Retrieve closed cash register shifts, newest first, including open/close times, cash drawer totals, sales totals, and the employees who opened and closed them.list_payment_types: Retrieve all configured payment types (e.g., cash, card, custom).list_categories: Retrieve item categories.list_modifiers: Retrieve item modifiers (e.g., "Size" with options Small/Medium/Large).list_employees: Retrieve employee records.get_item: Retrieve a single item (product) by its ID, including full variant details, pricing, and configuration. NeedsitemId.list_stores: Retrieve all store locations.list_items: Retrieve items (products) from the Loyverse catalog, newest first.list_customers: Retrieve customer records from Loyverse, newest first.list_taxes: Retrieve tax configurations.list_suppliers: Retrieve supplier records used for inventory sourcing.get_merchant: Retrieve account-level merchant information for the connected Loyverse account, including business name, email, country, and currency.get_inventory: Retrieve inventory (stock) levels for item variants across store locations.list_receipts: Retrieve sales and refund receipts (transactions) from Loyverse, newest first.list_variants: Retrieve item variants (the sellable units of items, each with its own SKU, barcode, and price).get_customer: Retrieve a single customer by ID, including contact details, visit history, total spent, and loyalty points balance.list_pos_devices: Retrieve POS devices and their store assignments and activation status.
Write tools (10)
create_refund: Create a refund receipt for line items of an existing sales receipt. NeedsreceiptNumberandlineItems.create_or_update_tax: Create a new tax rate or update an existing one.create_receipt: Create a new sales receipt (transaction) in a store. NeedsstoreId,lineItemsandpayment.create_or_update_supplier: Create a new supplier or update an existing one.update_inventory: Set the stock level of item variants at store locations. NeedsinventoryLevels.create_or_update_customer: Create a new customer or update an existing one.create_or_update_category: Create a new category or update an existing one.create_or_update_item: Create a new item (product) or update an existing one in the catalog.create_or_update_discount: Create a new discount or update an existing one.create_or_update_modifier: Create a new modifier or update an existing one.
Destructive tools (7)
delete_discount: Delete a discount by its ID. NeedsdiscountId.delete_tax: Delete a tax configuration by its ID. NeedstaxId.delete_item: Delete an item (product) from the catalog by its ID. NeedsitemId.delete_category: Delete a category by its ID. NeedscategoryId.delete_supplier: Delete a supplier record by its ID. NeedssupplierId.delete_customer: Delete a customer record by its ID. NeedscustomerId.delete_modifier: Delete a modifier by its ID. NeedsmodifierId.
Triggers
Loyverse has 5 triggers, which fire on events in Loyverse:
shift_events: Triggers when a shift is created (closed and synced to the Back Office).inventory_events: Triggers when inventory (stock) levels change.item_events: Triggers when items (products) are created, updated, or deleted.receipt_events: Triggers when a receipt (sale) is created or updated.customer_events: Triggers when a customer record is created, updated, or deleted.
Next steps
- Claude Code, Cursor, Codex and ChatGPT: connect each client to your portal and use Loyverse there
- Create custom OAuth credentials: the Provider Auth screens in more detail
- Tool permissions: tool filters and what employees see
- Loyverse on metorial.com: the integration overview