A comprehensive Model Context Protocol (MCP) server that provides AI assistants with complete access to the Mindbody API for fitness and wellness studio management. Perfect for yoga studios, pilates studios, gyms, and wellness centers.
- 50+ Tools covering every aspect of studio operations
- Complete Class Management - View schedules, book clients, manage waitlists, substitute teachers
- Client Management - Add/update clients, track visits, memberships, and balances
- Sales & Commerce - Process payments, sell packages, memberships, and retail products
- Staff Management - View schedules, manage appointments, track availability
- Multi-Location Support - Manage multiple studio locations seamlessly
- High Performance - Built on Node.js with intelligent caching
- Type-Safe - Full TypeScript support with comprehensive types
- Dual Transport Support - STDIO for local development, SSE for production deployment
# Run directly without installation
npx @missionsquad/mcp-mindbody
# Or install globally
npm install -g @missionsquad/mcp-mindbody# Using npx
npx github:vespo92/MindbodyMCP
# Or clone and run locally
git clone https://github.com/vespo92/MindbodyMCP.git
cd MindbodyMCP
npm install
npm run build
npm start- Node.js 18+
- Mindbody API credentials (API Key and Site ID; source credentials are optional and only needed for bearer-token issuance)
- Claude Desktop or any MCP-compatible client
- Sign up for a Mindbody Developer Account
- Create a new app to get your API credentials
- Note your Site ID (use -99 for sandbox testing)
Create a .env file in your project root:
# Copy the example file
cp .env.example .env
# Edit with your credentials
MINDBODY_API_KEY=your_api_key_here
MINDBODY_SITE_ID=-99 # Your site ID
MINDBODY_SOURCE_NAME=your_source_name # Optional; provide with MINDBODY_SOURCE_PASSWORD
MINDBODY_SOURCE_PASSWORD=your_source_password
# Optional settings
MINDBODY_API_URL=https://api.mindbodyonline.com/public/v6
CACHE_TTL_MINUTES=5
MCP_SERVER_NAME=mcp-mindbody
MCP_SERVER_VERSION=2.0.23. MissionSquad Hidden Secret Injection
When mcp-mindbody runs behind MissionSquad mcp-api, Mindbody credentials should be configured as hidden server-scoped secrets, not visible tool arguments.
Hidden contract:
apiKeyrequiredsiteIdrequiredsourceNameoptional, but only valid withsourcePasswordsourcePasswordoptional, but only valid withsourceNameapiUrloptional
MissionSquad server registration example:
{
"name": "mcp-mindbody",
"transportType": "stdio",
"command": "node",
"args": ["/opt/mcp-mindbody/dist/index.js"],
"secretNames": ["apiKey", "siteId", "sourceName", "sourcePassword", "apiUrl"],
"secretFields": [
{
"name": "apiKey",
"label": "Mindbody API key",
"description": "Mindbody public API key for the target site.",
"required": true,
"inputType": "password"
},
{
"name": "siteId",
"label": "Mindbody site ID",
"description": "Mindbody site ID for the execution target.",
"required": true,
"inputType": "password"
},
{
"name": "sourceName",
"label": "Mindbody source username",
"description": "Optional source credential username. Provide with sourcePassword.",
"required": false,
"inputType": "password"
},
{
"name": "sourcePassword",
"label": "Mindbody source password",
"description": "Optional source credential password. Provide with sourceName.",
"required": false,
"inputType": "password"
},
{
"name": "apiUrl",
"label": "Mindbody API base URL",
"description": "Optional override for the Mindbody API base URL.",
"required": false,
"inputType": "password"
}
]
}Runtime rules:
- Tool schemas stay auth-free.
- MissionSquad injects hidden values per tool call.
- The server resolves hidden values from FastMCP
context.extraArgs. - Hidden values override env fallback on every call.
- The process starts without authenticated upstream access, so a shared MissionSquad server can boot before any user-specific secrets are present.
Add to your Claude Desktop configuration:
macOS: ~/Library/Application Support/Claude/claude_desktop_config.json
Windows: %APPDATA%\Claude\claude_desktop_config.json
{
"mcpServers": {
"mindbody": {
"command": "npx",
"args": ["@missionsquad/mcp-mindbody"],
"env": {
"MINDBODY_API_KEY": "your_api_key",
"MINDBODY_SITE_ID": "-99",
"MINDBODY_SOURCE_NAME": "your_source_name",
"MINDBODY_SOURCE_PASSWORD": "your_source_password"
}
}
}
}Or use the GitHub repository directly:
{
"mcpServers": {
"mindbody": {
"command": "npx",
"args": ["github:vespo92/MindbodyMCP"],
"env": {
"MINDBODY_API_KEY": "your_api_key",
"MINDBODY_SITE_ID": "-99",
"MINDBODY_SOURCE_NAME": "your_source_name",
"MINDBODY_SOURCE_PASSWORD": "your_source_password"
}
}
}
}The server provides 50+ tools across 7 categories:
getClasses- View all classes with filtersgetClassDescriptions- List class typesgetClassSchedules- View recurring schedulesaddClientToClass- Book clients into classesremoveClientFromClass- Cancel bookingsgetWaitlistEntries- Manage waitlistssubstituteClassTeacher- Handle substitutions
getClients- Search and retrieve clientsaddClient- Register new clientsupdateClient- Update client informationgetClientVisits- View attendance historygetClientMemberships- Check active membershipsaddClientArrival- Check-in clientsgetClientAccountBalances- View account balancesgetClientContracts- View contracts
getServices- View available servicesgetPackages- List class packagesgetProducts- Browse retail productsgetContracts- View membership optionscheckoutShoppingCart- Process purchasespurchaseContract- Sell memberships
getSites- Get business informationgetLocations- List all locationsgetPrograms- View programs offeredgetResources- Manage resourcesgetSessionTypes- List session typesgetStaff- View all staff membersgetTeacherSchedule- Teacher schedules
getStaffAppointments- View appointmentsaddAppointment- Book appointmentsupdateAppointment- Modify appointmentsgetBookableItems- Find available slotsgetActiveSessionTimes- Check availabilitygetScheduleItems- View schedules
getEnrollments- View courses/workshopsaddClientToEnrollment- Register for coursesgetClientEnrollments- View client enrollments
Once configured, you can ask Claude:
"Show me today's yoga classes"
"Book Sarah Johnson into the 6pm Vinyasa class"
"Who's on the waitlist for tomorrow's Hot Yoga?"
"Add a new client named Jennifer Wilson"
"What's Michael's attendance this month?"
"Process a 10-class package purchase for Amy"
"Find a substitute for Maria's Thursday class"
# Clone the repository
git clone https://github.com/vespo92/MindbodyMCP.git
cd MindbodyMCP
# Install dependencies
npm install
# Run in development mode
npm run dev
# Run tests
npm test
# Build for production
npm run buildMindbodyMCP/
βββ src/
β βββ index.ts # Main server entry point
β βββ api/ # API client and auth
β βββ tools/ # Tool implementations
β βββ types/ # TypeScript types
β βββ cache/ # Caching layer
β βββ utils/ # Utility functions
βββ tests/ # Test files
βββ .github/workflows/ # CI/CD pipelines
βββ CLAUDE.md # Detailed documentation
The server supports SSE (Server-Sent Events) transport for production deployment, enabling web-based clients and remote access.
# Start with SSE transport
npm run start:sse
# Or with environment variable
MCP_TRANSPORT=sse npm start
# With custom port
npx tsx src/index.ts --transport sse --port 8080# Using Docker Compose
docker-compose up -d
# Or manually
docker build -t mindbody-mcp .
docker run -d -p 3000:3000 -e MCP_TRANSPORT=sse mindbody-mcpConfigure via environment variables:
MCP_TRANSPORT=sse- Enable SSE transportMCP_PORT=3000- Server portMCP_HOST=0.0.0.0- Server hostMCP_CORS_ORIGIN=https://yourdomain.com- CORS configurationMCP_SSL_CERT=/path/to/cert.pem- SSL certificate (optional)MCP_SSL_KEY=/path/to/key.pem- SSL private key (optional)
/health- Health check endpoint/info- Server information/sse- SSE event stream for MCP communication
For detailed deployment instructions, see SSE Deployment Guide.
# Run all tests
npm test
# Test SSE connection
npm run test:sse
# Test specific tool
npm run test:tool
# Run benchmarks
npm run benchmark
# Type checking
npm run typecheckThe package is available on:
- npm: @missionsquad/mcp-mindbody
- GitHub Packages: vespo92/MindbodyMCP
- API credentials are stored securely via environment variables
- OAuth 2.0 authentication with automatic token refresh
- No credentials are logged or exposed
- Regular security audits via GitHub Actions
- Bun Runtime: 4x faster startup than Node.js
- Intelligent Caching: 5-minute cache for dynamic data, 60-minute for static
- Automatic Retry: Exponential backoff for failed requests
- Rate Limiting: Respects Mindbody's 2000 requests/hour limit
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Mindbody API for providing comprehensive fitness studio APIs
- Anthropic MCP SDK for the Model Context Protocol
- Node.js for the JavaScript runtime
- Issues: GitHub Issues
- Discussions: GitHub Discussions
- Email: vinnie@vespo92.com
- Webhook support for real-time updates
- Advanced reporting and analytics tools
- Multi-site synchronization
- AI-powered recommendations
- Mobile app integration
- GraphQL API layer