Docs
Agents and SDKs

Agents

Give a coding agent a server-side Berrycrawl key and a clear integration path.

Berrycrawl publishes machine-readable discovery assets for agents:

  • /llms.txt describes the product, endpoint map, and documentation entry points.
  • /openapi.agent.json contains the public API contract.
  • /api/v1/mcp exposes the hosted Streamable HTTP MCP server. See MCP server.
  1. Read the Agent quickstart.
  2. Inspect the target repository's language, framework, server entry points, and existing env conventions.
  3. Tell the human to create a Berrycrawl key and add BERRYCRAWL_API_KEY=bc_... to the server environment.
  4. Never ask the human to paste the key into chat or commit it.
  5. Add the smallest server-side wrapper needed for the requested endpoint.
  6. Test against berrycrawl.com; that domain does not consume credits.

The key is the only setup credential an agent needs. Berrycrawl still authenticates every data-plane request with Authorization: Bearer $BERRYCRAWL_API_KEY.

Tool design

When you use the hosted MCP server, expose only the tools the model needs. Common choices are berrycrawl_scrape_url, berrycrawl_map_site, berrycrawl_start_crawl, berrycrawl_get_job, and berrycrawl_get_brand. Validate URLs before invoking them, set explicit limits, and return Berrycrawl's failure reason to the model instead of replacing it with guessed content.

For most agent reading tasks, request Markdown with onlyMainContent: true. Use mapping before crawling when the relevant page is unknown. Use maxAge to reuse recent results within one reasoning loop.