Skip to content
MCP server
RegistryRemote

cpsc-recalls-mcp-server MCP Server

US consumer product recalls from the CPSC: hazards, remedies, and affected products.

cpsc-recalls-mcp-server scores 71 (Good), licensed Apache-2.0 and written in TypeScript. It can be reached as a remote MCP endpoint. It declares 4 tools. Filed under Uncategorized. GitHub shows 1 stars. Package registries report about 752 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.

by cyanheadsApache-2.0TypeScript1 stars
Trust score
71Good
Trust score 71 of 100, Good

Good trust

71 of 100 from six public signals. Nobody can buy a point.

  • Listed in the official MCP registry.
  • OSI-style license: apache-2.0.
How we score trust
Scorecard

License, quality and maintenance

How grades work
Trust breakdown

Where the 71 comes from

22 + 20 + 5 + 10 + 4 + 10 = 71. Each factor is capped, so no single signal can carry a listing.

Registry22 / 30

Active in the official MCP registry, plus a known vendor namespace.

Registry: 22 of 30 points.
Maintenance20 / 20

How recently the repository saw a commit or release.

Maintenance: 20 of 20 points.
Popularity5 / 20

GitHub stars and weekly downloads, on a log scale.

Popularity: 5 of 20 points.
License10 / 10

A clear, OSI-style open-source license.

License: 10 of 10 points.
Security4 / 10

Not archived, a secure install path, a pinned version.

Security: 4 of 10 points.
Docs10 / 10

A real summary, a README with depth, listed tools.

Docs: 10 of 10 points.

Install

Pick your client, copy the config, paste it in.

Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.

~/Library/Application Support/Claude/claude_desktop_config.json
{  "mcpServers": {    "cyanheads-cpsc-recalls-mcp-server": {      "command": "npx",      "args": [        "-y",        "@cyanheads/cpsc-recalls-mcp-server@0.3.2"      ],      "env": {        "CPSC_CLAMP_LIMITS": "true",        "CPSC_NORMALIZE_RECALL_NUMBERS": "true",        "MCP_LOG_LEVEL": "info"      }    }  }}

Environment variables

NameRequiredNotes
CPSC_CLAMP_LIMITSOptionalServe oversized page requests at the per-tool cap. Set false to reject them.
CPSC_NORMALIZE_RECALL_NUMBERSOptionalAccept printed recall numbers with an optional hyphen, surrounding whitespace, and uppercase suffixes.
MCP_LOG_LEVELOptionalSets the minimum log level for output (e.g., 'debug', 'info', 'warn').
CPSC_CLAMP_LIMITSOptionalServe oversized page requests at the per-tool cap. Set false to reject them.
CPSC_NORMALIZE_RECALL_NUMBERSOptionalAccept printed recall numbers with an optional hyphen, surrounding whitespace, and uppercase suffixes.
MCP_TRANSPORT_TYPEOptionalSelects the HTTP transport.
MCP_HTTP_HOSTOptionalThe hostname for the HTTP server.
MCP_HTTP_PORTOptionalThe port to run the HTTP server on.
MCP_HTTP_ENDPOINT_PATHOptionalThe endpoint path for the MCP server.
MCP_AUTH_MODEOptionalAuthentication mode to use: 'none', 'jwt', or 'oauth'.
MCP_LOG_LEVELOptionalSets the minimum log level for output (e.g., 'debug', 'info', 'warn').

Tools4Tool docs quality grade F

All capabilities

About

Version License Docker MCP SDK npm TypeScript Bun

Install in Claude Desktop Install in Cursor Install in VS Code

Framework

Public Hosted Server: https://cpsc-recalls.caseyjhand.com/mcp


Overview

Consumer product recalls from the CPSC saferproducts.gov database — toys, electronics, furniture, appliances, children's products, tools, and clothing. Search recalls by product, brand, retailer, or hazard, fetch full detail for a specific recall number, or pull a recent-recalls feed for a date window.

Tools

ToolDescription
cpsc_search_recallsSearch by product, company, UPC, hazard, reported incident, remedy, or date, with offset paging
cpsc_get_recallFull detail for a single recall by recall number — hazards, remedy, products, injuries, images, and the official CPSC page
cpsc_get_recentFetch the most recent recalls ordered newest-first, scoped to a configurable date window

