Comparison
Mastra vs Pydantic AI
A like-for-like, spec-level comparison. Both entries are verified against their docs and repo.
Mastra
The TypeScript-first agent framework.
Pydantic AI
Type-safe agent framework from the Pydantic team.
| Spec | Mastra | Pydantic AI |
|---|---|---|
| Category | framework | framework |
| License | Elastic-2.0 | MIT |
| 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, byok | claude, gpt, gemini, byok |
| Languages | typescript | python |
| GitHub stars | 25.4k | 18.0k |
| Last activity | 2026-06-25 | 2026-06-25 |