Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
cyanheads avatar

Cpsc Recalls MCP

  • 1 repo stars
  • Updated July 30, 2026
  • cyanheads/cpsc-recalls-mcp-server

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

About

US consumer product recalls from the CPSC - hazards, remedies, and affected products. Exposes 3 MCP tools including io.github.cyanheads/cpsc-recalls-mcp-server, MCP_LOG_LEVEL, 3 tools for searching and retrieving CPSC consumer product recall data, | Tool | Description |. US consumer product recalls from the CPSC - hazards, remedies, and affected products. US consumer product recalls from the CPSC - hazards, remedies, and affected products. "name": "io.github.cyanheads/cpsc-recalls-mcp-server", Install via Claude Desktop, Cursor, or any MCP-compatible client using the server manifest from the upstream repository.

  • US consumer product recalls from the CPSC - hazards, remedies, and affected products.
  • 3 registered MCP tools for structured agent access.
  • Category: Monitoring with idea/research journey placement.
  • Compatible with Claude Desktop, Cursor, and MCP clients.
  • Upstream manifest: cpsc-recalls-mcp-server.

Cpsc Recalls MCP by the numbers

  • Exposes 3 verified tools (MCP introspection)
  • Data as of Aug 10, 2026 (Skillselion catalog sync)
terminal
claude mcp add --env MCP_LOG_LEVEL=YOUR_MCP_LOG_LEVEL cpsc-recalls-mcp-server -- npx -y @cyanheads/cpsc-recalls-mcp-server run

Add your badge

Show developers this MCP server is listed on Skillselion. Paste this into your README.

Listed on Skillselion
repo stars1
Package@cyanheads/cpsc-recalls-mcp-server
TransportSTDIO, HTTP
AuthNone
Tools3
Last updatedJuly 30, 2026
Repositorycyanheads/cpsc-recalls-mcp-server

How do I connect Cpsc Recalls Mcp Server to my MCP client?

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

Who is it for?

Teams wiring Cpsc Recalls Mcp Server into Claude, Cursor, or custom agents for monitoring.

Skip if: Skip when you need a non-MCP SDK or hosted API without stdio/SSE transport.

What you get

Working Cpsc Recalls Mcp Server MCP server with verified tool registration and client config.

  • Agent-accessible CPSC recall queries with hazard and remedy context
  • Faster validate-phase safety scans for physical or marketplace products

By the numbers

  • [object Object]
At a glance

Cpsc Recalls Mcp Server capabilities & compatibility

Capabilities
cpsc recalls mcp server mcp tool registration · cpsc recalls mcp server client configuration · cpsc recalls mcp server agent workflow integrati
Use cases
research
Runs
Runs locally

Tools 3

Public tool metadata - what this server can do for an agent.

cpsc_search_recalls8 params

Search consumer product recalls from the CPSC (Consumer Product Safety Commission) database. Covers toys, electronics, furniture, appliances, children's products, tools, and clothing — everything under CPSC jurisdiction. Does NOT cover food/drugs (FDA), motor vehicles/tires (NHTSA), boats (USCG), or pesticides (EPA). All filter fields are optional substring matches that combine with AND. For hazard-type filtering ("fire", "choking", "burn"), use description_search — the dedicated Hazard filter is non-functional in the upstream API. When manufacturer returns no results, try importer or retailer: many recalls list the importer or retailer as the primary responsible org. Use cpsc_get_recall with a recall_number from results to retrieve the full record including complete description, all images, and incident reports.

  • product_namestringProduct name to search for, e.g. "crib", "space heater", "bicycle". Substring match — partial names work.
  • manufacturerstringManufacturer name, e.g. "Samsung", "LEGO". Substring match against the Manufacturers array. Note: many recalls list the importer or retailer as the primary org rather than the manufacturer — try importer or retailer if this returns no results.
  • retailerstringRetailer name, e.g. "Walmart", "Target", "Amazon". Substring match against the retailer narrative (which includes store name, dates sold, and price).
  • importerstringImporter company name. Use when searching for recalls by the company that brought the product into the US.
  • description_searchstringKeyword search within the recall Description field only (does not search Title or Hazards text). Use for hazard types like "fire", "choking", "burn", or to find product details not captured in product_name. Note: hazard keywords often appear in the Description field — this is the correct filter for hazard-type searching since the Hazard filter param is non-functional upstream.
  • date_startInclude only recalls on or after this date. ISO 8601 format: "YYYY-MM-DD".
  • date_endInclude only recalls on or before this date. ISO 8601 format: "YYYY-MM-DD".
  • limitintegerMaximum number of results to return (applied client-side — the API returns all matches). Defaults to 20.
