Skip to content
CribScore
Skip to content
CribScore Docs

Quickstart

Quickstart

Pick your transport — REST cURL, MCP package, or OpenAPI spec — and make your first authenticated call to CribScore in under two minutes.

Get an API key#

Every CribScore surface (REST, MCP, webhooks, decision memo) authenticates with a bearer token. Generate one from the dashboard, then export it once in the shell where you will test calls so the examples below run unmodified.

  • Treat the key like a password: rotate it if you leak it in a repo or notebook.
  • Local development can put the key in a `.env` file consumed by `dotenv` or `direnv`.
  • Production deploys should pull from a secret manager (1Password, Vault, AWS Secrets Manager).

Path 1 — cURL one-liner#

Fastest sanity check. Search facilities by ZIP and confirm you can read trust-tagged provider records. No SDK, no install — just confirm authentication and JSON shape.

curl -sS "https://api.cribscore.co/v1/facilities?zip_code=90003&limit=5" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Accept: application/json"

Path 2 — npm / MCP#

If you are building an agent, install the MCP package and skip request plumbing. The npm package exposes the same tools the hosted MCP surface offers — search, detail, compare, trust, evidence, decision memo — over local stdio transport.

  • Package: @cribscore/mcp — published on npm.
  • Source: https://github.com/musa8026/CribScore/tree/main/apps/mcp
  • Hosted endpoint: https://api.cribscore.co/mcp (bearer auth).
npx -y @cribscore/mcp

Path 3 — OpenAPI spec#

If you are generating typed clients, downloading a Postman collection, or wiring CribScore into an API gateway, start from the OpenAPI document. It is the canonical contract and powers our docs, MCP tool surface, and Postman collection source.

  • Spec: https://api.cribscore.co/openapi.json
  • Postman: https://www.cribscore.co/postman/CribScore.postman_collection.json
  • Spec stays in lock-step with production — regenerated on every release.
curl -sS https://api.cribscore.co/openapi.json -o cribscore.openapi.json