How to Use the Mindbody MCP in Mastra AI
Build resilient, self-healing Mindbody automation workflows using Mastra AI agents that handle failed bookings and retries automatically.
Works with every AI agent you already use
…and any MCP-compatible client
Connect Mindbody MCP to Mastra AI
Create your Vinkius account to connect Mindbody to Mastra AI and route execution through our secure gateway. The platform manages server hosting, runtime updates, and security layers. Configuration requires no manual server provisioning.
Automate studio bookings with Mastra AI workflows
Studio bookings fail when spots fill up fast. Mastra AI lets you build multi-step workflows that check `list_classes` and handle failures with built-in retry logic. If a booking fails, the agent automatically looks for alternative times without crashing the execution loop. You can define explicit fallback paths in your TypeScript code. If a preferred instructor is out, the workflow queries `list_staff_schedule` to find a backup trainer and schedules the class, keeping your studio's schedule fully optimized.
Resilient membership tracking using Mastra agents
Stop letting expired packages slip through the cracks. Set up a background worker that runs a Mastra agent to scan client profiles. The agent calls `get_client_memberships` to check for expiration dates and triggers renewal alerts when balances run low. If the membership has expired, the agent branches the workflow to query `list_services_pricing` and email the client their best renewal options. The entire process runs on a schedule with automatic backoff to handle rate limits.
Keep your studio inventory accurate with this MCP Server
Managing retail stock shouldn't require manual audits. Your agent can run a daily workflow that calls `list_products` to check inventory levels across all locations. If stock drops below your threshold, the agent flags the item for reorder. You can tie this directly to sales tracking. By combining `list_sales` with inventory updates, the agent spots trends in retail purchases and suggests pricing adjustments based on actual purchase velocity.
Set up Mindbody MCP in Mastra AI
Prerequisites
- Node.js 18+ and a TypeScript project
-
@mastra/mcp+@mastra/corepackages - Active Vinkius subscription with a valid endpoint token
- 1
Install dependencies
Run
npm install @mastra/mcp @mastra/coreplus your preferred model provider (e.g.@ai-sdk/openai). - 2
Configure the MCPClient
Create an
MCPClientwith your Vinkius endpoint as aURLobject. Replace[YOUR_TOKEN_HERE]with your token from cloud.vinkius.com. - 3
Discover and inject tools
Call
mcpClient.listTools()and spread the result into your agent'stoolsobject. All Mindbody tools become native Mastra tools. - 4
Run with any model
Swap
openai("gpt-4o")for any AI SDK-compatible provider. Callagent.generate()and the agent routes tool calls through MCP automatically.
import { MCPClient } from "@mastra/mcp";
import { Agent } from "@mastra/core/agent";
import { openai } from "@ai-sdk/openai";
const mcpClient = new MCPClient({
id: "mindbody-mcp-client",
servers: {
"mindbody-mcp": {
url: new URL(
"https://edge.vinkius.com/[YOUR_TOKEN_HERE]/mcp"
),
},
},
});
const agent = new Agent({
name: "Mindbody Agent",
model: openai("gpt-4o"),
instructions: "You have access to Mindbody tools.",
tools: {
...(await mcpClient.listTools()),
},
});
const result = await agent.generate(
"List recent Mindbody transactions"
);
console.log(result.text); Independent Platform Disclaimer: Vinkius is an independent platform and is not affiliated with, endorsed by, sponsored by, verified by, or otherwise authorized by Mindbody. All third-party trademarks, logos, and brand names are the property of their respective owners. Their use on this website is strictly for informational purposes to identify service compatibility and interoperability.
Why Choose Vinkius
Vinkius connects your tools to AI with real-time monitoring and automatic cost savings — all from one dashboard.
Real-time monitoring
Live
visibility into every interaction
Connect your favorite tools to your AI and see exactly what's happening — every request, every response, in real time.
Built-in savings
60%
lower AI costs
Vinkius compresses data between your apps and your AI automatically. Lower bills every month — no configuration required.
Single dashboard
One
place for every integration
Every tool your AI connects to, managed from a single screen. One account, complete control.
Common questions about Mindbody MCP in Mastra AI
Use it with your favorite AI tools
Connect this server to Cursor, Claude, VS Code, and more.
Start using the Mindbody MCP today
We host it, we monitor it, we maintain it. You just paste one token.