---
title: "Connect Mariana Tek to Claude: Automate Billing, Shifts & Roster"
slug: connect-mariana-tek-to-claude-automate-billing-shifts-roster
date: 2026-11-19
author: Uday Gajavalli
categories: ["AI & Agents"]
excerpt: "Learn how to generate a managed MCP server for Mariana Tek and connect it natively to Claude. Automate class schedules, retail checkouts, and staff rosters."
tldr: "Connect Mariana Tek to Claude using Truto's managed MCP server. This guide covers how to provision the server, configure Claude, and automate studio workflows like check-ins and billing without exposing raw credentials."
canonical: https://truto.one/blog/connect-mariana-tek-to-claude-automate-billing-shifts-roster/
---

# Connect Mariana Tek to Claude: Automate Billing, Shifts & Roster


If your team needs to connect Mariana Tek to Claude to automate studio class scheduling, reconcile POS retail transactions, or manage instructor time clocks, you need a [Model Context Protocol (MCP) server](https://truto.one/what-is-mcp-and-mcp-servers-and-how-do-they-work/). This server acts as the translation layer between Claude's JSON-RPC tool calls and Mariana Tek's REST API. You can either [build and maintain this infrastructure yourself](https://truto.one/the-hands-on-guide-to-building-mcp-servers-for-ai-agents-2026/), or use a managed integration platform like Truto to dynamically generate a [secure, authenticated MCP server URL](https://truto.one/managed-mcp-for-claude-full-saas-api-access-without-security-headaches/). 

If your team uses ChatGPT, check out our guide on [connecting Mariana Tek to ChatGPT](https://truto.one/connect-mariana-tek-to-chatgpt-manage-classes-sales-user-accounts/) or explore our broader architectural overview on [connecting Mariana Tek to AI Agents](https://truto.one/connect-mariana-tek-to-ai-agents-orchestrate-bookings-retail/).

Giving a Large Language Model (LLM) read and write access to a sprawling boutique fitness management ecosystem like Mariana Tek is an engineering challenge. You have to handle credential lifecycles, map massive nested JSON schemas to MCP tool definitions, and deal with Mariana Tek's strict API relationships across customers, memberships, and retail logic. Every time Mariana Tek updates an endpoint or deprecates a legacy resource, you have to update your server code, redeploy, and test the integration.

This guide breaks down exactly how to use Truto to generate a secure, managed MCP server for Mariana Tek, connect it natively to Claude Desktop, and execute complex studio operations using natural language.

> Want to give your AI agents secure, authenticated access to Mariana Tek and 100+ other SaaS APIs? Let's talk about managed MCP architecture.
>
> [Talk to us](https://truto.one/book-a-demo/)

## The Engineering Reality of the Mariana Tek API

A custom MCP server is a self-hosted integration layer. While the open MCP standard provides a predictable way for models to discover tools, the reality of implementing it against Mariana Tek's APIs is painful. Mariana Tek is not just a scheduling tool; it is a full-fledged POS, CRM, and ERP designed specifically for boutique fitness. 

If you decide to build a custom MCP server for Mariana Tek, here are the specific integration challenges you will face:

**Complex Relational State (Waitlists, Holds, and Penalties)**
Boutique fitness APIs revolve around inventory scarcity (spots in a class). Canceling a reservation is not as simple as making a `DELETE` request. In Mariana Tek, a cancellation might trigger a late-cancel penalty fee (`get_single_mariana_tek_credit_transaction_cancel_penalty_by_id`), release a spot hold, and automatically promote a user from the waitlist (`mariana_tek_reservations_assign_to_spot`). Building an MCP tool that blindly issues deletes without surfacing these interconnected states to the LLM will result in furious customers who get improperly charged or double-booked.

**The Turf Hierarchy and Permission Boundaries**
Mariana Tek utilizes a strict geographical and logical hierarchy known as "Turf" (Locations, Regions, Sites, Classrooms, and Spots). When retrieving products, scheduling classes, or managing employee pay rates (`create_a_mariana_tek_employee_pay_rate`), the API heavily restricts operations based on the Turf permissions of the authenticated user. An AI agent lacking context on this hierarchy will frequently encounter `403 Forbidden` errors because it attempted to assign a resource to an invalid Location ID.

**Handling API Rate Limits and Retries**
When your AI agent iterates over large collections—like pulling all active membership instances to find billing anomalies—it will inevitably hit Mariana Tek's API quotas. **A factual note on rate limits with Truto:** Truto does not retry, throttle, or apply backoff on rate limit errors. When the upstream Mariana Tek API returns an `HTTP 429 Too Many Requests`, Truto passes that error directly to the caller. Truto normalizes the upstream rate limit information into standardized headers (`ratelimit-limit`, `ratelimit-remaining`, `ratelimit-reset`) per the IETF specification. The caller (or the MCP client) is entirely responsible for implementing retry and exponential backoff logic.

## Creating the Mariana Tek MCP Server

Instead of hardcoding tool definitions and manually handling Mariana Tek's authentication flows, you can generate a managed MCP server using Truto. [Truto derives the tool schemas directly from its internal API documentation records](https://truto.one/auto-generated-mcp-tools-for-ai-agents-a-2026-architecture-guide/), ensuring that only [curated, AI-ready endpoints](https://truto.one/auto-generated-mcp-tools-for-ai-agents-a-2026-architecture-guide/) are exposed to the LLM.

Each generated MCP server is scoped to a single connected Mariana Tek instance (an "integrated account"). You can provision the server via the Truto dashboard or programmatically via the API.

### Method 1: Via the Truto UI

For IT admins or operations teams who need to spin up an agent quickly:

1. Log in to the Truto Dashboard and navigate to the integrated account page for the Mariana Tek connection.
2. Click the **MCP Servers** tab.
3. Click **Create MCP Server**.
4. Select your desired configuration. You can filter by methods (e.g., `read` only) or by tags (e.g., `retail`, `roster`).
5. Copy the generated MCP server URL. This URL contains a cryptographically hashed token that authenticates requests back to this specific tenant.

### Method 2: Via the Truto API

For engineering teams embedding AI capabilities into a broader platform, you can dynamically provision MCP servers programmatically.

**Endpoint:** `POST /integrated-account/:id/mcp`

```typescript
// Example: Creating an MCP server restricted to read-only operations
const response = await fetch('https://api.truto.one/integrated-account/<mariana-tek-account-id>/mcp', {
  method: 'POST',
  headers: {
    'Authorization': 'Bearer <YOUR_TRUTO_API_TOKEN>',
    'Content-Type': 'application/json'
  },
  body: JSON.stringify({
    name: "Front Desk Assistant Server",
    config: {
      methods: ["read", "custom"], 
      tags: ["classes", "reservations", "customers"]
    },
    expires_at: "2026-12-31T23:59:59Z"
  })
});

const mcpServer = await response.json();
console.log(mcpServer.url); 
// Returns: https://api.truto.one/mcp/a1b2c3d4e5f6...
```

The returned URL is fully self-contained. It points to a managed JSON-RPC 2.0 endpoint that handles the MCP initialization handshake, tool discovery (`tools/list`), and execution delegation (`tools/call`).

## Connecting the MCP Server to Claude

Once you have the Truto MCP URL, providing Claude with access to Mariana Tek requires zero additional code. 

### Method 1: Via the Claude UI (Desktop/Web)

If you are using Claude for Business, Enterprise, or the Desktop app:

1. Open **Settings** in Claude.
2. Navigate to **Integrations** (or **Connectors** depending on your plan tier).
3. Click **Add MCP Server**.
4. Paste the Truto MCP URL (e.g., `https://api.truto.one/mcp/<token>`).
5. Save and exit.

Claude will immediately ping the endpoint, execute the `initialize` handshake, and populate its context window with the Mariana Tek capabilities.

### Method 2: Via the Claude Desktop Configuration File

If you prefer managing your toolsets as code, you can define the MCP server using Server-Sent Events (SSE) in the `claude_desktop_config.json` file. 

**Location:**
- Mac: `~/Library/Application Support/Claude/claude_desktop_config.json`
- Windows: `%APPDATA%\Claude\claude_desktop_config.json`

```json
{
  "mcpServers": {
    "mariana_tek_production": {
      "command": "npx",
      "args": [
        "-y",
        "@modelcontextprotocol/server-sse",
        "--url",
        "https://api.truto.one/mcp/<token>"
      ]
    }
  }
}
```

Restart Claude Desktop. The application will use the SSE transport wrapper to communicate with Truto's HTTP endpoint via standard standard I/O.

## Hero Tools for Mariana Tek

Out of the 200+ endpoints available in Mariana Tek, the highest leverage AI operations revolve around managing the class schedule, handling retail checkouts, and auditing user billing states. Here are the core tools your AI agent can leverage.

### mariana_tek_class_sessions_cancel

Cancels a scheduled class session. This tool is incredibly powerful because it orchestrates the cascading cancellation of all active reservations (both pending and checked-in), removing waitlist entries, and refunding payment sources to the affected users.

> "The 6 AM Spin Class tomorrow needs to be canceled because the HVAC is broken in Studio 2. Cancel the class session, refund everyone's credits, and draft an apology email to the roster."

### create_a_mariana_tek_time_clock_shift

Allows the LLM to manage workforce operations. Front desk managers and instructors use this to clock in, log hours, or fix erroneous timecard entries without logging into the clunky backend.

> "Sarah forgot to clock out last night after closing the studio. Create a time clock shift for her starting yesterday at 3:00 PM and ending at 9:30 PM at the Downtown location."

### create_a_mariana_tek_checkout

Processes a shopping cart into a completed order. This tool accepts a completed `cart` ID and an array of payments (cash, account balance, bankcard, or alt payments) to finalize a transaction.

> "Checkout Cart ID 9482 for the water bottle and grip socks. Apply it to the customer's card on file and send the receipt to their primary email address."

### mariana_tek_penalty_fees_waive_charge

Boutique fitness relies on strict late-cancel and no-show policies. This tool allows support agents to waive outstanding penalty fees for VIP members or those with legitimate excuses.

> "Waive the $15 no-show penalty fee for John Doe from yesterday's 5 PM Yoga class. He called ahead to say he was stuck in traffic, and he's a founding member."

### mariana_tek_reservations_assign_to_spot

Moves a standby or waitlisted reservation directly onto the class roster. Crucially, this tool allows you to specify a physical `spot` number (e.g., Bike 12, Mat 4) if the class utilizes a "Pick A Spot" layout.

> "A spot just opened up on Bike 7 for the 8 AM cycle class. Take the first person on the waitlist and assign their reservation to that exact spot."

### get_single_mariana_tek_membership_instance_by_id

Retrieves the detailed record of a specific user's membership. This includes their current payment interval, renewal currency, remaining credits, and historical payment failure states.

> "Pull up the membership instance for account ID 1120. Tell me when their next billing cycle is and if they have any outstanding failed renewals that need to be retried."

To view the complete JSON schemas, required parameters, and the full inventory of 200+ available Mariana Tek tools, visit the [Mariana Tek Integration Page](https://truto.one/integrations/detail/marianatek).

## Workflows in Action

Providing an LLM with access to the Mariana Tek API transforms Claude from a chatbot into an autonomous studio manager. Here is how a complex operational request executes under the hood.

### Scenario 1: Reconciling Failed Memberships and Restoring Access

Members frequently show up to the front desk confused about why they cannot book a class. The agent can audit their billing history, retry the card, and unfreeze their account.

> "Check why user 'mike.smith@example.com' can't book the HIIT class. If his membership payment failed, retry the charge on his default card. Once successful, remove his account hold and check him into the 5 PM class."

**Execution Steps:**
1. `list_all_mariana_tek_users` - Agent searches for the user by email to get the `user_id`.
2. `list_all_mariana_tek_membership_instances` - Agent pulls active memberships for the user, observing a failed payment status.
3. `mariana_tek_membership_instances_retry_failed_renewal` - Agent triggers the billing retry logic on the oldest outstanding cycle.
4. `mariana_tek_membership_freezes_unfreeze` - Agent clears any administrative holds on the user profile.
5. `create_a_mariana_tek_reservation` - Agent books the user into the class using the newly restored membership credits.

### Scenario 2: Managing Instructor Substitutions and Roster Notifications

When a trainer calls out sick, the studio must handle schedule swaps, adjust pay rates, and notify attendees.

> "Trainer Alex called out sick for the 7 AM Bootcamp today. Swap the instructor to Trainer Jamie. Then, tag the class session with 'substitute', and pull the emails of everyone on the roster so I can message them."

**Execution Steps:**
1. `list_all_mariana_tek_class_sessions` - Agent queries today's schedule to find the 7 AM Bootcamp ID.
2. `update_a_mariana_tek_class_session_by_id` - Agent patches the session data to update the primary instructor ID from Alex to Jamie.
3. `mariana_tek_class_session_admins_tag` - Agent applies the `substitute` tag to the class session.
4. `list_all_mariana_tek_reservations` - Agent pulls the roster list based on the `class_session_id`, extracting customer names and emails.

```mermaid
sequenceDiagram
    participant User as Studio Manager
    participant Claude as Claude (AI Agent)
    participant Truto as Truto MCP Server
    participant MT as Mariana Tek API

    User->>Claude: "Alex is sick. Swap 7AM to Jamie."
    Claude->>Truto: tools/call (list_all_mariana_tek_class_sessions)
    Truto->>MT: GET /api/class_sessions?start_date=...
    MT-->>Truto: Return session ID 8912
    Truto-->>Claude: Session data
    Claude->>Truto: tools/call (update_a_mariana_tek_class_session_by_id)
    Truto->>MT: PATCH /api/class_sessions/8912
    MT-->>Truto: 200 OK
    Truto-->>Claude: Success
    Claude->>Truto: tools/call (mariana_tek_class_session_admins_tag)
    Truto->>MT: POST /api/class_sessions/8912/tags
    MT-->>Truto: 200 OK
    Truto-->>Claude: Tag applied
    Claude-->>User: "Instructor swapped to Jamie. Class is tagged. Here is the roster..."
```

## Security and Access Control

Giving an LLM unconstrained write access to your primary POS and scheduling system is a massive security risk. Truto's MCP architecture provides several layers of defense-in-depth to limit the blast radius of AI agents.

*   **Method Filtering (`config.methods`):** Restrict servers exclusively to safe operations. By configuring the token with `["read"]`, the server will only generate tools for `GET` and `LIST` endpoints. The agent physically cannot modify rosters or charge cards.
*   **Tag Filtering (`config.tags`):** Mariana Tek integrations define internal tags (e.g., `retail`, `classes`, `staff`). You can restrict an MCP server to specific functional domains. A server built for marketing will not have access to payroll or time-clock resources.
*   **Secondary Authentication (`require_api_token_auth`):** If enabled, possessing the MCP URL is not enough to execute a tool. The client must pass a valid Truto API token in the Authorization header. This protects MCP endpoints accidentally exposed in configuration logs.
*   **Ephemeral Servers (`expires_at`):** You can generate time-bound MCP servers that automatically self-destruct. This is ideal for short-lived task agents or contractor access that requires immediate cleanup.

## Conclusion

Integrating Mariana Tek with Claude opens the door to truly autonomous studio operations—handling complex waitlist promotions, rectifying failed billing states, and managing time clocks via natural language. However, the underlying API requires strict adherence to its Turf hierarchy and heavily interconnected resource states.

By leveraging Truto to generate a managed MCP server, you abstract away the complexities of OAuth 2.0 refresh cycles, schema normalization, and tool curation. You define the security boundaries, generate the endpoint, and let Claude navigate the boutique fitness data model natively.

> Ready to orchestrate your Mariana Tek data with AI agents? Let's discuss your MCP architecture.
>
> [Talk to us](https://truto.one/book-a-demo/)