Skills

SkillDescription
cpsc-recalls-guideFind and confirm US consumer product recalls with the cpsc_* tools — search formulation, recall-number quirks, and when an empty result proves nothing

CPSC covers consumer products, including some that sit next to another agency's domain: child-resistant packaging for drugs and supplements, ATVs and snowmobiles, bicycle tires, and gun safes and locks. Food and drugs (FDA), on-road vehicles and their tires (NHTSA), boats (USCG), pesticides (EPA), and firearms (ATF) belong to other agencies; every response carries this jurisdiction note.

Capability reference

cpsc_search_recalls tool

  • Combine one or more criteria with AND. Search by title, product name, manufacturer, importer, distributor, retailer, description, remedy instructions, hazard, or injury narrative. Use date_start/date_end for issue dates and updated_start/updated_end for last publication dates.
  • Each text filter matches every word as a case-insensitive substring in any order. Use remedy_option for an exact classified remedy and upc for a barcode or its final six or more digits. Numeric matches in descriptions need confirmation against the full recall.
  • Results include issue and last-published dates, hazards, injury narratives, remedies, products, UPCs, company roles, images, the official recall URL, and data-quality notes. Zero matches return an empty result with effectiveQuery and guidance on which criterion to relax. Errors include missing_criteria, invalid_date_range, upstream_rejected, and upstream_error.
  • limit defaults to 20 and serves up to 500 search records. While has_more is true, advance offset by the number returned. If the cap ends a page early, the notice gives the next offset.

cpsc_get_recall tool

  • Pass a recall number from CPSC’s website (25-036) or the API (25036). Surrounding whitespace and uppercase letter suffixes are accepted by default. The lookup returns the exact canonical number, including any lowercase suffix.
  • Returns the complete record — nullable description (where model numbers usually live), hazards, remedy options and instructions, every product variant, UPCs, injury narrative, company names by role, country of manufacture, images, coordinated-agency recall URLs, and data_quality_notes
  • Failures: not_found (resolve a number through cpsc_search_recalls or cpsc_get_recent; for the bare base of a lettered family such as 01160, the hint names the separate lettered recalls 01160a, 01160b, 01160c), upstream_rejected (not retryable), upstream_error (retryable)

cpsc_get_recent tool

  • days selects a rolling window ending today (1–365 days, default 30). limit defaults to 20 and serves up to 1,000 recent recalls. Use offset to continue within the same window. For older recalls, use the search tool’s date bounds.
  • Each row includes the recall number, date, title, hazards, remedy types, product names, cpsc_url, and data_quality_notes. Open the full record with cpsc_get_recall. Empty windows, exhausted offsets, and pages cut short at the count cap carry a notice. Upstream failures use upstream_rejected or upstream_error.

cpsc-recalls-guide skill

  • Helps an agent check whether a specific product, model, serial, or UPC was recalled, sweep a brand's or retailer's recall history, monitor new or republished recalls for a hazard, and decide whether a product is CPSC's at all
  • Served over MCP as the resource skill://cpsc-recalls-guide/SKILL.md under the template skill://{+path}; also ships in skills/ for plugin installs and the .mcpb bundle

Features

Built on @cyanheads/mcp-ts-core: stdio and Streamable HTTP transports, pluggable auth (none / jwt / oauth), swappable storage (in-memory, filesystem, Supabase, Cloudflare KV/R2/D1), structured logging with optional OpenTelemetry tracing.

CPSC-specific:

  • Full client for the CPSC saferproducts.gov public recalls API — search, single-recall detail, and a recent-recalls feed
  • Text filters run before paging. hazard_search (alias hazard) covers hazard text, product names, and remedy instructions. injury_search searches what CPSC says was reported, including explicit denials of injury.
  • Handles 5-digit recall numbers and the lettered numbers some 1998–2001 records carry, matching the requested number exactly
  • One 50-second budget per call covers every CPSC attempt and retry, so a stalled request ends as a retryable upstream_error before an MCP client's default 60-second timeout
  • Jurisdiction boundary documented in every response — names the drug-packaging, vehicle, tire, and gun-safe products CPSC does recall, and the agencies that own the rest

