# crawl — the crawlapi CLI & MCP server

One binary for single pages, resumable URL batches, origin-strict site crawls, account commands, and a local MCP server for coding agents. Every page uses POST /v1/scrape at the same credit price; failures and sign-in walls cost 0.

## Install

```bash
curl -fsSL https://crawlapi.dev/install.sh | sh
brew install crawlapi-dev/tap/crawlapi
npm i -g crawlapi
cargo install crawlapi --locked
```

## Read pages and sites

```bash
crawl login
crawl example.com
crawl news.ycombinator.com -f json
crawl site docs.example.com -o docs/ --max-pages 50
crawl -i urls.txt -o pages/ --max-credits 500
```

## AI agents and MCP

- Hosted MCP is available at https://mcp.crawlapi.dev/mcp with browser OAuth sign-in (no local binary required).
- crawl setup installs the CLI skill and prints the local MCP config for Claude Code, Codex, Cursor, Windsurf, pi, and OpenCode.
- crawl mcp serves four tools (scrape, site, account, login), fences untrusted page content, scrubs credentials, and saves full output from large pages to private temp files on disk.

## Full reference

Command-line documentation: https://docs.crawlapi.dev/cli

## Elsewhere

- Pricing: https://crawlapi.dev/pricing
- Command line: https://crawlapi.dev/cli
- Documentation: https://docs.crawlapi.dev
- Create an account: https://app.crawlapi.dev/sign-up