Skip to main content
Glama
theluckystrike

goods-receipt

README.md
# mcp-goods-receipt

<!-- mirror-seo:start -->

**MCP server for goods receipt notes against purchase orders: units received, damaged and short, with a discrepancy report.** The receiving record for purchase orders: what arrived, against which line, in what quantity and condition.

Works with Claude Desktop, Claude Code, Cursor and any Model Context Protocol client. Runs on your own machine, or hosted with no install.

Product page: <https://mcp.zovo.one/s/goods-receipt> — what it does, the tools it exposes, and a live token endpoint.

## Install

**Hosted, nothing to install.** Get a token from <https://mcp.zovo.one/mcp/connect> (the connect page) or <https://mcp.zovo.one/mcp/token> (the same token as JSON); a free anonymous one is issued on the spot and a Pro key works the same way. Then point an MCP client at `https://mcp.zovo.one/mcp/goods-receipt` over streamable-http and send the token as `Authorization: Bearer <token>`.

If your client cannot set headers, put the token in the path instead: `https://mcp.zovo.one/mcp/goods-receipt/t/<token>`. Both forms work. The bare URL with no token answers 401 on `tools/call`, so the token is not optional.

**Claude Desktop, one click.** Download `goods-receipt.mcpb` from the [latest release](https://github.com/theluckystrike/mcp-servers/releases/latest) and double-click it.

**From source.** The mirror is self-contained: every `@theluckystrike/*` dependency is vendored, so a fresh clone builds with no extra setup.

```sh
git clone https://github.com/theluckystrike/mcp-goods-receipt.git
cd mcp-goods-receipt
npm install && npm run build
```

Then point your client at the built entry point:

```json
{
  "mcpServers": {
    "goods-receipt": {
      "command": "node",
      "args": ["/absolute/path/to/mcp-goods-receipt/dist/index.js"]
    }
  }
}
```

> `@theluckystrike/mcp-goods-receipt` is **not published on npm yet**, so an `npx -y @theluckystrike/mcp-goods-receipt` command will fail. The three paths above are the working ones and each is exercised by CI.

![goods-receipt demo](https://raw.githubusercontent.com/theluckystrike/mcp-servers/main/assets/demo-goods-receipt.gif)

Read-only mirror of [mcp-servers/servers/goods-receipt](https://github.com/theluckystrike/mcp-servers/tree/main/servers/goods-receipt). See [MIRROR.md](MIRROR.md).

<!-- mirror-seo:end -->

[![theluckystrike/mcp-goods-receipt MCP server](https://glama.ai/mcp/servers/theluckystrike/mcp-goods-receipt/badges/score.svg)](https://glama.ai/mcp/servers/theluckystrike/mcp-goods-receipt)

**In the [official MCP Registry](https://registry.modelcontextprotocol.io/v0.1/servers/io.github.theluckystrike%2Fgoods-receipt/versions/latest)** (`io.github.theluckystrike/goods-receipt`).

Purchase orders and the goods-receipt notes that receive them. A PO carries a reference, a
supplier, and dated lines — sku, description, whole units ordered — plus whole-percent
over/under tolerances that decide when a receipt is flagged. A GRN is raised against an open
PO, one cell per line: units received, units damaged, and any shortage you already know
about. Shortage is derived, not typed — ordered minus received, floored at zero — and shows
up as a discrepancy the moment the numbers disagree.

## The one rule that decides everything else

Over-tolerance is checked against the cumulative total across every GRN raised on the line,
not against each delivery in isolation.

Three deliveries of 40 against an order of 100 at 10% are allowed in ones and tens but the
third delivery is refused, because 120 received of 100 ordered breaks the over tolerance even
though no single delivery did. Partial deliveries are fine — several GRNs against the same PO
is the normal case — and the cumulative rule is what stops them quietly over-receiving.

Two smaller rules follow from it:

- **Nothing derived is stored.** Shortage and discrepancy are worked out on every call from
  the PO lines and the GRNs already recorded. Damage is the only thing typed in, because it
  is the only thing the warehouse actually sees.
- **Receiving past tolerance is refused, never clamped.** Unless the extra units are declared
  damaged, a receipt that breaks the over tolerance writes nothing and says why. Damaged
  units still count for the tolerance check — "it arrived broken" is not a licence to order
  100 and receive 130.

## The tools

| Tool | What it does |
| --- | --- |
| `po_add` | Create a purchase order: reference, supplier, dated lines, over/under tolerances |
| `grn_add` | Receive goods against an open PO: received/damaged per line, shortage derived |
| `grn_line_add` | Receive one more line onto an open GRN |
| `grn_list` | GRNs newest first, filtered by PO or status |
| `grn_get` | One GRN: every line with received, damaged, shortage and notes |
| `grn_discrepancy` | Lines short, over, damaged, or closed with outstanding amounts |
| `grn_close` | Close a GRN once the count is settled |
| `grn_status_report` | Every PO: open lines, cumulative received, what is still outstanding |
| `grn_export_csv` | GRNs as CSV (Pro) |
| `license_status` | Which tier this install is on and where the key came from |
| `license_activate` | Store a Pro key for this server |

## Quick start

```
po_add  { "reference": "ACME-1001", "supplier": "Acme Trading",
          "lines": [ { "sku": "BRK-8", "description": "Bracket, steel", "ordered": 100 } ] }
grn_add { "po": "PO-0001",
          "lines": [ { "line": "L01", "received": 60 } ] }
grn_add { "po": "PO-0001",
          "lines": [ { "line": "L01", "received": 35, "damaged": 2 },
                     { "line": "L01", "received": 10 } ] }   // refused: 105 > 100 + 10%
grn_discrepancy {}                                        // L01 is 5 short of 100
```

Ids look like `PO-0001` and `GRN-0001`; lines inside a PO are `L01`, `L02`, ….

## Quick start

```
{ "tool": "po_add", "args": { "reference": "ACME-1005", "supplier": "Acme Trading",
            "lines": [{ "sku": "BRK-01", "description": "Bracket, steel", "ordered": 10 }] } }
{ "tool": "grn_add", "args": { "po": "PO-0001", "lines": [{ "line": "L01", "received": 9, "damaged": 1 }] } }
{ "tool": "grn_discrepancy", "args": { "po": "PO-0001" } }
```

A GRN that arrives past the over tolerance is refused; shortage is computed as ordered minus
received and shown as a discrepancy. `grn_export_csv` (Pro) writes the whole ledger out as CSV.

## Free vs Pro

| | Free | Pro |
| --- | --- | --- |
| Purchase orders | up to 2,000 | up to 2,000 |
| GRNs | up to 5,000 | up to 5,000 |
| Lines per PO / per GRN | up to 200 | up to 200 |
| `grn_list`, `grn_get`, `grn_discrepancy`, `grn_status_report` | yes | yes |
| `grn_export_csv` | no | yes |

The domain is capped estate-wide (2,000 POs, 5,000 GRNs, 200 lines) on every tier — these are
hard rules so a store cannot grow past what the file format can hold, not a paywall. Pro
unlocks CSV export for pushing receipts into a spreadsheet or an ERP.

Get Pro: https://mcp.zovo.one/buy/goods-receipt (one-time), or all servers for one price at
https://mcp.zovo.one/buy/bundle

## Privacy

All data stays local, in `${XDG_DATA_HOME:-~/.local/share}/mcp-servers/goods-receipt/`, in
`store.json` (POs and GRNs) and `counter.json` (the PO- and GRN- series). There is no network
call anywhere in this server, no API key, and no account. The only file it reads that it does
not own is the shared business profile, and it never writes to it.

Built by [theluckystrike](https://github.com/theluckystrike). Support: support@zovo.one

## Use these docs as an MCP server

Any MCP client (Claude, Cursor, Windsurf, VS Code) can read this repository's documentation directly via GitMCP — no install:

- Docs MCP URL: https://gitmcp.io/theluckystrike/mcp-goods-receipt

TDQS

A4.1/5.0

Scored across 11 tools

Disambiguation5/5

Each tool targets a distinct action and resource: PO creation, GRN creation, line addition, GRN retrieval/listing/export/close, discrepancy and status reporting, and license management. The two report tools are cleanly separated by aggregation level, so an agent can tell them apart.

Naming Consistency4/5

Most tools follow a readable snake_case pattern with prefixes like grn_, po_, and license_. A few names such as grn_discrepancy and license_status are noun phrases rather than verb phrases, but the overall convention is consistent enough to be predictable.

Tool Count5/5

Eleven tools is a well-scoped number for a goods-receipt server covering PO creation, GRN lifecycle, reporting, export, and licensing. No tool feels redundant, and the set is neither bloated nor too thin.

Completeness2/5

The receiving workflow is covered, but the surface has significant lifecycle gaps: POs can only be created and never listed, updated, or deleted, and GRNs/lines cannot be corrected or removed once added. These gaps can strand agents when an entry is wrong or a PO needs adjustment.

Maintenance

ActivityMaintained
ResponsivenessNo issues