Skip to main content
Glama
mintsoft-mcp

mintsoft-mcp

by AhamadFalah

mintsoft-mcp

A Model Context Protocol server for the Mintsoft warehouse management system, so Claude and any other MCP-capable LLM client can look up orders, products, stock, inbound, returns and reports — and, if you deliberately enable it, make guarded changes.

Unofficial. Not affiliated with or endorsed by Mintsoft / Access Group.

Why the safety model matters

Mintsoft has no sandbox — every API key points at a live WMS. This server is built around that fact:

  • Read-only by default. 37 read tools (GETs only). The 8 write tools are not registered at all unless MINTSOFT_ENABLE_WRITES=1 — when off, there is zero write surface for a model to misuse.

  • Client allowlist. Even with writes on, every write is refused unless the target record belongs to a ClientId in MINTSOFT_WRITE_CLIENT_ALLOWLIST (default: empty = refuse everything). Point it at a dedicated test client account, not your real brands.

  • Destructive ops double-gated. delete_product also requires confirm=True; amend_bundle refuses if the bundle has alt codes or recent stock activity unless force=True, and rolls back if the recreate fails.

  • Everything audit-logged. Every API call (reads included) is appended to a local JSONL audit log (~/.mintsoft-mcp/mintsoft_api_audit.jsonl) — timestamp, method, path, body, status, affected id. The API key is never logged. Readable in-session via the get_api_audit_log tool for tracing or recovering from changes.

Related MCP server: Odoo MCP Server

Install

From source (PyPI release coming):

uv tool install git+https://github.com/AhamadFalah/mintsoft-mcp
# or: pip install git+https://github.com/AhamadFalah/mintsoft-mcp

You need a Mintsoft API key (Mintsoft → Settings → API).

Hook it up

Claude Code

claude mcp add mintsoft -e MINTSOFT_API_KEY=your-key -- mintsoft-mcp

Claude Desktop / Cursor / Windsurf / VS Code — add to the client's MCP config (claude_desktop_config.json, .cursor/mcp.json, etc.):

{
  "mcpServers": {
    "mintsoft": {
      "command": "mintsoft-mcp",
      "env": { "MINTSOFT_API_KEY": "your-key" }
    }
  }
}

To enable writes (against a test client only — see safety model above):

"env": {
  "MINTSOFT_API_KEY": "your-key",
  "MINTSOFT_ENABLE_WRITES": "1",
  "MINTSOFT_WRITE_CLIENT_ALLOWLIST": "3"
}

Tools

Reads (37, always on)

Area

Tools

Orders

get_order, search_orders, get_order_id, list_orders, list_order_statuses, get_order_items, get_order_comments, track_order_by_tracking_number, list_order_channels

Products & stock

get_product, lookup_product_id, search_products, list_products, get_alt_codes, get_bundle, get_product_inventory, get_stock_levels_by_warehouse, get_stock_levels_updated_since, get_stock_flow, list_suppliers, precheck_discontinue

Inbound & returns

list_asns, get_asn, list_returns, get_return

Warehouse

list_warehouses, list_locations, list_warehouse_zones

Account & reference

list_clients, list_couriers, list_invoices, get_invoice, list_order_rules, run_report, get_ref_data

Meta

mintsoft_get (generic read-only GET passthrough for any endpoint not wrapped), get_api_audit_log

Writes (8, gated)

add_order_comment, add_order_tag, create_product, update_product, add_alt_code, delete_product (needs confirm=True), amend_bundle, discontinue_sku (footprint pre-check → rename [Discontinued] … + DisCont flag, same ProductId so history survives).

Baked-in Mintsoft API quirks

Things this server handles that the official docs don't tell you:

  • Cloudflare blocks default user-agents (error 1010) — a browser UA is sent.

  • Validation failures come back HTTP 200 with Success: false — surfaced as errors, not silently swallowed.

  • Product.CommodityCode must be a nested object {"Code": "..."}; a plain string is silently dropped. The client coerces strings automatically.

  • AltCodes POST takes query params, not a JSON body, and ConnectMappingType is a channel name string ("Amazon", "Shopify", "API"…) despite Swagger saying integer.

  • Bundles are hidden from Product/Search — find them via Product/List or by id.

  • There is no in-place bundle edit — amend_bundle does delete + recreate (new ProductId) with guards and rollback.

