TossMap

Find US hazardous-waste, paint, battery, e-waste, tire and motor-oil drop-off sites by ZIP or city, with official-source eligibility answers. Free remote server (3 lookups/day), then x402 USDC.

Hosted MCP Server

npx add-mcp 'https://api.tossmap.com/mcp'

Installs into Claude Code, Codex, Cursor and more

Documentation

TossMap API for agents

TossMap lists places to recycle or dispose of household materials in covered US metros. Confirm with the operator before driving; a listing does not guarantee acceptance.

Endpoints

  • GET /v1/meta: dataset metadata and prices, free.
  • GET /v1/metros: covered metros, free.
  • GET /v1/coverage?zip=10001: nearest metro, distance and covered (within 100 miles), free. Supply zip, lat and lng, or city and state (covered metro names).
  • GET /v1/search?zip=10001&material=paint: location as above plus at least one material or filter. Materials: tires, paint, e_waste, batteries, motor_oil, household_chemicals (hyphens also accepted). Filters businesses_accepted, fee_charged, residents_only accept yes or no. radius_mi defaults to 25, maximum 100; limit defaults to 10, maximum 10. Results are sorted by distance.
  • GET /v1/facilities/{id}: full facility record, $0.005 USDC.
  • GET /v1/snapshot: full dataset, $5.00 USDC. x402 client libraries (@x402/core 2.23+) default to a $1 spend limit; raise your client spend limit to at least $5 to buy the snapshot.
  • GET /openapi.json: API specification; GET /.well-known/x402: payment discovery.

Searches with zero results are free. Three searches with results per IPv4 address or IPv6 /64 prefix per UTC day are free; later searches with results cost $0.01 USDC. X-Free-Searches-Remaining reports the balance on free search responses and challenges. Count is before limit.

MCP server

Streamable HTTP endpoint: https://api.tossmap.com/mcp. Tools: search_facilities, get_facility, coverage. Coverage and empty searches are free; three result-bearing searches or facility lookups per caller per day are free. Further calls use the paid REST API.

{"mcpServers":{"tossmap":{"url":"https://api.tossmap.com/mcp"}}}

Payment (x402 v2 exact)

Current network: eip155:8453; USDC asset: 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913; payTo: 0x80B72C455692E44842ac274B3D709169A6689B0a; facilitator: https://v2.facilitator.mogami.tech. These values reflect the current Worker configuration. Amounts are USDC base units (6 decimals).

  1. GET a paid resource. A 402 has JSON describing the price and a base64 PAYMENT-REQUIRED header; search challenges include match count without results.
  2. Inspect network, asset, amount and payTo. Use an x402 v2 client to sign the accepted requirements.
  3. Retry the same URL with PAYMENT-SIGNATURE. On success PAYMENT-RESPONSE contains the base64 settlement receipt. Retrying the same signature and URL within 15 minutes returns the cached receipt.

Example with @x402/fetch, @x402/evm and viem (supply your own account securely):

import { wrapFetchWithPaymentFromConfig } from '@x402/fetch';
import { ExactEvmScheme } from '@x402/evm/exact/client';
const paidFetch = wrapFetchWithPaymentFromConfig(fetch, { schemes: [{ network: 'eip155:*', client: new ExactEvmScheme(account) }] });
const response = await paidFetch('https://api.tossmap.com/v1/facilities/dsny-special-waste-drop-off-bronx');
console.log(await response.json());

Examples (trimmed)

GET /v1/coverage?zip=10001
{"nearest_metro":{"city":"New York","state":"NY","distance_mi":1.2},"covered":true,"disclaimer":"..."}
GET /v1/search?zip=10001&material=paint
{"count":1,"results":[{"id":"...","name":"...","location":{"distance_mi":2.1}}],"disclaimer":"..."}
GET /v1/facilities/dsny-special-waste-drop-off-bronx
{"facility":{"id":"dsny-special-waste-drop-off-bronx","name":"...","questions":{}},"disclaimer":"..."}

Errors

400: correct the location, filters or signature. 402: inspect PAYMENT-REQUIRED and pay, or inspect reason if verification failed. 404: check endpoint or facility ID. 409: signature already used or settlement uncertain; contact the operator. 429: wait for Retry-After seconds. 502: facilitator rejected settlement; inspect reason and contact the operator. 503: configuration or facilitator unavailable, or settlement outcome unknown; contact the operator if settlement is uncertain.

Geocoding: US Census Bureau and © OpenStreetMap contributors (Nominatim). Coordinates are approximate; some facilities have no coordinates and do not appear in radius searches.