Summary
Moka POS, the Indonesian point of sale of GoTo: outlets, sales summary and reports by item, category, payment method, discount, tax and staff, transactions with line items, invoices, the item library with variants and prices, stock summaries, purchase orders, customers and loyalty. Signed in with your own Moka app.
Guided setup
Connect Moka POS to Gemini in 2 minutes
Start a free trial on AnythingMCP Cloud, connect Moka POS in the guided setup, then add your MCP URL to Gemini. No code and no server to run.
No credit card · 7-day trial · Self-host alternative available
Try asking
Example prompts for Moka POS
Click any prompt to copy it. Paste into Claude, ChatGPT, Cursor, Gemini, Copilot or OpenClaw to run it against this connector.
Claude is AI and can make mistakes. Please double-check responses.
💡 No install? Use cloud.anythingmcp.com directly. Sign in, click Connectors → Moka POS, paste the client ID and client secret of your Moka app, click Authorize with Provider and sign in to Moka as the owner of the business, mint an MCP API key and you're done. No Docker, no
git clone, no local server.
Moka POS + Gemini
Moka POS, the Indonesian point of sale of GoTo: outlets, sales summary and reports by item, category, payment method, discount, tax and staff, transactions with line items, invoices, the item library with variants and prices, stock summaries, purchase orders, customers and loyalty. Signed in with your own Moka app.
Prerequisites
See the full setup instructions baked into the connector (visible in the in-app store when you select the connector). The required environment variables for this connector are:
MOKA_CLIENT_ID, MOKA_CLIENT_SECRET
Step 1 — Get credentials
Setting up takes about 10 minutes.
- Open the Moka Developer Platform at https://api.mokapos.com/users/sign_in and sign in with a Moka Backoffice account (the owner account of the business is the simplest choice).
- Create an application. As its redirect URL enter
https://cloud.anythingmcp.com/api/mcp-oauth/callbackon AnythingMCP Cloud, or<your AnythingMCP URL>/api/mcp-oauth/callbackwhen you host AnythingMCP yourself. It must match character for character. - Give the application the permissions
profile,library,report,transactionandcustomer. The connector asks for exactly these five; Moka refuses the sign-in when the application lacks one of them. - Copy the client ID and client secret of the application into
MOKA_CLIENT_IDandMOKA_CLIENT_SECRETand install the connector. - On the connector page click Authorize with Provider, sign in to Moka as the owner of the business and allow the permissions.
An application for your own business is a private app: it stays in the status In Review in the developer dashboard and works anyway. Only an app that should appear in the Moka App Market for other merchants needs Moka to publish it ([email protected]). The access token lasts about 180 days and is renewed with the refresh token automatically.
Where to start: moka_pos_get_profile returns the business_id and the outlet_ids every other tool needs. moka_pos_get_business and moka_pos_list_outlets add the details. Almost everything in Moka belongs to one outlet, so ask which outlet is meant when there are several.
Sales reports (per outlet, start and end as DD/MM/YYYY): moka_pos_get_sales_summary for the totals of a period, moka_pos_get_item_sales, moka_pos_get_category_sales and moka_pos_get_modifier_sales for what was sold, moka_pos_get_discount_sales and moka_pos_get_tax_sales, moka_pos_get_payment_methods_report for cash, card, invoice and other payment types, moka_pos_get_collector_sales and moka_pos_get_server_sales per staff member, and moka_pos_get_sales_type_report per sales type. For a comparison of periods call the same report once per period.
Transactions: moka_pos_list_latest_transactions returns single payments with their line items, newest first, filtered with since and until as Unix epoch seconds; while completed is false, call again with a lower until. moka_pos_get_transactions_report is the older report by date that Moka no longer supports. Sales on account are in moka_pos_list_invoices and moka_pos_get_invoice.
Library: moka_pos_list_categories, moka_pos_list_items (variants carry SKU, price and stock), moka_pos_list_modifiers, moka_pos_list_discounts, moka_pos_list_taxes, moka_pos_list_sales_types and moka_pos_list_promos. moka_pos_create_item and moka_pos_update_item write items; moka_pos_delete_item is installed switched off.
Stock: moka_pos_list_item_stock_summaries shows beginning, purchase order, sales, transfer, adjustment and ending quantities per variant for a period. moka_pos_list_purchase_orders and moka_pos_get_purchase_order read purchase orders. moka_pos_adjust_item_stock records a stock count: it sets the absolute quantity of each variant.
Customers and loyalty: moka_pos_list_customers (add include_loyalty for point balances), moka_pos_list_loyalty_programs and moka_pos_list_loyalty_point_activities. The connector only reads loyalty points.
Not included: the Checkout API and Advanced Orderings (they create sales and orders on the register), image uploads and webhooks. No tool takes a payment or moves money.
Field notes
- Amounts are Indonesian rupiah without decimals in the library; report totals can carry decimals from tax and discount splits.
- Timestamps in answers are ISO 8601 with the +07:00 offset of Jakarta. Report dates are calendar days as
DD/MM/YYYY;sinceanduntilare Unix epoch seconds. - Lists answer
total_pagesandtotal_count; page withpageandper_page. Records are soft-deleted:is_deletedtrue rows only come withinclude_deleted. - 401 means the token was revoked or expired: authorize again. 403 names a missing permission, or an outlet whose Moka subscription expired (the owner renews it in the Backoffice). 429 with Quota limit exceeded means too many calls: wait before retrying.
Step 2 — Install the adapter
curl -fsSL https://raw.githubusercontent.com/HelpCode-ai/anythingmcp/main/docker-compose.quickstart.yml -o docker-compose.yml
printf 'JWT_SECRET=%s\nENCRYPTION_KEY=%s\n' "$(openssl rand -hex 32)" "$(openssl rand -hex 32)" > .env
docker compose up -d
Step 3 — Add the connector in Gemini
Your server URL: in AnythingMCP, open MCP Servers → the server this connector is on, and copy its URL (
https://cloud.anythingmcp.com/mcp/…). Use it wherever this guide showsYOUR_SERVER_ID.
Gemini CLI reads MCP servers from ~/.gemini/settings.json (on Windows %USERPROFILE%\.gemini\settings.json). Add:
{
"mcpServers": {
"anythingmcp": {
"httpUrl": "https://cloud.anythingmcp.com/mcp/YOUR_SERVER_ID",
"headers": { "X-API-Key": "YOUR_MCP_API_KEY" }
}
}
}
- Create an MCP API key in AnythingMCP under MCP Servers → your server → API keys, and paste it in place of
YOUR_MCP_API_KEY. - Save the file and restart
gemini. - Run
/mcpinside Gemini CLI (orgemini mcp listin your shell) —anythingmcpshould show as connected. - Start prompting — Gemini CLI can now call the
Moka POStools.
Available tools
| Tool | What it does |
|---|---|
moka_pos_get_profile | Check the connection and return who authorized it: user id, email, full_name, business_id, business_name, and the outlets the user can… |
moka_pos_get_business | Read the business behind the connection: id, name, address, city, province, postal_code, phone, email, website, coordinates, outlet_slot… |
moka_pos_list_outlets | List the outlets (stores) of a business: id, name, address, city, province, postal_code, phone_number, coordinates, is_deleted, start_date… |
moka_pos_list_customers | List the customers of a business: id, name, email, phone, address, city, state, postal_code, birthday, outlet_id, is_deleted, created_at… |
moka_pos_list_loyalty_programs | List the loyalty programs of a business: id, status, new_member_point, the earning_rules (type, point, amount in IDR spent per point) and… |
moka_pos_list_loyalty_point_activities | List the loyalty point history of one customer: type, points, initial_points, new_member_points, redeem_reward, payment_uuid… |
moka_pos_list_categories | List the item categories of an outlet: id, name, description, is_deleted, created_at and updated_at. The answer carries total_pages and… |
moka_pos_list_items | List the items (products) of an outlet: id, name, description, category_id with the category, image, is_recipe, is_sales_type_price and… |
moka_pos_list_modifiers | List the modifier groups of an outlet: id, name, min_no_of_options, max_no_of_options, active_options (the options with their prices) and… |
moka_pos_list_discounts | List the discounts of an outlet: id, name, amount, type (percentage or cash), amount_format and is_deleted. The answer carries total_pages… |
moka_pos_list_taxes | List the taxes of an outlet: id, name, amount (percent) and is_deleted. The answer carries total_pages and total_count next to the tax… |
moka_pos_list_sales_types | List the sales types of an outlet (Dine In, Take Away, delivery channels): id, name, default_state, active_state, the gratuities applied… |
moka_pos_list_promos | List the promos of an outlet: promo_id, promo_name, promo_type, promo_description, promo_start_date, promo_end_date, promo_status… |
moka_pos_list_item_stock_summaries | Stock movement per item variant of an outlet for a period: item_id, item_name, category, outlet and per variant beginning, purchase_order… |
moka_pos_list_purchase_orders | List the purchase orders of an outlet created in a period, newest first: id, order_no (not guaranteed unique), total cost, supplier_id and… |
moka_pos_get_purchase_order | Read one purchase order: id, order_no, note, total, status (Created, Updated, Cancelled or Fulfilled), the supplier contact fields… |
moka_pos_get_sales_summary | Sales summary for an outlet and a date range: gross_sales, discounts, refunds, net_sales, gratuities, taxes, total_collected… |
moka_pos_get_item_sales | Sales per item for an outlet and a date range: item_sales rows with name, sku, category_name, item_sold, item_refunded, gross_sales… |
moka_pos_get_category_sales | Sales per item category for an outlet and a date range: category_sales rows with name, items_sold, gross_sales, discount, refund and… |
moka_pos_get_modifier_sales | Sales per modifier for an outlet and a date range: modifiers rows with modifier_id, modifier_name, quantity, gross_sales, discount, refund… |
moka_pos_get_discount_sales | Discounts given for an outlet and a date range: discounts rows with discount_id, name, amount, discount_type (percentage or cash), count… |
moka_pos_get_tax_sales | Taxes collected for an outlet and a date range: reports_taxes rows with name, amount (percent), taxable_amount and tax_collected, plus… |
moka_pos_get_payment_methods_report | Takings per payment method for an outlet and a date range: total_number_of_transactions, total_collected and reports grouped as… |
moka_pos_get_collector_sales | Takings per staff member who collected the payment for an outlet and a date range: reports rows with name, title, number_of_transactions… |
moka_pos_get_server_sales | Takings per server (the staff member who served) for an outlet and a date range: servers rows with server_id, server_name, server_title… |
moka_pos_get_sales_type_report | Sales per sales type (Dine In, Take Away, delivery channels) for an outlet and a date range: sales_types rows with sales_type, count and… |
moka_pos_get_transactions_report | Transactions of an outlet for a date range in one answer: the totals gross_sales, net_sales, discounts, gratuity, tax, refunds… |
moka_pos_list_latest_transactions | List the sales transactions (payments) of an outlet, newest first, with full detail: id, payment_no, created_at, payment_type, subtotal… |
moka_pos_list_invoices | List the invoices (sales on account) of an outlet for a date range: id (a UUID), invoice_no, payment_no, status, invoice_status (paid or… |
moka_pos_get_invoice | Read one invoice by its UUID: status, payment_no, payment_type, amount_pay, amount_change, the discount, gratuity, tax and item totals… |
moka_pos_create_item | Create an item (product) in the library of an outlet with its variants, prices and optional stock tracking. Returns the new item with its… |
moka_pos_update_item | Change an item of an outlet: name, description, category, and the name, SKU, price and tracking flags of its variants. Moka documents the… |
moka_pos_adjust_item_stock | Record a stock adjustment for an outlet: set the counted stock of one or more item variants and leave a note. actual_stock is the new… |
moka_pos_delete_item | Delete an item from the library of an outlet. It disappears from the register and cannot be restored through the API; past sales keep their… |
Example prompts
- "What were the sales of my Kemang outlet last week?"
- "Which items sold best this month, and by how much?"
- "Show the payment methods report for yesterday: cash, card and QRIS."
- "Which variants are running low according to the stock summary of this month?"
- "Compare the sales of each cashier this week."
FAQ
What do I need to set up? An application on the Moka Developer Platform, signed in with a Moka Backoffice account: enter the AnythingMCP callback as redirect URL, give it the permissions profile, library, report, transaction and customer, copy the client ID and secret, and click Authorize with Provider. An app for your own business stays In Review and works anyway.
What does it cover? Business and outlets, sales reports by item, category, modifier, discount, tax, payment method, staff and sales type, transactions with line items, invoices, the item library, stock summaries, purchase orders, customers and loyalty points (read only). Checkout, advanced orderings, image uploads and webhooks are not included; no tool takes a payment or moves money.
Which tools install switched off? moka_pos_delete_item. Switch it on on the connector page only if the AI should use it. Creating and updating items and recording a stock count are on.
Where does Gemini CLI look for MCP servers? In ~/.gemini/settings.json for your user, or in .gemini/settings.json inside a project. gemini mcp list shows each server and whether it connects.
Next steps
Was this guide helpful?