CostCrunchGet an API key

Materials

The materials you've bought: prices, purchase history and market checks.

costcrunch 0.1.0

cost materials list

List materials you've bought with their latest, median, min and max prices.

Command line
cost materials list
MCP tool
materials_list
Python
cc.materials.list()
ParameterTypeDescription
search
--search
stringOnly materials whose name contains this.
supplier_id
--supplier-id
stringOnly materials bought from this supplier id.
limit
--limit
integerMax materials (1-200).
Default: 25
offset
--offset
integerSkip this many (paging).
Default: 0

cost materials find <query>

Find materials you've bought by meaning, not just exact words (semantic search).

Use this to go from a free-text description to material ids for `materials get` / `history`.

Command line
cost materials find <query>
MCP tool
materials_find
Python
cc.materials.find()
ParameterTypeDescription
queryrequiredstringDescribe the material, e.g. '2x4 pressure treated'.
limit
--limit
integerMax results (1-50).
Default: 10

cost materials get <material-id>

Get one material: its category and every supplier variation you've bought (SKU, average, min and max price, how often, last purchase).

Command line
cost materials get <material-id>
MCP tool
materials_get
Python
cc.materials.get()
ParameterTypeDescription
material_idrequiredstringMaterial id.

cost materials history <material-id>

Every time you bought a material: date, supplier, document, project, quantity and price, plus totals and price range across all of them.

Command line
cost materials history <material-id>
MCP tool
materials_history
Python
cc.materials.history()
ParameterTypeDescription
material_idrequiredstringMaterial id.
supplier_id
--supplier-id
stringOnly purchases from this supplier id.
project_id
--project-id
stringOnly purchases for this project id.
since
--since
stringOn or after (YYYY-MM-DD).
until
--until
stringOn or before (YYYY-MM-DD).
sort
--sort
stringSort by.
One of: date, unit_price, total_price
Default: "date"
ascending
--ascending
booleanOldest / cheapest first.
Default: false
limit
--limit
integerMax purchases (1-100).
Default: 25
page_number
--page-number
integerPage (1-based).
Default: 1

cost materials prices <material-id>

What this material should cost: your own price history (last, average, median, best), what other suppliers charge, and online listings CostCrunch found, with links.

Command line
cost materials prices <material-id>
MCP tool
materials_prices
Python
cc.materials.prices()
ParameterTypeDescription
material_idrequiredstringMaterial id.