Comparison
LlamaIndex vs Mastra
A like-for-like, spec-level comparison. Both entries are verified against their docs and repo.
LlamaIndex
The data framework for LLM applications.
Mastra
The TypeScript-first agent framework.
| Spec | LlamaIndex | Mastra |
|---|---|---|
| Category | framework | framework |
| License | MIT | Elastic-2.0 |
| Open source | Yes | Yes |
| Self-hostable | Yes | Yes |
| MCP support | Yes | Yes |
| Pricing | free | free |
| Starting price | BYOK usage cost | BYOK usage cost |
| Models | claude, gpt, gemini, local, byok | claude, gpt, gemini, byok |
| Languages | python, typescript | typescript |
| GitHub stars | 50.4k | 25.4k |
| Last activity | 2026-06-24 | 2026-06-25 |