Starter
Free for everyone
- 100K observability events+ $10/100K
- 24 CPU hours+ $0.35/hr
- 15 days of data retention
- Unlimited users, deployments, and projects

MASTRA SERVER
Push code, get a URL. Routing, scaling, and infrastructure are handled for you.

Start building with a free account, or explore our pricing for more
Full PricingFree for everyone
For growing teams
For teams at scale
Custom volume and retention, with RBAC, audit logs, support and uptime SLAs, and a dedicated support engineer.
How Replit Agent 3 creates thousands of Mastra agents every day
How SoftBank is restoring Japan's white-collar productivity using Mastra
How Sanity Built a Content Agent That Actually Understands Your CMS
How Marsh used Mastra to build Agentic Search for 100k employees
Mastra Server takes your Mastra agents from local development to a live API endpoint in one command. Deploy on infrastructure that understands agents, workflows, memory and telemetry with zero configuration. Mastra Server exposes your agents and workflows as API endpoints automatically, handles routing and scaling and plugs into React, mobile, Slack or whatever your users already live in. Secure endpoints with JWT, Clerk, Supabase, Firebase, Auth0 or WorkOS. Your agents are part of your infrastructure.
Mastra Server deploys with a single mastra server deploy command that creates a live endpoint with routing, scaling and infrastructure handled for you. The CLI outputs the URL of your deployed Server instance on a successful deploy.
Mastra Server automatically exposes all registered agents and workflows as REST API endpoints when you deploy. Explore all available endpoints in the OpenAPI specification at /api/openapi.json or test them interactively in the Swagger UI at /swagger-ui. Call agent and workflow endpoints from any service, at any scale.
Mastra Server supports adapters for Express, Hono and other HTTP servers. Build adapters for frameworks not officially supported. The Mastra Client SDK provides a type-safe client for calling agents, workflows and tools from browser or server environments.
Mastra Server supports JWT, Clerk, Supabase, Firebase, Auth0 and WorkOS for securing agent endpoints. Configure authentication by adding an auth provider to your server configuration. Use middleware to intercept requests for authentication, logging, CORS or injecting request-specific context.
Mastra Server redacts system prompts, tool definitions, API keys and similar data from every streaming response before sending it to clients. Stream data redaction is enabled by default for both the generated server and server adapters.