Agent-friendly output:

  • Provenance on every response — source_note, cpsc_url, and (CPSC source text) blockquote labels distinguish relayed CPSC narrative from the server's own guidance
  • Plain text on both surfaces — the HTML markup and character codes CPSC stores in some records (&amp;, <br>, stray table tags) are converted to plain text before matching and output, and content[] escapes Markdown so model and serial numbers such as 1HFVE05**K4000003 keep every character; recall pages and coordinated recalls render as links, and product images render inline with their captions; HTTP(S) addresses preserve CPSC’s URL values on both surfaces, while other schemes remain visible as text
  • total_found, offset, has_more, and truncated describe each search or recent page. If an oversized limit reaches the per-tool cap with matches left, the notice gives the next offset.
  • data_quality_notes on every response — gaps observed in the upstream record (missing hazard text, no product entries), derived from which fields CPSC left blank rather than any judgment call
  • Jurisdiction note (cpsc_jurisdiction) on every response — lets agents route callers to the correct agency (FDA, NHTSA, USCG, EPA, ATF) when a product is out of scope

Getting started

Connect to the hosted instance (Streamable HTTP, stateless), no install:

claude mcp add --transport http cpsc-recalls-mcp-server https://cpsc-recalls.caseyjhand.com/mcp

Or run it locally:

claude mcp add cpsc-recalls-mcp-server -- npx -y @cyanheads/cpsc-recalls-mcp-server

For other clients, add this to the MCP config file:

{
  "mcpServers": {
    "cpsc-recalls-mcp-server": {
      "command": "npx",
      "args": ["-y", "@cyanheads/cpsc-recalls-mcp-server"]
    }
  }
}

No API key is required — the CPSC public recalls API is freely accessible. For Docker or a source build, see Running the server.

Configuration

All configuration is validated at startup via Zod schemas. Key environment variables:

VariableDescriptionDefault
MCP_TRANSPORT_TYPETransport: stdio or httpstdio
CPSC_CLAMP_LIMITSServe up to the per-tool cap when a larger limit is requested. Set false to advertise and enforce the cap as a strict maximum.true
CPSC_NORMALIZE_RECALL_NUMBERSAccept printed recall numbers. Set false to require five digits and an optional lowercase suffix.true
MCP_HTTP_PORTHTTP server port3010
MCP_HTTP_HOSTHTTP server host127.0.0.1
MCP_HTTP_ENDPOINT_PATHHTTP endpoint path. Startup adds a missing leading / and rejects URLs, query strings, fragments, and route patterns./mcp
MCP_PUBLIC_URLPublic HTTP(S) base URL for reverse-proxy deployments, without user info, query, or fragment—
MCP_SESSION_MODESession handling: auto, stateful, or stateless. The server declares stateless in src/index.ts; setting this overrides it.stateless
MCP_AUTH_MODEAuthentication: none, jwt, or oauthnone
MCP_JWT_EXPECTED_AUDIENCERequired JWT aud claim in JWT mode. Leaving it unset accepts any audience and logs a startup warning.—
MCP_JWT_EXPECTED_ISSUERRequired JWT iss claim in JWT mode. Use it alongside the audience.—
MCP_LOG_LEVELLog level (debug, info, warning, error)info
LOGS_DIRDirectory for log files (Node.js only). Relative paths resolve from the server package.<server-package>/logs
LOG_TOOL_FAILURE_PAYLOADSLog each failed tool call's arguments and result, redacted by key name and capped at LOG_TOOL_FAILURE_PAYLOAD_MAX_BYTES (default 16384). A secret inside a free-form value is not redacted.false
STORAGE_PROVIDER_TYPEStorage backend: in-memory, filesystem, supabase, cloudflare-kv/r2/d1in-memory
OTEL_ENABLEDEnable OpenTelemetryfalse

No server-specific API keys are required. See .env.example for the full list of optional overrides.

Running the server

Local development

