KiotViet MCP server

Read KiotViet products, customers, invoices, orders and stock; create customers and orders. For Vietnamese shops and retailers that sell and manage stock with KiotViet. Hosted by usefulapi — connect from Claude, ChatGPT, Cursor, or any MCP client.

Claude claude.ai · Desktop

  1. Open Customize → Connectors, then click + Add → Add custom connector.
  2. Enter the name KiotViet and this URL, then click Add:
    https://kiotviet.usefulapi.io/mcp
  3. Claude opens the login page: enter your KiotViet Client ID, KiotViet secret (Mã bảo mật) and Shop name (tên gian hàng).
  4. In a chat, click + → Connectors and turn on KiotViet.

Team and Enterprise: an Owner adds the connector for the organization first.

Claude Code

Run this command, then run /mcp in Claude Code to log in:

claude mcp add --transport http kiotviet https://kiotviet.usefulapi.io/mcp

Cursor

Add to Cursor or add this to ~/.cursor/mcp.json:

{
  "mcpServers": {
    "kiotviet": {
      "url": "https://kiotviet.usefulapi.io/mcp"
    }
  }
}

VS Code

Add to VS Code or add this to .vscode/mcp.json:

{
  "servers": {
    "kiotviet": {
      "type": "http",
      "url": "https://kiotviet.usefulapi.io/mcp"
    }
  }
}

ChatGPT chatgpt.com

  1. Open Plugins, click +, then Add custom MCP server.
  2. Enter the name KiotViet and this URL, choose OAuth as the authentication, confirm the warning and create it:
    https://kiotviet.usefulapi.io/mcp
  3. ChatGPT opens the login page: enter your KiotViet Client ID, KiotViet secret (Mã bảo mật) and Shop name (tên gian hàng).
  4. In Plugins, install KiotViet, then choose it in a chat.

No Add custom MCP server option? It depends on your account or workspace settings: see OpenAI's guide.

Codex

Run these commands. The second one opens the login page:

codex mcp add kiotviet --url https://kiotviet.usefulapi.io/mcp
codex mcp login kiotviet

Other MCP clients (Windsurf, Cline, Zed and more): add the URL as a remote MCP server (Streamable HTTP). The client then opens the login page in your browser. Do not add an Authorization header: see Before you connect.

live33 toolsFree 50 tool calls / monthPro $9/mo · $90/yr

What you can do with KiotViet in Claude and ChatGPT

Check stock by branch

The AI shows stock on hand and reserved quantities per product and branch, so you can see what is running low where.

kiotviet_list_stock kiotviet_list_branches kiotviet_list_products

Review the day's sales

The AI lists sales invoices for a date range with totals and payment status, and opens one invoice with its lines and payments.

kiotviet_list_invoices kiotviet_get_invoice

Look up a customer and their orders

The AI finds a customer by code, name or phone, shows debt and totals, and lists the latest orders of that customer.

kiotviet_list_customers kiotviet_get_customer kiotviet_list_orders

Take a sales order

The AI creates a sales order with lines of existing products in a branch, after you confirm the products, quantities and prices.

Changes data · kiotviet_create_order kiotviet_get_product_by_code

Add a new customer

The AI checks by phone number whether the customer exists, and creates a new customer record when it does not.

Changes data · kiotviet_create_customer kiotviet_list_customers

Review supplier purchases

The AI lists goods receipts and supplier orders for a period, with suppliers, totals and lines, so you can see what you bought.

kiotviet_list_purchase_orders kiotviet_list_supplier_orders kiotviet_list_suppliers

Before you connect

The login page asks for your KiotViet Client ID, KiotViet secret (Mã bảo mật) and Shop name (tên gian hàng).

In KiotViet, a shop administrator opens Thiết lập → Cửa hàng → Kết nối API (Settings, Store, API connection), verifies the contract phone number, generates the secret (Mã bảo mật), accepts the terms and ticks access to customer, invoice and order data. Copy the Client ID and secret from there. The shop name is the store name (tên gian hàng) you log in with, for example minhanhshop. They are used only to call the KiotViet API on your behalf; they are never shown to anyone.

Add only the URL. Do not add an Authorization header or an API key to the client config. The server signs you in with OAuth: the login page asks for your KiotViet Client ID, KiotViet secret (Mã bảo mật) and Shop name (tên gian hàng). If the config has such a header, remove it: some clients then send that header instead of the login token, and every call fails with 401.

Example prompts

Turn on the KiotViet connector, then ask in plain words. The AI picks the tools.

Tools 33