cpsc_get_recall1 param

Full detail for a single CPSC recall by recall number. Returns the complete record: hazard description, remedy instructions, all product variants, incident/injury reports, images, and the official CPSC recall page URL. Use after cpsc_search_recalls or cpsc_get_recent to get the full picture on a specific recall. CPSC jurisdiction: consumer products only — food, vehicles, drugs, and pesticides are covered by other agencies.

  • recall_numberstringrequiredCPSC recall number. Modern records (2002–present) are 5-digit numeric, e.g. "25043". Historical records from 1998–2001 may have a letter suffix a–d, e.g. "99003a". Obtain from cpsc_search_recalls results.
cpsc_get_recent2 params

Fetch the most recent CPSC consumer product recalls, ordered newest-first. Use for "what's been recalled lately?" or a product safety feed. Always applies a date window (default: last 30 days) — without a date filter the API returns all 9,800+ records. CPSC jurisdiction: consumer products only — food, vehicles, drugs, and pesticides are covered by other agencies.

  • daysintegerLook back this many days from today. Defaults to 30. Use 7 for a weekly digest, 90 for a quarterly review.
  • limitintegerMaximum number of recalls to return. Defaults to 20.
README.md

@cyanheads/cpsc-recalls-mcp-server

Search and retrieve US consumer product recalls from the CPSC (Consumer Product Safety Commission) via MCP. STDIO or Streamable HTTP.

3 Tools

Version License Docker MCP SDK npm TypeScript Bun

Install in Claude Desktop Install in Cursor Install in VS Code

Framework


Tools

3 tools for searching and retrieving CPSC consumer product recall data:

Tool Description
cpsc_search_recalls Search consumer product recalls by product name, brand, retailer, importer, or description keyword, with optional date filtering
cpsc_get_recall Full detail for a single recall by recall number — hazards, remedy, products, injuries, images, and the official CPSC page
cpsc_get_recent Fetch the most recent recalls ordered newest-first, scoped to a configurable date window

CPSC jurisdiction: Consumer products only — toys, electronics, furniture, appliances, children's products, tools, and clothing. Food and drugs (FDA), motor vehicles and tires (NHTSA), boats (USCG), and pesticides (EPA) are not in this database. Every response includes a jurisdiction note.

Data sourced from the U.S. Consumer Product Safety Commission via the CPSC public recalls API.

cpsc_search_recalls

Search recalls with flexible filtering across product, organization, and description fields.

  • Filter by product name, manufacturer, retailer, importer, or description keyword — all fields are optional substring matches that combine with AND
  • Date range filtering via date_start / date_end (ISO 8601)
  • Client-side limit (1–200, default 20) applied after fetching all matching records
  • Returns hazard descriptions, remedy options, remedy instructions, product list, UPCs, manufacturer/importer/retailer names, images, and the CPSC recall page URL
  • Includes total_found and truncated fields for pagination awareness
  • Note: the Hazard filter param is non-functional in the upstream API — use description_search for hazard-type keywords like "fire", "choking", or "burn"
  • When manufacturer returns no results, try importer or retailer — many recalls list the importer as the primary organization

cpsc_get_recall

Full detail for a single CPSC recall by recall number.

  • Accepts modern 5-digit recall numbers (e.g. "25043") and historical 1998–2001 records with letter suffixes (e.g. "99003a")
  • Returns the complete record: full description, all hazard descriptions, remedy type and instructions, all product variants with unit counts, UPCs, incident/injury narrative, manufacturer and importer names, retailer names with sale date ranges, country of manufacture, images, and coordinated agency recall URLs
  • Model numbers are typically embedded in the description text, not in a structured field
  • Use cpsc_search_recalls or cpsc_get_recent to find a recall number first

cpsc_get_recent

Fetch the most recent CPSC recalls, ordered newest-first.

  • Configurable look-back window of 1–365 days (default 30)
  • Limit of 1–100 results (default 20)
  • Always applies a date window — without one, the upstream API returns 9,800+ records
  • Returns a lightweight record per recall: number, date, title, hazards, remedy types, product names, and CPSC URL
  • Use cpsc_get_recall to retrieve full detail for any result

Features

Built on @cyanheads/mcp-ts-core:

  • Declarative tool definitions — single file per tool, framework handles registration and validation
  • Unified error handling — handlers throw, framework catches, classifies, and formats
  • Pluggable auth: none, jwt, oauth
  • Swappable storage backends: in-memory, filesystem, Supabase, Cloudflare KV/R2/D1
  • Structured logging with optional OpenTelemetry tracing
  • STDIO and Streamable HTTP transports