Requires Bun v1.4.4 or higher (or Node.js v24+). No API key is needed.

  • Clone and install:

    git clone https://github.com/cyanheads/cpsc-recalls-mcp-server.git
    cd cpsc-recalls-mcp-server && bun install
    cp .env.example .env   # optional — no required API keys
    
  • Build and run the production version:

    # One-time build
    bun run rebuild
    
    # Run the built server
    bun run start:stdio
    # or
    bun run start:http
    

    For Streamable HTTP, set the transport and port; the server listens at http://localhost:3010/mcp:

    MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 bun run start:http
    
  • Run checks and tests:

    bun run devcheck  # Lint, format, typecheck, security
    bun run test      # Vitest test suite
    

Docker

docker build -t cpsc-recalls-mcp-server .
docker run --rm -p 3010:3010 cpsc-recalls-mcp-server

To run the published image over stdio from an MCP client, use "command": "docker" with "args": ["run", "-i", "--rm", "-e", "MCP_TRANSPORT_TYPE=stdio", "ghcr.io/cyanheads/cpsc-recalls-mcp-server:latest"].

The Dockerfile defaults to HTTP transport, stateless session mode, and logs to /var/log/cpsc-recalls-mcp-server. OpenTelemetry peer dependencies are installed by default — build with --build-arg OTEL_ENABLED=false to omit them.

Project structure

DirectoryPurpose
src/index.tscreateApp() entry point — registers tools, serves the published skill from skills/, and inits the CPSC service
skills/cpsc-recalls-guide/SKILL.md, the published agent skill
src/mcp-server/toolsTool definitions (definitions/*.tool.ts) — search, get-recall, get-recent — plus response-budget.ts, the page size budget the two list tools share, and markdown-escape.ts, the escaping applied to CPSC text in content[]
src/services/cpsc-recallCPSC recall service — API client, types, and normalize-text.ts, which converts CPSC's HTML markup and character codes to plain text

Development guide

See CLAUDE.md / AGENTS.md for development guidelines and architectural rules. The short version:

  • Handlers throw, framework catches — no try/catch in tool logic
  • Use ctx.log for request-scoped logging, ctx.state for tenant-scoped storage
  • Register new tools in the createApp() arrays in src/index.ts
  • Wrap external API calls: validate raw → normalize to domain type → return output schema; never fabricate missing fields

Contributing

Issues are welcome. Run checks and tests before submitting:

bun run devcheck
bun run test

License

Apache-2.0 — see LICENSE for details.

Frequently asked questions

What is cpsc-recalls-mcp-server MCP Server?

US consumer product recalls from the CPSC: hazards, remedies, and affected products.

How do I install cpsc-recalls-mcp-server MCP Server in Claude Desktop, Cursor, or VS Code?

Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. cpsc-recalls-mcp-server MCP Server runs locally from the npm package @cyanheads/cpsc-recalls-mcp-server with the command npx -y @cyanheads/cpsc-recalls-mcp-server@0.3.2.

Is cpsc-recalls-mcp-server MCP Server free and open source?

Yes. cpsc-recalls-mcp-server MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.

Does cpsc-recalls-mcp-server MCP Server support remote (HTTP) connections?

Yes. cpsc-recalls-mcp-server MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.

What tools does cpsc-recalls-mcp-server MCP Server provide?

cpsc-recalls-mcp-server MCP Server provides 4 tools: cpsc_get_recall, cpsc_get_recent, cpsc_search_recalls, and ctx.log. See the full tool list for descriptions and parameters.

How is cpsc-recalls-mcp-server MCP Server's trust score calculated?

cpsc-recalls-mcp-server MCP Server scores 71 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.

Reviews

No reviews yet

—Be the first to review

5 star0 reviews at 5 stars
4 star0 reviews at 4 stars
3 star0 reviews at 3 stars
2 star0 reviews at 2 stars
1 star0 reviews at 1 stars

No published reviews yet. Used it? Tell the next person how it went.

Add badge to your README

Paste either snippet into the repository README. The image links to this listing.

Listed on MCPpedia

Top 5 MCP servers

Daily or weekly. Confirm by email, unsubscribe any time.

How often

Manage this listing

Claim this server