Bifra

Quickstart

Turn any website into a typed REST + MCP API for humans or agents.

Bifra turns a website (a public page or a logged-in web app) into a hosted, typed REST API and an MCP server. An agent studies the site, proposes a typed spec you approve, then builds, deploys, and verifies a live API. Build it once, make it queryable by humans or agents.

Install

npm install -g bifra
# or run without installing:
npx bifra <url>

From source (in the monorepo):

pnpm --filter bifra build
cd packages/cli && pnpm link --global

Configure your keys

Bifra needs an Anthropic key (the build agent), a Steel key (the browser used to study the site), and a Cloudflare account + API token (where APIs deploy).

bifra setup      # stored in ~/.bifra/config.json (chmod 600)
bifra doctor     # validates each key against its API

You can also use BIFRA_* environment variables instead of bifra setup.

Build your first API

bifra https://quotes.toscrape.com/scroll --goal "list quotes with pagination"

You'll watch the agent move through study → spec → build → deploy → verify, approve the proposed spec, and get a live URL plus curl examples and an MCP endpoint. It's both a REST API and an MCP server, no extra work.

Where the agent runs

By default the agent loop runs on your machine (the Claude Agent SDK). Pass --managed to run the same agent on Anthropic's Managed Agents sandbox instead: same prompt, same tools, only the sandbox changes.

Next steps

On this page