Ai! Jack!v2026.04.01-f12
← 홈GitHub 활발

mastra-ai/mastra

원문 보기
★ 27,7912,742 forksTypeScript미국

AI 분석

•Mastra는 TypeScript 기반 AI 앱·에이전트 개발 프레임워크 → React·Next.js·Node 연동과 독립 서버 배포 지원
•개별 모델 API를 직접 연결하는 방식 대비 통합 개발 환경에 초점 → 40개 이상 제공업체의 모델 접근과 도구 사용 에이전트 구현 지원
•도입 전 기존 스택과의 중복 기능 확인 필요 → 모델별 기능 차이와 프레임워크 의존성 검토 권장

Mastra is the modern TypeScript framework for AI-powered applications and agents.

검증 정보

출처
github.com
피드
GitHub 활발
수집/분석 기준
2026. 9. 8. 오전 9:00
원문 확인
원문 열기

본문

# Mastra

[](https://www.npmjs.com/package/@mastra/core)

[](https://github.com/mastra-ai/mastra/actions/workflows/github-code-scanning/codeql)

[](https://github.com/mastra-ai/mastra/stargazers)

[](https://discord.gg/mastra-ai)

[](https://x.com/mastra)

[](https://www.npmjs.com/package/@mastra/core)

[](https://www.ycombinator.com/companies?batch=W25)

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.

## Why Mastra?

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](https://mastra.ai/models): Connect to 40+ providers through one standard interface. Use models from OpenAI, Anthropic, Gemini, and more.
•[Agents](https://mastra.ai/docs/agents/overview): 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](https://mastra.ai/docs/workflows/overview): 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](https://mastra.ai/docs/workflows/suspend-and-resume): Suspend an agent or workflow and await user input or approval before resuming. Mastra uses [storage](https://mastra.ai/docs/server-db/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](https://mastra.ai/docs/memory/conversation-history), [retrieve](https://mastra.ai/docs/rag/overview) data from your sources (APIs, databases, files), and add human-like memory with [Observational Memory](https://mastra.ai/docs/memory/observational-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](https://mastra.ai/docs/tools-mcp/mcp-overview): 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](https://mastra.ai/docs/evals/overview) and [observability](https://mastra.ai/docs/observability/overview), Mastra gives you the tools to observe, measure, and refine continuously.

## Get started

The recommended way to get started with Mastra is by running the command below:

npm create mastra@latest

Follow the [Installation guide](https://mastra.ai/guides/getting-started/quickstart) for step-by-step setup with the CLI or a manual install.

If you're new to AI agents, check out our [templates](https://mastra.ai/docs/getting-started/templates), [course](https://mastra.ai/course), and [YouTube videos](https://youtube.com/@mastra-ai) to start building with Mastra today.

Alternative: Use this pre-built prompt to get started

Create a new Mastra project. Mastra is a framework for AI applications and agents on a modern TypeScript stack. Before running the command, ask these questions one at a time and wait for each answer unless it was already provided:

1. Project name? (default: "my-mastra-app")
2. Provider? (required; options: "openai", "anthropic", "google", "xai")

If the provider isn't supported, ask again and list the supported values.

Run: `npm create mastra@latest <project-name> -- --llm <provider>`

The command creates a default Mastra project, installs Mastra skills for detected coding assistants, and initializes Git when appropriate.

After creation, enter the project directory and start the dev server: `npx bgproc start -n <project-name> -w -- npm run dev`

Open Mastra Studio at `http://localhost:4111`. Studio is the interface for building, testing, and managing agents, workflows, and tools.

Also mention that the Mastra model router provides access to thousands of models: https://mastra.ai/models

## Documentation

Visit our [official documentation](https://mastra.ai/docs).

## Build with AI

관련 아이템