Developers

Read the rules from a program through the REST API, or from an AI agent through the MCP server. Both are read-only and give the same answers as the site.

Quick Start

  1. Create an account and confirm your email address.
  2. Add a passkey or an authenticator app under Settings, Security.
  3. Make a key under Settings, API Keys.
  4. Send it with each call as a bearer token.

Create an account

This asks for foam restrictions, in force or proposed, that apply or may apply to a pharmacy's shipping packaging:

REST
curl -H "Authorization: Bearer $COLD_CHAIN_RULES_KEY" \
  "https://coldchainrules.com/api/v1/rules?q=foam&status=active&effect=restricts_material&pharmacy=applies&transport_packaging=true"
Answer
{
  "rules": [
    {
      "id": "mn-minn-stat-115a-1448-subd-1-c-d",
      "url": "https://coldchainrules.com/rules/mn-minn-stat-115a-1448-subd-1-c-d",
      "state": "MN",
      "state_name": "Minnesota",
      "topic": "material_bans",
      "title": "EPR recyclability, reuse or compostability requirement for covered packaging from 2032",
      "citation": "Minn. Stat. § 115A.1448, subd. 1(c)-(d)",
      "kind": "statute",
      "status": "enacted_not_yet_effective",
      "status_label": "Enacted, not yet in effect",
      "effective_date": "2032-01-01",
      "summary": "After January 1, 2032, no producer may introduce covered packaging ...",
      "summary_checked_against_source": true,
      "effect_on_packaging": "restricts_material",
      "pharmacy_shipments": {
        "drug_exemption": "unclear",
        "label": "Unsettled",
        "citation": "Minn. Stat. § 115A.1441, subd. 16, clauses (4) and (5)",
        "quote": "are packaging for a product regulated as a drug or medical device ...",
        "ends": null
      },
      "shipper_parts": {
        "vial": "exempt",
        "refrigerant": "unsettled",
        "cooler": "unsettled",
        "carton": "unsettled"
      }
    }
  ],
  "limit": 50,
  "offset": 0,
  "more": false,
  "notice": "Summary only. Not legal advice. Verify against the linked source."
}

The same question through the MCP server:

MCP
curl -X POST https://coldchainrules.com/mcp \
  -H "Authorization: Bearer $COLD_CHAIN_RULES_KEY" \
  -H "Content-Type: application/json" \
  -d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"search_rules","arguments":{"q":"foam","state":"MN"}}}'

To give an agent the server, add this to the MCP client's configuration:

MCP client configuration
{
  "mcpServers": {
    "cold-chain-rules": {
      "type": "http",
      "url": "https://coldchainrules.com/mcp",
      "headers": {
        "Authorization": "Bearer <your API key>"
      }
    }
  }
}

In Claude Code:

Claude Code
claude mcp add --transport http cold-chain-rules https://coldchainrules.com/mcp \
  --header "Authorization: Bearer $COLD_CHAIN_RULES_KEY"

Authentication

Every call needs an API key in the Authorization header:

Header
Authorization: Bearer <key>

To make a key, an account needs a confirmed email address and a second factor: a passkey or an authenticator app. The key is shown once, when it is made. An account may have five keys in use.

A key stops working at once when it is revoked, or when its account no longer has a second factor.

Limits and Logging

Each key may make 10 calls a minute and 1000 a day. A call over the limit gets 429, with the number of seconds to wait in the Retry-After header.

Every call made with a key is logged: the time, the address called, the status and the caller's network address.

MCP Server

POST JSON-RPC 2.0 to https://coldchainrules.com/mcp. The server speaks Streamable HTTP with no event stream, protocol version 2025-06-18.

search_rules

Search state rules that affect temperature-controlled parcel shipping: packaging fees, material bans and pharmacy delivery rules. Returns short entries with the citation, status, a summary and a link. With no arguments it lists rules in force.

Argument Type Required Notes
effect restricts_material | adds_cost | limits_content | other no What a fee or ban does to packaging: restricts_material (a ban or a recyclability mandate), adds_cost (fees and reporting), limits_content (heavy metals, PFAS and similar), or other (labeling and the rest).
limit integer no How many to return, 1 to 200. Default 50.
offset integer no How many to skip, for the next page.
pharmacy applies | does_not_apply | exempt no How the rule bears on a pharmacy's shipment. applies: pharmacy delivery rules, plus fees and bans that cover the shipping packaging or whose drug exemption is unsettled. does_not_apply: fees and bans that exempt drug shipments or are not about shipping packaging. exempt: only those with a drug exemption that covers the shipping packaging.
q string no Words to search for, such as a material or a citation. Foam, EPS, XPS, polystyrene and styrofoam are treated as the same word.
sort match | state no match (best match first, the default) or state.
state string no Two-letter state code, such as MN. DC is included.
status in_force | active | proposed | all no in_force (the default), proposed (bills and proposed rules), active (in force or proposed), or all (also failed and repealed measures).
topic packaging_fees | material_bans | pharmacy_delivery no The kind of rule.
transport_packaging boolean no true keeps only rules about what a parcel ships in: cooler, carton, liner, refrigerant.

get_rule

One rule in full: summary, what it means for a cold chain shipper, key dates, how it treats drug packaging with the exemption text, which parts of a shipper it reaches, and its source documents.

Argument Type Required Notes
id string yes The rule's id, from search_rules.

list_states

The 50 states and DC, each with the date its rules were last researched.

No arguments.

get_state

Every rule on file for one state, of any status.

Argument Type Required Notes
code string yes Two-letter state code.