Configuration

Env var

Default

Purpose

MINTSOFT_API_KEY

—

Required. Your Mintsoft API key.

MINTSOFT_ENABLE_WRITES

0

Register the write tools.

MINTSOFT_WRITE_CLIENT_ALLOWLIST

(empty)

Comma-separated ClientIds writes may touch. Empty = all writes refused.

MINTSOFT_AUDIT

1

Audit-log every API call.

MINTSOFT_AUDIT_WRITES_ONLY

0

Log only PUT/POST/DELETE.

MINTSOFT_AUDIT_LOG

~/.mintsoft-mcp/mintsoft_api_audit.jsonl

Audit log path.

MINTSOFT_SECRET_PROJECT / MINTSOFT_SECRET_NAME

(unset)

Optional: fetch the key from GCP Secret Manager via gcloud instead.

Smoke test

scripts/smoke_test.py verifies the full 187-endpoint surface: read-only tiers run live; the guarded --write pass runs a create→read→delete cycle only against a client whose name contains "test" (or MINTSOFT_TEST_CLIENT_ID) and skips writes entirely if none exists.

python scripts/smoke_test.py            # read-only
python scripts/smoke_test.py --write    # + guarded write demo

Licence

Apache-2.0.

mcp-name: io.github.ahamadfalah/mintsoft-mcp

Available Tools

37 tools
get_alt_codesB

List the alternative SKUs / barcodes (AltCodes) mapped to a product.

Inputs: product_id (required). Returns: result

get_api_audit_logA

Read the most recent entries from the Mintsoft API audit log — the append-only history of EVERY call this tooling/server makes (ts, method, write flag, path, body, status, success, affected_id). Use to trace or recover from changes. writes_only=True → only PUT/POST/DELETE; contains → only lines whose path/body matches the substring (e.g. a SKU or 'Bundle').

Inputs: limit, contains, writes_only. Returns: result

get_asnB

Get one ASN (inbound) by ID.

Inputs: asn_id (required).

get_bundleA

Read a bundle's make-up: SKU, Name, and Components (each with ProductId, SKU, Quantity). NB: bundles are hidden from Product/Search — find them via list_products(client_id=…) or by ID.

Inputs: product_id (required).

get_invoiceA

Get one invoice by ID (needs Accounting permission).

Inputs: invoice_id (required).

get_orderA

Get full detail for one Mintsoft order by its numeric order ID.

Inputs: order_id (required).

get_order_commentsB

Get the comments logged against an order.

Inputs: order_id (required). Returns: result

get_order_idC

Resolve an exact order number to its internal Mintsoft order ID.

Inputs: order_number (required).

get_order_itemsB

Get the line items for an order.

Inputs: order_id (required). Returns: result

get_productA

Get full detail for one product by its numeric product ID.

Inputs: product_id (required).

get_product_inventoryC

Get inventory (stock by location) for a product.

Inputs: product_id (required). Returns: result

get_ref_dataB

Reference data. kind = 'countries' | 'currencies' | 'picking_types' | 'price_types'.

Inputs: kind (required). Returns: result

get_returnB

Get one return by ID.

Inputs: return_id (required).

get_stock_flowC

Stock-flow (movement) history for a product over the last N days (default 30).

Inputs: product_id (required), days. Returns: result

get_stock_levels_by_warehouseB

Stock levels for a warehouse, for products updated in the last N days (default 31).

Inputs: warehouse_id (required), updated_since_days. Returns: result

get_stock_levels_updated_sinceA

Stock levels for products changed in the last N days (default 7). Prefer this over the full StockLevels (which can time out).

Inputs: days. Returns: result

list_asnsB

List ASNs (inbound goods-in / advance shipping notices).

Inputs: page, limit. Returns: result

list_clientsB

List clients (brands) in the account.

Inputs: no named parameters. Returns: result

list_couriersA

List courier services.

Inputs: no named parameters. Returns: result

list_invoicesB

List accounting invoices (needs Accounting permission on the API key).

Inputs: page, limit. Returns: result

list_locationsB

