본문으로 건너뛰기

© 2026 Molayo

HN중요요약2026. 04. 24. 13:14

AI 에이전트 개발을 위한 오픈소스 프레임워크, Mastra 소개

요약

Mastra는 React, Next.js 등 현대적인 TypeScript 스택 기반으로 AI 애플리케이션과 자율 에이전트를 구축할 수 있도록 설계된 오픈소스 프레임워크입니다. 40개 이상의 모델 제공업체와 연결되는 표준 인터페이스를 통해 OpenAI, Anthropic, Gemini 등의 다양한 LLM을 통합할 수 있습니다. 또한, 복잡한 다단계 프로세스를 제어하는 그래프 기반 워크플로우 엔진과 사용자의 개입이 필요한 지점(Human-in-the-loop)을 구현하여 신뢰성 높은 AI 제품 개발의 전 과정을 지원합니다.

핵심 포인트

  • 40개 이상의 LLM 제공업체와 연결되는 표준 인터페이스를 통해 OpenAI, Anthropic, Gemini 등 다양한 모델을 통합할 수 있습니다.
  • 자율 에이전트(Agents) 기능을 제공하여 목표에 대해 추론하고 도구 사용을 결정하며 최종 답변까지 반복적으로 작업을 수행합니다.
  • 그래프 기반 워크플로우 엔진을 통해 `.then()`, `.branch()`, `.parallel()` 등의 직관적인 문법으로 복잡한 다단계 프로세스를 오케스트레이션할 수 있습니다.
  • Human-in-the-loop 기능을 지원하여 에이전트나 워크플로우를 일시 중지하고 사용자 승인 후 재개함으로써 신뢰성을 높입니다.
  • 내장된 평가(Evals) 및 관측 가능성(Observability) 도구를 제공하여 AI 제품의 지속적인 측정, 개선, 검증을 지원합니다.

Mastra is a framework for building AI-powered applications and agents with a modern TypeScript stack.

It includes everything you need to go from early prototypes to production-ready applications. Mastra integrates with frontend and backend frameworks like React, Next.js, and Node, or you can deploy it anywhere as a standalone server. It's the easiest way to build, tune, and scale reliable AI products.

Purpose-built for TypeScript and designed around established AI patterns, Mastra gives you everything you need to build great AI applications out-of-the-box.

Some highlights include:

  • Model routing - Connect to 40+ providers through one standard interface. Use models from OpenAI, Anthropic, Gemini, and more.
  • Agents - Build autonomous agents that use LLMs and tools to solve open-ended tasks. Agents reason about goals, decide which tools to use, and iterate internally until the model emits a final answer or an optional stopping condition is met.
  • Workflows - When you need explicit control over execution, use Mastra's graph-based workflow engine to orchestrate complex multi-step processes. Mastra workflows use an intuitive syntax for control flow (.then(), .branch(), .parallel()).
  • Human-in-the-loop - Suspend an agent or workflow and await user input or approval before resuming. Mastra uses storage to remember execution state, so you can pause indefinitely and resume where you left off.
  • Context management - Give your agents the right context at the right time. Provide conversation history, retrieve data from your sources (APIs, databases, files), and add human-like working and semantic memory so your agents behave coherently.
  • Integrations - Bundle agents and workflows into existing React, Next.js, or Node.js apps, or ship them as standalone endpoints. When building UIs, integrate with agentic libraries like Vercel's AI SDK UI and CopilotKit to bring your AI assistant to life on the web.
  • MCP servers - Author Model Context Protocol servers, exposing agents, tools, and other structured resources via the MCP interface. These can then be accessed by any system or agent that supports the protocol.
  • Production essentials - Shipping reliable agents takes ongoing insight, evaluation, and iteration. With built-in evals and observability, Mastra gives you the tools to observe, measure, and refine continuously.

The recommended way to get started with Mastra is by running the command below:
npm create mastra@latest

Follow the Installation guide for step-by-step setup with the CLI or a manual install.

If you're new to AI agents, check out our templates, course, and YouTube videos to start building with Mastra today.

Visit our official documentation.

Learn how to make your agent a Mastra expert by following the Build with AI guide.

Looking to contribute? All types of help are appreciated, from coding to testing and feature specification. Read CONTRIBUTING.md for more details on how to get involved.

If you are a developer and would like to contribute with code, please open an issue to discuss before opening a Pull Request.

Information about the project setup can be found in the development documentation

We have an open community Discord. Come and say hello and let us know if you have any questions or need any help getting things running.

It's also super helpful if you leave the project a star here at the top of the page

This repository uses a dual-license model:

  • Apache License 2.0 — The core framework and the vast majority of this codebase is open source under Apache-2.0.
  • Mastra Enterprise License — Code in any directory named ee/ (e.g., packages/core/src/auth/ee/) is source-available under the Mastra Enterprise License. These features require a valid enterprise license for production use but can be freely used for development and testing.

See LICENSE.md for the full license mapping and ee/LICENSE for the enterprise license terms.

We are committed to maintaining the security of this repo and of Mastra as a whole. If you discover a security finding we ask you to please responsibly disclose this to us at security@mastra.ai and we will get back to you.

AI 자동 생성 콘텐츠

본 콘텐츠는 HN AI Engineering의 원문을 AI가 자동으로 요약·번역·분석한 것입니다. 원 저작권은 원저작자에게 있으며, 정확한 내용은 반드시 원문을 확인해 주세요.

원문 바로가기
7

댓글

0