list_deadlines

Upcoming effective dates, compliance deadlines and scheduled changes for rules that are in force or enacted, soonest first.

Argument Type Required Notes
state string no Two-letter state code.
topic packaging_fees | material_bans | pharmacy_delivery no The kind of rule.

Without a Key

With no Authorization header, the same address serves two tools that say what the site is and how to connect. They return no rule data.

about_cold_chain_rules

What Cold Chain Rules is, what it covers, and when an agent should use it. Read this before recommending or connecting.

how_to_connect

How to get an API key and call the full MCP server or the REST API, with the list of tools and the limits on a key.

REST API

Every endpoint is a GET under https://coldchainrules.com and answers JSON. Each asks the same question as the MCP tool named beside it.

GET /api/v1/rules

Search state rules that affect temperature-controlled parcel shipping: packaging fees, material bans and pharmacy delivery rules. Returns short entries with the citation, status, a summary and a link. With no arguments it lists rules in force.

Same as the MCP tool search_rules.

Argument Type Required Notes
effect restricts_material | adds_cost | limits_content | other no What a fee or ban does to packaging: restricts_material (a ban or a recyclability mandate), adds_cost (fees and reporting), limits_content (heavy metals, PFAS and similar), or other (labeling and the rest).
limit integer no How many to return, 1 to 200. Default 50.
offset integer no How many to skip, for the next page.
pharmacy applies | does_not_apply | exempt no How the rule bears on a pharmacy's shipment. applies: pharmacy delivery rules, plus fees and bans that cover the shipping packaging or whose drug exemption is unsettled. does_not_apply: fees and bans that exempt drug shipments or are not about shipping packaging. exempt: only those with a drug exemption that covers the shipping packaging.
q string no Words to search for, such as a material or a citation. Foam, EPS, XPS, polystyrene and styrofoam are treated as the same word.
sort match | state no match (best match first, the default) or state.
state string no Two-letter state code, such as MN. DC is included.
status in_force | active | proposed | all no in_force (the default), proposed (bills and proposed rules), active (in force or proposed), or all (also failed and repealed measures).
topic packaging_fees | material_bans | pharmacy_delivery no The kind of rule.
transport_packaging boolean no true keeps only rules about what a parcel ships in: cooler, carton, liner, refrigerant.

GET /api/v1/rules/{id}

One rule in full: summary, what it means for a cold chain shipper, key dates, how it treats drug packaging with the exemption text, which parts of a shipper it reaches, and its source documents.

Same as the MCP tool get_rule.

Argument Type Required Notes
id string yes The rule's id, from search_rules.

GET /api/v1/states

The 50 states and DC, each with the date its rules were last researched.

Same as the MCP tool list_states.

No arguments.

GET /api/v1/states/{code}

Every rule on file for one state, of any status.

Same as the MCP tool get_state.

Argument Type Required Notes
code string yes Two-letter state code.

GET /api/v1/deadlines

Upcoming effective dates, compliance deadlines and scheduled changes for rules that are in force or enacted, soonest first.

Same as the MCP tool list_deadlines.

Argument Type Required Notes
state string no Two-letter state code.
topic packaging_fees | material_bans | pharmacy_delivery no The kind of rule.

A Rule

A list gives each rule in short form. One rule fetched by its id adds the last four fields. A list answer also has limit, offset and more; ask for the next page with offset while more is true.

Field Meaning
id Stable identifier. Use it with get_rule or /rules/{id}.
url The rule's page on the site, for a person to read.
state, state_name Two-letter code and name.
topic packaging_fees, material_bans or pharmacy_delivery.
title, citation, kind What the rule is and where it is published.
status, status_label Where the rule stands, as a code and in words.
effective_date As written in the source; may be a year or a month.
summary Our plain-English summary.
summary_checked_against_source Whether we compared the summary with the source.
effect_on_packaging restricts_material, adds_cost, limits_content or other. Null for a rule not about shipping packaging.
pharmacy_shipments How a fee or ban treats drug packaging: the reading, the exemption's citation and text, and when it ends. Null for a pharmacy delivery rule.
shipper_parts For each of vial, refrigerant, cooler and carton: covered, exempt, unsettled or untouched. Null when it does not apply.
cold_chain_relevance What the rule means for a cold chain shipper. Full rule only.
key_dates Dated events, each with date and what. Full rule only.
reaches_out_of_state Whether it applies to shippers outside the state. Full rule only.
sources Source documents with title, url, publisher and primary, the primary one first. Full rule only.

Errors

Status Meaning
401 No key, or a key that does not work
404 No rule or state with that id or code
429 Over the key's limit
Error body
{"error": {"code": "not_found", "message": "No rule has that id."}}

An MCP tool that finds nothing answers with a result marked isError, not an HTTP error.

Use of the Data

Every answer is a summary and carries a notice field saying so. It is not legal advice, and the source document controls.

If you show the data to other people, show the source link with each rule, and quote and cite the source document, not the summary.

The Terms of Use cover the API and the MCP server. The Privacy Policy says what is recorded about each call.

Machine-Readable Files

This page is also served as markdown to a request that sends Accept: text/markdown.

/llms.txt Orientation for an agent
/llms-full.txt Orientation and the full reference, in markdown
/openapi.json OpenAPI 3.1 for the REST endpoints
/api JSON index of every address here
/.well-known/mcp.json MCP manifest
/.well-known/oauth-protected-resource Resource metadata (RFC 9728)
/.well-known/api-catalog API catalog (RFC 9727)
Esc

↑ ↓ to move Enter to open