ToolTypeWhat it does
kiotviet_list_productsread
List products
List products (code, barcode, name, category, base price, units, attributes). Optionally include stock per branch (include_inventory) and price-book prices. Filter by name, category, branch, active flag or last change. GET /products.
kiotviet_get_productread
Get product
One product by id: code, barcode, name, category, base price, units, attributes, images, stock per branch and price books. GET /products/{id}.
kiotviet_get_product_by_coderead
Get product by code
One product by its product code (SKU). GET /products/code/{code}.
kiotviet_list_categoriesread
List categories
List product categories (id, name, parent, whether it has children). Set hierarchical to get the category tree. GET /categories.
kiotviet_get_categoryread
Get category
One product category by id (name, parent, children). GET /categories/{id}.
kiotviet_list_customersread
List customers
List customers (code, name, phone, email, address, debt, total invoiced, reward points, groups). Contains personal data of the shop's customers. Filter by code, name, phone, group or last change. GET /customers.
kiotviet_get_customerread
Get customer
One customer by id: contact data, debt, total invoiced, reward points, groups. GET /customers/{id}.
kiotviet_get_customer_by_coderead
Get customer by code
One customer by customer code. GET /customers/code/{code}.
kiotviet_create_customerwrite
Create customer
WRITE: create a new customer in the shop (name required; code is generated by KiotViet if omitted). Always check with the user first, and look the customer up by phone before creating a duplicate. POST /customers.
kiotviet_list_invoicesread
List invoices
List sales invoices (code, date, branch, customer, total, amount paid, status, lines). Filter by branch, customer, status, order, purchase-date range or last change. GET /invoices.
kiotviet_get_invoiceread
Get invoice
One invoice by id with its lines, payments and delivery. GET /invoices/{id}.
kiotviet_get_invoice_by_coderead
Get invoice by code
One invoice by invoice code (for example HD000123). GET /invoices/code/{code}.
kiotviet_list_ordersread
List sales orders
List sales orders (code, date, branch, customer, total, status, lines, delivery). Filter by branch, customer, status, creation date (from) or last change (from/to). GET /orders.
kiotviet_get_orderread
Get sales order
One sales order by id with its lines, payments and delivery. GET /orders/{id}.
kiotviet_get_order_by_coderead
Get sales order by code
One sales order by order code (for example DH000123). GET /orders/code/{code}.
kiotviet_create_orderwrite
Create sales order
WRITE: create a sales order (an order, not an invoice: no invoice is made and no payment is recorded) with lines of existing products in a branch, for an existing customer or none. Always confirm the products, quantities and prices with the user first. POST /orders.
kiotviet_list_branchesread
List branches
List the shop's branches (id, name, code, phone, address). Use the ids to filter other tools. GET /branches.
kiotviet_list_stockread
List stock on hand
Stock on hand and reserved quantity per product and branch. Filter by branch or last change. GET /productOnHands.
kiotviet_list_suppliersread
List suppliers
List suppliers (code, name, phone, email, address, debt, total invoiced). Filter by code, name, phone or last change. GET /suppliers.
kiotviet_get_supplierread
Get supplier
One supplier by id. GET /suppliers/{id}.
kiotviet_list_purchase_ordersread
List goods receipts
List goods receipts from suppliers (nhap hang: code, date, branch, supplier, total, lines). Filter by branch, status or purchase-date range. GET /purchaseorders.
kiotviet_get_purchase_orderread
Get goods receipt
One goods receipt (nhap hang) by id with its lines. GET /purchaseorders/{id}.
kiotviet_list_supplier_ordersread
List supplier orders
List orders placed with suppliers (dat hang nhap: code, date, branch, supplier, status, lines, amount paid). Filter by branch, status, supplier or product text. GET /ordersuppliers.
kiotviet_list_returnsread
List returns
List customer returns (code, date, branch, customer, invoice, return total, lines). GET /returns.
kiotviet_get_returnread
Get return
One customer return by id with its lines. GET /returns/{id}.
kiotviet_list_cashflowread
List cash flow
List cash-book entries (receipts and payments: code, branch, method, partner, amount, date, status). Filter by branch, direction or date range. GET /cashflow.
kiotviet_list_usersread
List users
List the shop's staff users (id, username, name, phone, email). GET /users.
kiotviet_list_price_booksread
List price books
List price books (bang gia: name, active flag, validity dates, branches, customer groups). GET /pricebooks.
kiotviet_get_price_bookread
Get price book prices
The product prices of one price book (product id, code, price), paged. GET /pricebooks/{id}.
kiotviet_usage_statusmeta
Usage status (free-tier meter)
Report the caller's current usage: the plan, calls used this month, the limit of the plan (the free monthly cap or the Pro fair use limit), remaining, and whether the limit is reached. Read-only; does not count against the meter.
kiotviet_request_featuremeta
Request a missing feature
Tell usefulapi that the user needs something the KiotViet tools cannot do yet (a missing tool, field or filter). Call it only when the user asks for something none of the tools can do, and tell the user that you send the request. Do not call it for errors or for normal requests. Do not include personal data, credentials or customer records. Stored with the product name and the client type (for example Claude or Cursor), without the user's account. At most 5 requests per day. Does not count against the meter.
kiotviet_upgrademeta
Upgrade to Pro (unlimited*)
Get Pro: unlimited tool calls (fair use limit: 10,000 a month) on KiotViet (the free tier caps monthly usage). Plans: "monthly" — $9/month; "yearly" — $90/year (2 months free). Cancel any time: Pro then runs to the end of the paid period, so it also suits a one-time job. *A fair use limit applies. For heavy use (near Pro's limit): "plus" or "plus_yearly" — Pro+, $39/month or $390/year, unlimited tool calls (fair use limit: 100,000 a month); an existing Pro subscription changes to Pro+ in place (needs confirm: true; the price difference for the rest of the period is charged at once). Otherwise returns a short link to open in your browser (it opens Stripe Checkout); after payment the account upgrades automatically. Does not count against the meter.
kiotviet_cancel_subscriptionmeta
Cancel the Pro subscription
Cancel the caller's KiotViet Pro subscription at the end of the paid period (no refund for the current period; Pro continues until then, then the free tier applies). Requires confirm: true. Run kiotviet_upgrade later to undo the cancel before the period ends. Does not count against the meter.

Pricing

PlanPriceLimit
Free$050 tool calls / month
Proper store account$9/mo · $90/yrUnlimited*

*Pro fair use limit: 10,000 tool calls a month on this server. For more, write to [email protected].

Pro covers this KiotViet server only. Subscribe with kiotviet_upgrade (it returns a Stripe Checkout link). Cancel any time with kiotviet_cancel_subscription: Pro continues to the end of the paid period, with no refund for the current period, and running kiotviet_upgrade before then undoes the cancel. Or write to [email protected].

FAQ

What can I do with KiotViet in Claude or ChatGPT?

Check stock by branch. Review the day's sales. Look up a customer and their orders. Take a sales order. Add a new customer. Review supplier purchases. See what you can do for the details.

Is this an official KiotViet product?

No. usefulapi is an independent service. It is not affiliated with or endorsed by KiotViet. The server calls the KiotViet API with your own KiotViet access, so it sees only the data that your account can see.

Can I connect KiotViet to Claude or ChatGPT?

Yes. In Claude, add this server's URL as a custom connector. In ChatGPT, add it as a custom MCP server in Plugins. Then log in once. Cursor, VS Code, Claude Code and Codex work too. See the setup steps.

What do I need to connect?

The login page asks for your KiotViet Client ID, KiotViet secret (Mã bảo mật) and Shop name (tên gian hàng). See Before you connect for where to find them.

Do I put my KiotViet key or an Authorization header in the client config?

No. Add only the URL. Do not add an Authorization header or an API key to the client config. The server signs you in with OAuth: the login page asks for your KiotViet Client ID, KiotViet secret (Mã bảo mật) and Shop name (tên gian hàng). If the config has such a header, remove it: some clients then send that header instead of the login token, and every call fails with 401.

How do you keep my KiotViet credentials?

The login stores them encrypted in the authorization grant of your connection. The server uses them to call the KiotViet API for you and to derive a private account id for usage metering. usefulapi does not show them on any page or in any reply. To stop all access, remove the connector and change or delete these credentials in KiotViet.

Can the AI change my KiotViet data?

Yes, if you approve it. 2 of the 29 KiotViet tools can create or change data. The other 27 are marked read-only. Most MCP clients ask you to approve a tool call before it runs.

What does it cost?

The Free plan gives 50 tool calls / month. Pro costs $9/mo or $90/yr, with unlimited tool calls (fair use limit: 10,000 tool calls a month), for this KiotViet server only. Cancel any time: Pro then runs to the end of the paid period. Run kiotviet_usage_status to see how many calls you used.

How do I subscribe or cancel?

Ask the AI to run kiotviet_upgrade: it returns a Stripe Checkout link. To cancel, run kiotviet_cancel_subscription. Pro continues to the end of the paid period.

What if a KiotViet tool that I need is missing?

Tell the AI what you wanted to do. It can send the request with kiotviet_request_feature. We store the text with the server name, the type of AI client and the tool you tried, not with your account, and read every request when we plan new tools. You can send up to 5 requests per day.

Which AI clients can I use?

Any client that supports remote MCP servers (Streamable HTTP) with OAuth login: Claude (web and desktop), Claude Code, ChatGPT, Codex, Cursor, VS Code, Windsurf and others.

This is a Model Context Protocol endpoint — meant to be connected from an AI client, not opened in a browser. An invalid_token response at the URL is the auth gate working as designed; clients authenticate automatically.

More Commerce & Memberships MCP servers

AwtomicBeacon CRMBettermodeBloomerangBooqableBreeze ChMSBrightpearlCin7 CoreCratejoyCustomCatEcwidElvantoEveniumEventbriteFinale InventoryFinerWorksFoxy.ioFunraiseGelatoGift Up!GivingFuelGootenGumroadHello ClubHiboutikHumanitixInventory PlannerLearnWorldsLightspeed Retail (R-Series)Lightspeed Retail (X-Series)LinnworksLittle Green LightLooxLoyverseMegaventoryMemberfulNeon CRMOrder DeskOwnerRezPHP Point of SalePrintfulPrintifyQgivRaiselyRechargeREVIEWS.ioSapoSmaregiSmile.ioStoreRocketSwellTeamUpTicketsauceTicketSpiceTitoUnleashed SoftwareVeeqoVirtuousWild Apricot

All Commerce & Memberships servers →