7shifts MCP for AI Agents

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with 7shifts MCP or direct API to manage schedules, review time clock data, coordinate staff updates, and streamline restaurant labor workflows through natural language.

7shifts logo7shifts
Api Key

7shifts is a restaurant team management platform for scheduling, time clocks, payroll, and team communication. It helps operators keep labor, shifts, and staff workflows organized in one place.

10 Tools

Try 7shifts now

Type what you want done — sign in and watch it run live in the Tool Router playground.

TOOL ROUTER PLAYGROUND
7shifts
Try asking
TOOLS

Supported Tools

Every 7shifts action and event your agent gets out of the box.

Create Department

Create a department at a company location, optionally make it the location's default department, and return its new department ID.

Delete Department

Permanently delete a department, optionally transferring its roles and shifts to another department.

Get Department

Return one department by company and department ID.

Get User Assignments

Return one user's assigned locations, departments, and roles in a single read.

List Companies

Return companies available to the connected access token, including the company IDs needed by company-scoped tools.

List Departments

List one page of departments in a company, optionally filtered by location or modification date, with a cursor when more are available.

List Locations

List one page of locations in a company and return location IDs used to filter schedules, users, and departments, with a cursor when more are available.

List Shifts

List one page of scheduled shifts for a company with employee, location, department, role, time-range, publication-state, and open-shift filters, with a cursor when more are available.

List Users

List employees and administrators in a 7shifts company, with optional status, name, and one assignment filter.

Update Department

Replace a department's name and default setting.

SETUP GUIDE

Connect 7shifts MCP Tool with your Agent

1

Install Composio

typescript
npm install @composio/core ai @ai-sdk/openai @ai-sdk/mcp
Install the Composio SDK for Python or TypeScript
2

Initialize Client and Create Tool Router Session

typescript
import { Composio } from '@composio/core';

const composio = new Composio({ apiKey: 'your-api-key' });
const session = await composio.create('your-user-id');
console.log(`Tool Router session created: ${session.mcp.url}`);
Import and initialize the Composio client, then create a Tool Router session for 7shifts
3

Connect to AI Agent

typescript
import { openai } from '@ai-sdk/openai';
import { experimental_createMCPClient as createMCPClient } from '@ai-sdk/mcp';
import { generateText } from 'ai';

const client = await createMCPClient({
  transport: {
    type: 'http',
    url: session.mcp.url,
    headers: {
      'x-api-key': 'your-composio-api-key',
    },
  },
});

const tools = await client.tools();
const { text } = await generateText({
  model: openai('gpt-4o'),
  tools,
  messages: [{
    role: 'user',
    content: 'Check which employees are clocked in right now in 7shifts'
  }],
  maxSteps: 5,
});

console.log(`Agent: ${text}`);
Use the MCP server with your AI agent (Anthropic Claude or Mastra)
SETUP GUIDE

Connect 7shifts API Tool with your Agent

1

Install Composio

typescript
npm install @composio/openai
Install the Composio SDK
2

Initialize Composio and Create Tool Router Session

typescript
import OpenAI from 'openai';
import { Composio } from '@composio/core';
import { OpenAIResponsesProvider } from '@composio/openai';

const composio = new Composio({
  provider: new OpenAIResponsesProvider(),
});
const openai = new OpenAI({});
const session = await composio.create('your-user-id');
Import and initialize Composio client, then create a Tool Router session
3

Execute 7shifts Tools via Tool Router with Your Agent

typescript
const tools = session.tools;
const response = await openai.responses.create({
  model: 'gpt-4.1',
  tools: tools,
  input: [{
    role: 'user',
    content: "List today's scheduled restaurant shifts in 7shifts"
  }],
});
const result = await composio.provider.handleToolCalls(
  'your-user-id',
  response.output
);
console.log(result);
Get tools from Tool Router session and execute 7shifts actions with your Agent

Why Use Composio?

AI Native 7shifts Integration

  • Supports both 7shifts MCP and direct API based integrations
  • Structured, LLM-friendly schemas for reliable restaurant scheduling and labor workflows
  • Rich coverage for reading, writing, and querying your 7shifts data without bespoke integration code

Managed Auth

  • 7shifts uses API key authentication, and Composio handles secure credential storage and API request handling
  • Use auth_configs.create() to configure 7shifts auth and connected_accounts.link() to connect each restaurant operator or workspace
  • Keep per user and per environment credentials out of your app code, where they belong

Agent Optimized Design

  • Tools are tuned using real error and success rates to improve reliability over time
  • Comprehensive execution logs so you can see which 7shifts action ran, when it ran, and on whose behalf
  • Use mcp.create() or Tool Router sessions to connect 7shifts tools to agents that need shift, labor, and team data

Enterprise Grade Security

  • Fine-grained RBAC so you control which agents and users can access 7shifts
  • Scoped, least privilege access to restaurant scheduling, time clock, payroll, and staff resources
  • Full audit trail of agent actions to support review, compliance, and operational accountability
FAQ

Frequently asked questions

Yes, 7shifts requires you to configure your own API key. Once set up, Composio handles secure credential storage and API request handling for you.

Yes! Composio's Tool Router enables agents to use multiple toolkits. Learn more.

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. Learn more.

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

Start with 7shifts.It takes 30 seconds.

Managed auth, hosted MCP servers, and every 7shifts tool your agent needs.Free to start.

Start building