Skip the install. Get this working in under 2 minutes.
Start a free trial on cloud.anythingmcp.com, add the Rivile GAMA in one click, then point your AI client (Claude, ChatGPT, Copilot or Cursor) at the generated MCP endpoint. No Docker, no git clone, zero engineering experience required.
Summary
Connect Rivile GAMA, the Lithuanian ERP and accounting system, to Claude or ChatGPT through the Rivile API v2: clients, products, stock balances and prices, purchase and sales documents, debts and payments, ledger balances and the chart of accounts, with T-SQL filters. Edits ship switched off.
Try asking
Example prompts for Rivile GAMA
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 → Rivile GAMA, paste your credentials, mint an MCP API key and you're done. No Docker, no
git clone, no local server.
Rivile GAMA + Cursor
Connect Rivile GAMA, the Lithuanian ERP and accounting system, to Claude or ChatGPT through the Rivile API v2: clients, products, stock balances and prices, purchase and sales documents, debts and payments, ledger balances and the chart of accounts, with T-SQL filters. Edits ship switched off.
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:
RIVILE_API_KEY
Step 1 — Get credentials
Setting up the connector takes a few minutes once Rivile has enabled API v2 for you. You need Rivile GAMA version 119 or later, an API access agreement with Rivile, the Manorivile-Gateway running next to your GAMA database, and the API key Rivile issued with the service.
- Make sure the Manorivile-Gateway is installed on a computer or server that reaches your GAMA database. Your Rivile partner installs it. It must be running for any call to work.
- Paste the API key Rivile gave you into
RIVILE_API_KEY, alone, without quotes or spaces. It has the form user name, dot, secret, for exampleXW3CDDX.Bfnjvrurjygzuj.... - Install the connector and run
rivile_list_divisions: it lists your divisions (padaliniai), which shows that the key and the gateway both work.
The key works as a GAMA user: the part before the dot is the Rivile GAMA user the API acts as, so the AI sees what that user sees. Rivile also enables the methods per key in your API agreement: a method that is not enabled answers with the message "neturi leidimo vykdyti metodą".
Each call may be billed by Rivile: Rivile bills the API by the number of requests. So the AI prefers one well filtered call over many pages, and filters on the key of the last record it got instead of paging deep.
How Rivile names things: tables have a letter and two digits (N08 clients, N17 products and services, I06 purchase and sales documents with lines I07), and fields carry the table code plus a suffix: N08_KODAS_KS is the client code in table N08. Filters are T-SQL conditions without the word WHERE, such as n08_pav like '%ACME%' or a document date between two YYYY-MM-DD dates. Codes are upper case and decimals use a dot.
What it reads: client cards (customers and suppliers alike) with codes, VAT codes, address and payment terms; product and service cards; stock balances per product, division, object and series, including reserved quantities; prices per division; purchase and sales documents with their lines, also joined with division, client and product fields; internal operations such as transfers and write-offs; debts per document with due dates (the best source for an overdue list) and debt totals per client; debit and credit operations; bank and cash payments with the documents they settle; the receipts and payments register; ledger operations and account balances with turnover for a period; the chart of accounts, objects, purchase and sales codes, VAT classifiers (PVM klasifikatoriai), currencies, contracts and import and export batches. rivile_call_read_method reaches any other read method, for example price lists, units, fixed assets, CRM or employees.
Switched off at install: rivile_edit_client, rivile_edit_product, rivile_edit_document and rivile_create_document. Each call creates, updates or deletes one record in Rivile GAMA, and rivile_create_document posts a whole purchase or sales document with its lines to the books. An administrator turns on only what is needed, and even then the AI shows you the client, lines and totals and waits for your yes.
Limits: every list returns at most 100 records, and without a filter the first page of documents holds the newest. Rivile allows 10 requests a second per key; after a 429 the AI waits at least a second.
Common errors: 401 means the API key is wrong or expired. 502 means the Manorivile-Gateway is not running or cannot reach the database. 504 means the database answered too slowly: narrow the filter. 400 names the faulty field or filter with the database's message, or says the key may not run that method.
The connector has no write tools for payments, POS, gift cards or payroll, and no tool moves money.
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 Cursor
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.
Cursor reads MCP servers from ~/.cursor/mcp.json. Add this entry:
{
"mcpServers": {
"anythingmcp": {
"url": "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 Cursor.
- Open Cursor → Settings → MCP and check that
anythingmcpis listed and connected. - Start chatting: the agent can now call the
Rivile GAMAtools.
Available tools
| Tool | What it does |
|---|---|
rivile_list_clients | List clients (N08 client cards: customers and suppliers alike) with code, name, company and VAT codes, address, payment terms and type… |
rivile_list_products | List product and service cards (N17) with code, name, type (N17_TIPAS 1 product, 2 service), group, units and VAT |
rivile_list_stock_balances | List stock balances (I17): quantity, reserved quantity and value per product, unit, division (warehouse), object and series |
rivile_list_product_prices | List product prices per division (I33): sales prices, price lists and validity dates |
rivile_list_documents | List purchase and sales documents (I06 headers): invoices, receipts and returns with type (I06_OP_TIP), number, dates, client, amounts, VAT… |
rivile_list_documents_extended | List purchase and sales documents with division, client and product fields joined in (GET_I06_LIST_EXT), for sales by division, client or… |
rivile_list_document_debts | List what is still owed on purchase and sales documents not yet transferred (GET_I06_DEBT): client, document number, currency, debit and… |
rivile_list_internal_operations | List internal operations (I09 headers with I10 lines): stock transfers between divisions, write-offs and other internal documents |
rivile_list_debt_operations | List debit and credit operations (I31): offsets, debt transfers and other settlements between clients that are not invoices or payments |
rivile_list_debts_detailed | List detailed debts by document (I44): client, document number, document and due dates, debit and credit, currency and module (I44_MODUL… |
rivile_list_debts_summary | List debt balances (T03): how much each client owes or is owed in total |
rivile_list_payment_operations | List payment operations (I53): bank and cash payments and receipts with their lines and the documents they settle |
rivile_list_receipts_payments_register | List the register of receipts and payments (I04): incoming and outgoing money per date, client and account |
rivile_list_ledger_operations | List general ledger operations (I02 journal entries with their lines) |
rivile_get_account_balances | Get general ledger account balances and turnover for a period (GET_I02_LIST_EXT), optionally summed by account, division, object or… |
rivile_list_chart_of_accounts | List the chart of accounts (N01): account codes, names and types |
rivile_list_divisions | List divisions (N07, padaliniai): warehouses, shops and departments that hold stock and prices |
rivile_list_objects | List objects (N06): cost centres or projects used to split documents and postings |
rivile_list_purchase_sales_codes | List purchase, sales and other codes (N25): service and cost codes used on document lines instead of products |
rivile_list_vat_classifiers | List VAT classifiers (N63, PVM klasifikatoriai) used on documents and for the i.SAF and VAT return |
rivile_list_currencies | List currencies (N45) and their codes as used on documents and debts |
rivile_list_contracts | List contracts (N51) with client, dates, amounts and terms |
rivile_list_import_export_operations | List import and export operations (B00): batches loaded into or exported from Rivile GAMA and their state |
rivile_call_read_method | Call any other read method of the Rivile GAMA API by name (any GET_ method, or an MGAMA_GET_ method of the HR module), for data no… |
rivile_edit_client | Create, update or delete a client card (EDIT_N08) |
rivile_edit_product | Create, update or delete a product or service card (EDIT_N17) |
rivile_edit_document | Update or delete the header of a purchase or sales document (EDIT_I06), or create one without lines |
rivile_create_document | Create a purchase or sales document with its lines in one call (EDIT_I06_FULL): header I06 with lines I07 |
Example prompts
- "Which clients have debts more than 30 days overdue, and how much does each of them owe?"
- "How much of product 10045 do we have in each division, and how much of it is reserved?"
- "Show me this month's sales documents for UAB Statybų centras with totals and VAT."
- "Give me the ledger account balances and turnover for September, summed by account."
- "Which payments did we receive last week, and which invoices did they settle?"
FAQ
Does Cursor support custom MCP servers on the free tier? Yes, MCP is available on Hobby, Pro and Business plans.
Next steps
Was this guide helpful?