CPSC-specific:

  • Full integration with the CPSC saferproducts.gov public recalls API
  • Client-side filtering applied over complete API result sets for accurate total_found counts
  • Jurisdiction boundary documented in every response — prevents misattribution of food, vehicle, or drug recalls

Agent-friendly output:

  • Jurisdiction note on every response — agents can route callers to the correct agency (FDA, NHTSA, USCG, EPA) when the product is out of scope
  • total_found + truncated fields on search/recent responses — agents can detect when results are clipped and suggest narrowing filters
  • cpsc_url on every recall — authoritative source link for consumer verification

Getting started

Public Hosted Instance

A public instance is available at https://cpsc-recalls.caseyjhand.com/mcp — no installation required. Point any MCP client at it via Streamable HTTP:

{
  "mcpServers": {
    "cpsc-recalls-mcp-server": {
      "type": "streamable-http",
      "url": "https://cpsc-recalls.caseyjhand.com/mcp"
    }
  }
}

Self-Hosted / Local

Add the following to your MCP client configuration file.

{
  "mcpServers": {
    "cpsc-recalls-mcp-server": {
      "type": "stdio",
      "command": "bunx",
      "args": ["@cyanheads/cpsc-recalls-mcp-server@latest"],
      "env": {
        "MCP_TRANSPORT_TYPE": "stdio",
        "MCP_LOG_LEVEL": "info"
      }
    }
  }
}

Or with npx (no Bun required):

{
  "mcpServers": {
    "cpsc-recalls-mcp-server": {
      "type": "stdio",
      "command": "npx",
      "args": ["-y", "@cyanheads/cpsc-recalls-mcp-server@latest"],
      "env": {
        "MCP_TRANSPORT_TYPE": "stdio",
        "MCP_LOG_LEVEL": "info"
      }
    }
  }
}

Or with Docker:

{
  "mcpServers": {
    "cpsc-recalls-mcp-server": {
      "type": "stdio",
      "command": "docker",
      "args": ["run", "-i", "--rm", "-e", "MCP_TRANSPORT_TYPE=stdio", "ghcr.io/cyanheads/cpsc-recalls-mcp-server:latest"]
    }
  }
}

For Streamable HTTP, set the transport and start the server:

MCP_TRANSPORT_TYPE=http MCP_HTTP_PORT=3010 bun run start:http
# Server listens at http://localhost:3010/mcp

Prerequisites

  • Bun v1.3.0 or higher (or Node.js v24+).
  • No API key required — the CPSC public recalls API is freely accessible.

Installation

  1. Clone the repository:
git clone https://github.com/cyanheads/cpsc-recalls-mcp-server.git
  1. Navigate into the directory:
cd cpsc-recalls-mcp-server
  1. Install dependencies:
bun install
  1. Configure environment:
cp .env.example .env
# edit .env if needed — no required API keys

Configuration

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

Variable Description Default
MCP_TRANSPORT_TYPE Transport: stdio or http stdio
MCP_HTTP_PORT HTTP server port 3010
MCP_HTTP_HOST HTTP server host 127.0.0.1
MCP_HTTP_ENDPOINT_PATH HTTP endpoint path /mcp
MCP_PUBLIC_URL Public origin for TLS-terminating reverse-proxy deployments
MCP_AUTH_MODE Authentication: none, jwt, or oauth none
MCP_LOG_LEVEL Log level (debug, info, warning, error) info
LOGS_DIR Directory for log files (Node.js only) <project-root>/logs
STORAGE_PROVIDER_TYPE Storage backend: in-memory, filesystem, supabase, cloudflare-kv/r2/d1 in-memory
OTEL_ENABLED Enable OpenTelemetry false

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

Running the server

Local development

  • 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
    
  • 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

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

Directory Purpose
src/index.ts createApp() entry point — registers tools and inits the CPSC service
src/mcp-server/tools Tool definitions (*.tool.ts). Three tools: search, get-recall, get-recent
src/services/cpsc-recall CPSC recall service — API client, types, normalization

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 and pull requests are welcome. Run checks and tests before submitting:

bun run devcheck
bun run test

License

Apache-2.0 — see LICENSE for details.

Recommended MCP Servers

How it compares

Government recall feed MCP, not a code review or security pentest skill.

FAQ

What does cpsc recalls mcp server MCP do?

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

When should I use cpsc recalls mcp server?

User asks about Cpsc Recalls MCP mcp, us consumer product recalls from the cpsc - hazards, remedies, and aff.

Is this MCP server safe to install?

Review the Security Audits panel and upstream source before connecting in production.

Monitoringmonitoring

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.