Skip to main content
Integrate Firecrawl with Mastra, the TypeScript framework for building AI agents and workflows.

Setup

Create .env file:
Note: If using Node < 20, install dotenv and add import 'dotenv/config' to your code.

Multi-Step Workflow

This example demonstrates a complete workflow that searches, scrapes, and summarizes documentation using Firecrawl and Mastra.
For more examples, check the Mastra documentation.