AUTOMATIONSWITCH
CommunityAI / ML

Mastra

by mastra-ai (Gatsby team)

TypeScript framework for building AI-powered applications and agents, with built-in MCP server support. From the team behind Gatsby. 23,680 GitHub stars and 100 commits on main in the last 30 days.

23,680·6 tools·Released DEC 2024·NOASSERTION
npx -y @mastra/cli mcp
Share:

TypeScript framework for building AI-powered applications and agents, with built-in MCP server support. From the team behind Gatsby. 23,680 stars and 100 commits on main in the last 30 days.

Reviewed by M. Nouriel · MAY 2026

INSTALL THIS SERVER

{ "mcpServers": { "mastra": { "command": "npx", "args": [ "-y", "@mastra/cli", "mcp" ] } } }
PrereqNPM: `@mastra/core` and `@mastra/cli`. Run `mastra mcp` from a Mastra project directory. Path: ~/Library/Application Support/Claude/claude_desktop_config.json (macOS).
{ "mcpServers": { "mastra": { "command": "npx", "args": [ "-y", "@mastra/cli", "mcp" ] } } }
{ "mcpServers": { "mastra": { "command": "npx", "args": [ "-y", "@mastra/cli", "mcp" ] } } }
{ "mcpServers": { "mastra": { "command": "npx", "args": [ "-y", "@mastra/cli", "mcp" ] } } }
{ "mcpServers": { "mastra": { "command": "npx", "args": [ "-y", "@mastra/cli", "mcp" ] } } }

6 TOOLS AVAILABLE

list_agents
List Mastra agents defined in the project
Read
invoke_agent
Invoke a Mastra agent with input and return the response
Admin
list_workflows
List Mastra workflows
Read
execute_workflow
Execute a Mastra workflow with input
Admin
list_tools
List tools registered with the Mastra runtime
Read
get_eval
Retrieve evaluation runs and metrics
Read

OUR ASSESSMENT

Strengths
  • 23,680 GitHub stars.
  • 100 commits on main in the last 30 days.
  • Built by the Gatsby team.
  • TypeScript-first agent framework.
  • Built-in MCP server (no separate package).
  • Workflow and eval primitives included.
Weaknesses
  • License NOASSERTION at inspection (no SPDX-recognised LICENSE file at repo root); Apache-2.0 declared in package.json.
  • Framework lock-in versus running standalone tools as MCPs.
  • Mastra Cloud is a paid product for hosted runtime.
Security Notes

Local Mastra runtime requires no authentication. Hosted Mastra Cloud requires MASTRA_API_KEY. Agent invocations execute whatever the framework allows; review the agent prompt path before exposing to production.

Best For

TypeScript teams building agent applications who want their Mastra runtime exposed to other agents via MCP; multi-agent systems where one Claude/GPT instance orchestrates Mastra-defined agents; eval-driven dev where the framework owns the eval loop.

TECHNICAL DETAILS

Language
typescript
Transport
stdiostreamable-http
Clients
Claude DesktopClaude CodeCursorVS CodeWindsurf
License
NOASSERTION
GitHub
mastra-ai/mastra · ★ 23,680
npm
@mastra/core
Last Release
@mastra/core (npm latest)MAY 8, 2026
First Released
DEC 1, 2024

ADOPTION METRICS

// GitHub Stars
23,680

// Reading this23,680 stars on mastra-ai/mastra. 100 commits on main in the last 30 days.

// Popularity Rank
#1
Globally · #1 in AI / ML

// Reading thisPairs with Codebase Memory, Cognee, Arize Phoenix, W&B, Langfuse, Pinecone, Qdrant, AWS Bedrock, ElevenLabs, Fal.ai, Vapi, MLflow in ai-ml. Mastra owns the TypeScript-agent-framework slot.

SOURCES & VERIFICATION

We don't take any single directory's word for it. Before scoring, we cross-reference 4 public MCP sources, install the server ourselves against the clients we cover, and record when we last re-verified.

01
Discovered
Manual submission
First indexed MAY 8, 2026
02
Cross-referenced
4 directories
PulseMCP, MCP.so, Glama, Smithery
03
Verified against
Claude Desktop, Cursor
Installed and tested across clients
04
Last re-checked
MAY 8, 2026
Weekly re-verification
// How other directories see it

The same server, 4 different lenses. We reconcile these signals into our editorial score, which is why our number sometimes diverges from a directory-aggregate star count.

SourceTheir ratingTheir star countTheir downloadsLast synced
AutomationSwitch This page4.6editorial23,680MAY 8, 2026
PulseMCP— unratedunavailableunavailableMAY 8, 2026
MCP.so— unratedunavailableunavailableMAY 8, 2026
Glama— unratedunavailableunavailableMAY 8, 2026
Smithery— unratedunavailableunavailableMAY 8, 2026

// Counts are directory-reported; we don't adjust them. Discrepancies usually come from different snapshot times or star-caching.

OTHER AI / ML MCP SERVERS

Community4.6

Cognee MCP

topoteretes

Knowledge graph plus vector memory engine for AI agents, exposed as an MCP server with V2 session-aware memory tools (remember, recall, forget, improve) and classic V1 ingestion pipelines (cognify, codify). Three transports: stdio, SSE, Streamable HTTP. 16,965 GitHub stars, Apache-2.0.

8 tools16,997
Community4.6

Codebase Memory MCP

DeusData

High-performance code intelligence MCP server for AI coding agents. Indexes a codebase into a queryable knowledge graph in milliseconds, with 14 MCP tools spanning structural search, call-chain tracing, impact analysis, dead-code detection, and Cypher queries. Single static C binary, 66 languages via tree-sitter, zero runtime dependencies.

9 tools2,021
Vendor4.5

Arize Phoenix MCP

Arize AI

LLM observability platform exposing prompts, projects, traces, spans, sessions, datasets, and experiments through MCP. Published to npm as @arizeai/phoenix-mcp, current 4.0.8 (2026-04-29). 9,496 stars on parent monorepo, Elastic License 2.0.

8 tools9,496
Vendor4.5

Qdrant MCP Server

Qdrant

Official Qdrant vector database MCP server. Acts as a semantic memory layer on top of Qdrant: store information with metadata, retrieve via similarity search. Two tools, very small surface area, exceptionally maintained by the Qdrant team. Configurable embedding provider (fastembed default), supports remote and local Qdrant clusters.

2 tools1,373
Official4.4

Amazon Bedrock AgentCore MCP

AWS Labs

Official AWS Labs MCP server for Amazon Bedrock AgentCore: agent runtime, memory, gateway, identity, and observability. Tools fetch curated AgentCore documentation and surface deployment guides for runtime, memory, and gateway resources. Apache-2.0 within awslabs/mcp monorepo (8,924 parent stars).

5 tools8,924
Community4.4

Engram

Gentleman-Programming (community)

Persistent memory system for AI coding agents. Agent-agnostic Go binary with SQLite + FTS5 backend, MCP server, HTTP API, CLI, and TUI. 3,341 GitHub stars and 100 commits on main in the last 30 days.

6 tools3,341
// Get in touch

DISCUSS YOUR
MCP REQUIREMENTS.

Evaluating a server, scoping an internal deployment, or working out whether MCP is the right fit at all. Start the conversation and we will point you at the right piece of the ecosystem.

Discuss Your MCP Requirements →