List all storage locations in a warehouse.

Inputs: warehouse_id (required). Returns: result

list_order_channelsA

List the sales channels (Shopify, Amazon, etc.) configured in Mintsoft.

Inputs: no named parameters. Returns: result

list_order_rulesA

List order rules (needs OrderRules permission on the API key).

Inputs: no named parameters. Returns: result

list_ordersB

List orders by status ID (e.g. NEW=1, DESPATCHED=4, QUERYRAISED=13, AWAITINGPICKING=15, PICKED=17). limit max 100.

Inputs: status_id (required), page, limit. Returns: result

list_order_statusesA

List all order status names and their IDs.

Inputs: no named parameters. Returns: result

list_productsA

List products (paged). limit max 100. client_id filters to one client (0 = all). Unlike search_products, this listing INCLUDES bundles — use it to find a bundle's product ID.

Inputs: page, limit, client_id. Returns: result

list_returnsD

List returns.

Inputs: page, limit. Returns: result

list_suppliersB

List product suppliers.

Inputs: no named parameters. Returns: result

list_warehousesC

List warehouses.

Inputs: no named parameters. Returns: result

list_warehouse_zonesB

List the zones (location-charge zones) of a warehouse.

Inputs: warehouse_id (required). Returns: result

lookup_product_idC

Resolve a primary SKU to its internal product ID.

Inputs: sku (required).

mintsoft_getA

Generic READ-ONLY passthrough: GET any Mintsoft API path (e.g. 'Order/123/Shipments'). Path is relative to /api/. Only GETs — for safety this tool cannot perform writes.

Inputs: path (required), params.

precheck_discontinueA

READ-ONLY discontinue footprint for a SKU before retiring it: stock on hand, live-order allocations, inbound/backorder, bundle membership, plus alt-code & replen info. Returns a blocker list and a clear flag. Identify by sku (+client_id) or product_id. Safe on any client.

Inputs: sku, client_id, product_id.

run_reportA

Run a Mintsoft report. kind = 'courier_despatch' | 'products_in_location' | 'product_usage'. Dates are YYYY-MM-DD; default to the last 7 days when omitted. warehouse_id/client_id are optional filters (0 = all).

Inputs: kind (required), to_date, client_id, from_date, +1 more. Returns: result

search_ordersA

Search orders by order number. exact=True does an exact match (recommended).

Inputs: order_number (required), exact. Returns: result

search_productsB

Search products by SKU or name.

Inputs: query (required). Returns: result

track_order_by_tracking_numberB

Find an order by its courier tracking number.

Inputs: tracking_number (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    C2.7/5.0

    Scored across 37 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes, with descriptions clarifying differences (e.g., get_order vs search_orders vs get_order_id). However, multiple stock-related tools (get_stock_levels_by_warehouse, get_stock_levels_updated_since, get_product_inventory, get_stock_flow) could cause confusion despite descriptions.

    Naming Consistency3/5

    The majority follow a verb_noun snake_case pattern (get_*, list_*, search_*). Inconsistencies include 'mintsoft_get' (prefix+verb), 'precheck_discontinue' (unclear noun), and 'track_order_by_tracking_number' (extra word). Overall pattern is recognizable but not uniform.

    Tool Count3/5

    37 tools is on the high side for typical MCP servers, but given the breadth of entities (orders, products, inventory, ASNs, invoices, reports, etc.), the count is borderline acceptable. Some redundancy (multiple stock methods) could be consolidated.

    Completeness2/5

    The tool set is heavily read-focused with get/list/search operations and no create/update/delete tools for core entities. Missing write capabilities for orders, products, and other entities limit the server to monitoring rather than full lifecycle management, creating significant gaps.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • F
      license
      Not graded
      quality
      D
      maintenance
      A comprehensive Model Context Protocol server implementation that enables AI assistants to interact with file systems, databases, GitHub repositories, web resources, and system tools while maintaining security and control.
      2
      -
    • A
      license
      Not graded
      quality
      D
      maintenance
      A Model Context Protocol server that enables AI assistants to interact with Odoo ERP systems, providing comprehensive tools for searching, creating, updating, and managing Odoo records through a standardized interface.
      209 PyPI
      23
      GPL 3.0