mintsoft-mcp

mintsoft-mcp

A Model Context Protocol server for the Mintsoft warehouse management system, enabling LLM clients to look up orders, products, stock, inbound, returns, and reports, with guarded write capabilities.

Category
访问服务器

README

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.

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 registry ownership marker --> mcp-name: io.github.ahamadfalah/mintsoft-mcp

推荐服务器

Baidu Map

Baidu Map

百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。

官方
精选
JavaScript
Playwright MCP Server

Playwright MCP Server

一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。

官方
精选
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。

官方
精选
本地
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。

官方
精选
本地
TypeScript
VeyraX

VeyraX

一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。

官方
精选
本地
graphlit-mcp-server

graphlit-mcp-server

模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。

官方
精选
TypeScript
Kagi MCP Server

Kagi MCP Server

一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。

官方
精选
Python
e2b-mcp-server

e2b-mcp-server

使用 MCP 通过 e2b 运行代码。

官方
精选
Neon MCP Server

Neon MCP Server

用于与 Neon 管理 API 和数据库交互的 MCP 服务器

官方
精选
Exa MCP Server

Exa MCP Server

模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。

官方
精选