Skip to content
Mastra Blog·· 1 d agoAI score58

Mastra launches built-in MCP server exposing agents, workflows and tools at /api/mcp

Introducing Mastra's Built-in MCP Server

AI summary

Mastra released a built-in MCP server that exposes its agents, workflows and tools at /api/mcp once the @mastra/mcp package is installed and an auth provider is configured. The server ships call_agent, start_workflow and get_trace tools, routes each MCP call through the same server routes and RBAC/FGA checks as standard HTTP requests, and lets users limit exposure via toolsets, include and exclude. It requires @mastra/core@1.83.0 or later, and Mastra documents connecting it to Claude Code with claude mcp add and a bearer token.

Source:Mastra Blog · mastra.ai