Skip to main content

Mastra

Use Firecrawl with Mastra for building AI workflows
1 min read

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.