Loyverse MCP server for AI agents

Live

BEARER TOKEN

POINT OF SALE

Accounting & Finance

Loyverse gives your agent point-of-sale data and control in your Loyverse account: read receipts, shifts, stores, and stock levels, manage items, customers, discounts, and taxes, record sales and refunds, and set up webhooks.

  • Per-user credentials: each call uses the actual user's access token, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Loyverse
agent · Acme Q3
Run
How many sales did the Downtown store ring up yesterday?
S
loyverse_receipts_list
330ms
Retail ops agent
The Downtown store recorded 86 sales receipts yesterday, plus 2 refund receipts.
Sources: Loyverse receipts, 1 store
loyverse
88 receipts
18:29
Message Claude...

Tools your point of sale agent reaches for on Loyverse, scoped per user.

CALL ANY TOOL
56 tools for point of sale in Loyverse: list and read receipts, shifts, stores, and inventory, create and update items, customers, discounts, and taxes, record sales and refunds, and manage webhooks.
loyverse_categories_list
List categories
List item categories. Returns per category its id, name and color. Results are paged: pass the returned cursor to get the next page.
Parameters
Name
Type
Required
Description
categories_ids
string
Optional
Comma-separated category IDs to return. Example: 3f1b2c4d-5e6f-4a7b-8c9d-0e1f2a3b4c5d.
cursor
string
Optional
Cursor from the previous response's cursor field, to get the next page. Example: eyJsYXN0SWQiOiIxMjM0In0=.
limit
integer
Optional
Maximum number of results to return, 1 to 250. Defaults to 50. Example: 50.
show_deleted
boolean
Optional
Include deleted records. Defaults to false. Example: false.
loyverse_category_delete
Delete category
loyverse_category_get
Get category
loyverse_category_upsert
Upsert category
loyverse_customer_delete
Delete customer
loyverse_discount_get
Get discount
loyverse_discount_upsert
Upsert discount
loyverse_discounts_list
List discounts
loyverse_inventory_list
List inventory
loyverse_inventory_update
Update inventory
loyverse_item_delete
Delete item
loyverse_item_get
Get item
loyverse_modifier_delete
Delete modifier
loyverse_modifier_get
Get modifier
loyverse_modifier_upsert
Upsert modifier
loyverse_modifiers_list
List modifiers
loyverse_pos_device_get
Get pos device
loyverse_pos_devices_list
List pos devices
loyverse_receipt_create
Create receipt
loyverse_receipt_refund
Refund receipt
loyverse_shift_get
Get shift
loyverse_shifts_list
List shifts
loyverse_supplier_delete
Delete supplier
loyverse_supplier_get
Get supplier
loyverse_supplier_upsert
Upsert supplier
loyverse_suppliers_list
List suppliers
loyverse_variant_delete
Delete variant
loyverse_variant_get
Get variant
loyverse_variant_upsert
Upsert variant
loyverse_variants_list
List variants

For more tools, view docs.

Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Loyverse tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["loyverse"], toolNames: [
    "loyverse_receipts_list",
    "loyverse_inventory_list",
    "loyverse_stores_list"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "Find yesterday's receipts for the Downtown store and check the stock of the top-selling item" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["loyverse"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "Find yesterday's receipts for the Downtown store and check the stock of the top-selling item" }],
  tools,
});

// Execute the tool call with the user's vaulted Loyverse access token
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["loyverse"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "Find yesterday's receipts for the Downtown store and check the stock of the top-selling item" }],
  tools,
});

// Tool call runs with the user's vaulted Loyverse access token
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["loyverse"] }, pageSize: 100,
});

const agent = new Agent({
  name: "retail_ops_agent",
  model: "gemini-2.5-pro",
  instruction: "Loyverse tools scoped to this user",
  tools,
});

await agent.run("Find yesterday's receipts for the Downtown store and check the stock of the top-selling item");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Loyverse tool. Click to copy, paste into your agent, done.
Sales and receipts
Copy the prompt
Copied
List yesterday's sales receipts for the Downtown store.
Copy the prompt
Copied
Show receipt 1-1042 with its line items.
Copy the prompt
Copied
Show my cash register shifts from this week.
Items and stock
Copy the prompt
Copied
Show stock levels for all variants at the Downtown store.
Copy the prompt
Copied
Create an item called Iced Latte with a variant priced at 4.50.
Copy the prompt
Copied
Set the stock of SKU LATTE-12 to 40 at the Downtown store.
Customers and setup
Copy the prompt
Copied
Find the customer with email jane@example.com.
Copy the prompt
Copied
Create a 10% discount called Staff.
Copy the prompt
Copied
Create a webhook for receipt events.
SEE HOW AUTH WORKS
Each user connects their own Loyverse access token once, and Scalekit sends it with every call. Tokens stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Loyverse
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Loyverse
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Loyverse
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Loyverse
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other accounting and finance connectors.
GTM and RevOps Teams
Revenue forecast commentary
Pulls open pipeline from Salesforce and HubSpot, calculates coverage against quota, flags at-risk stages, posts commentary to Slack, and logs every snapshot to Google Sheets.
GTM and RevOps Teams
CRM AI agent
Reads the Granola transcript after every call, extracts next steps and updates the HubSpot record, drafts the follow-up in Gmail, and confirms in Slack, all on the rep's own delegated OAuth.
Test other agents
See the same per-user auth pattern across other accounting and finance connectors.
GTM
Revenue forecast agent
Score pipeline coverage against quota across Salesforce and HubSpot, post forecast commentary to Slack, log snapshots to Sheets.
GTM
CRM AI agent
Turn each Granola call transcript into a HubSpot record update, a drafted Gmail follow-up, and a Slack recap.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Loyverse access token looks fine in a demo. In production every receipt and stock change looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared token
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Loyverse today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Loyverse as the user or through a shared token?
As the user. Each user connects their own Loyverse access token once, and Scalekit sends it with every call. Every receipt, stock change, and delete in your audit trail is attributed to that user, not a shared service account.
Where is the Loyverse access token stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new access token. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Loyverse?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the list and get tools without loyverse_receipt_refund, loyverse_inventory_update, or the delete tools such as loyverse_item_delete. 11 of the 56 tools are destructive. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Loyverse access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Can the agent change stock levels?
Yes. loyverse_inventory_update sets the stock level of item variants at stores in one batch, and loyverse_inventory_list reads the levels. Leave loyverse_inventory_update out of toolNames to keep the agent read-only on stock.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""loyverse"": {
""url"": ""https://mcp.scalekit.com/loyverse"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.loyverse]
url = ""https://mcp.scalekit.com/loyverse""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""loyverse"": {
""url"": ""https://mcp.scalekit.com/loyverse"",
""type"": ""http""
}
}
}