Generate optimized work shift schedules from staffing demand, availability and fairness rules.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent β or use 1-click editor setup below.
π‘ Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
Model Context Protocol (MCP) server for the Shiftyasan public solver API. Lets AI agents (Claude Desktop, Cursor, Continue, etc.) call the shift-scheduling solver from any MCP-aware host.
Status: open beta β
validate_shift_input,solve_shift, andget_solve_job(async polling for large problems). Usage queries (get_usage) coming next.
Shiftyasan now runs a remote MCP server, which is the recommended way to connect:
| Remote (recommended) | This npm package | |
|---|---|---|
| Node.js | not needed | 20 or newer required |
| API key | issued automatically when you connect | you create and paste it yourself |
| Updates | server-side, nothing to do | you update the package |
| Claude.ai (web) / ChatGPT | works | cannot run a local process |
Connecting from Claude.ai or ChatGPT opens a Shiftyasan sign-in page in your browser; approve it once and you are done. Revoke a connection any time from the dashboard under "Connected apps".
This package is still supported and existing setups keep working. Reach for it when you want the server to run locally β for example on a host that cannot reach the internet directly, or when you prefer to hold your own API key.
See the quickstart for the remote setup.
Shiftyasan is a SaaS that auto-generates work shifts
for businesses (retail, hospitality, healthcare, etc.) using a
constraint-optimization engine. The same solver is exposed as a public HTTP API at
https://api.shiftyasan.com/v1/public/*. This MCP server is a thin client
wrapper that turns the API into discoverable tools for AI agents.
Developer documentation β quickstart, the full list of supported constraints, and pricing β lives at https://platform.shiftyasan.com (Japanese and English).
| Tool | Description | Charged? |
|---|---|---|
validate_shift_input | Validate a SolveRequest payload against the public-API schema (no solver). | No |
solve_shift | Run the solver. Small/medium problems return synchronously; large problems (roughly 25+ employees) are queued and return 202 with a job_id. | Yes |
get_solve_job | Poll an asynchronous job until completed / failed. | No |
The full SolveRequest / SolveResponse schema lives in the OpenAPI spec at
GET <base URL>/v1/public/openapi.json (base URL = SHIFTYASAN_BASE_URL,
default https://api.shiftyasan.com).
| Prompt | What it does |
|---|---|
plan_shift | Walks the agent through building a schedule: what to ask the user for, when to validate, and how to present the finished roster. |
Both arguments (period, context) are optional, so it can be invoked bare. In
Claude Code it shows up as /mcp__shiftyasan__plan_shift; other hosts surface
prompts in their own UI.
Use it when you want the agent to interview you for the inputs rather than guessing them, or when a previous attempt produced a roster you could not check at a glance. The prompt tells the agent to render one row per person with the per-person totals on the right, which is what a shift manager reads first.
The server also sends workflow guidance in its initialize response (call
validate_shift_input before solve_shift, poll get_solve_job on 202,
how to read shortage markers and the infeasibility diagnosis). Hosts may add
this to the model's system prompt; Claude Code does, Claude Desktop currently
does not, which is why the same ordering rules also live in the tool descriptions.
A few fields are accepted by the API and then dropped during translation, because the
solver has no equivalent. validate_shift_input and solve_shift print an explicit
warning listing exactly what was dropped, so an agent never reports them as honored.
| Field | Status | Workaround |
|---|---|---|
employees[].preferences[].type: "avoided_shift" | Not applied | Remove the shift from that employee's assignable_shift_ids (hard), or state a preferred_shift for the shift they should get instead |
employees[].working_days_per_week.max | Only min is used | Use working_days_per_month for an upper bound over the period |
constraints.employee_pairings[].rule: "require" | Not applied (only exclude works) | Use fixed_assignments to place them on the same shift |
Everything else in the schema is applied by the solver.
Running locally requires Node.js 20 or newer. If you would rather not manage that, use the remote server instead.
Use directly via npx (no global install needed):
Also listed in the MCP Registry as
com.shiftyasan/mcp-server.
Or install globally:
Issue an sk_live_... key in the self-service dashboard:
https://platform.shiftyasan.com/dashboard/ (your existing
Shiftyasan account works; sign-up is also available).
If anything goes wrong, email info@shiftyasan.com (Japanese or English).
Treat the token like a password: it grants access to your solver quota.
Beta note: you may receive a base URL different from the default β set it via
SHIFTYASAN_BASE_URL(see below).
Edit ~/Library/Application Support/Claude/claude_desktop_config.json
(macOS) or %APPDATA%/Claude/claude_desktop_config.json (Windows):
Restart Claude Desktop. The shiftyasan server appears in the tools menu and
exposes validate_shift_input, solve_shift, and get_solve_job.
(Add -e SHIFTYASAN_BASE_URL=... if you were given a beta base URL.)
Add to your MCP server config in the same shape (command + args + env).
Refer to your host's docs for the exact config file path.
ChatGPT cannot spawn local stdio MCP servers like this package, so use the HTTP API directly through a Custom GPT with Actions (the OpenAPI spec is designed to be Actions-compatible β fully inlined schemas, no external refs):
ChatGPT β My GPTs β Create a GPT β Configure β Actions β
Import from URL, and enter
<base URL>/v1/public/openapi.json
(base URL = the one you received with your API key;
default https://api.shiftyasan.com).
If you were given a beta base URL, also edit the imported schema's
servers[0].url to <base URL>/v1/public.
Authentication β API Key β Auth Type Bearer β paste your
sk_live_... token.
Suggested GPT instructions:
You can build optimized work shift schedules with the Shiftyasan actions. Always call the validate action first (free), then solve. Large problems return 202 with a job_id β poll the job endpoint every ~15 seconds until the status is "completed" or "failed".
Notes: creating custom GPTs requires a paid ChatGPT plan, and the API key is stored inside the GPT β do not share that GPT publicly.
ChatGPT's MCP connectors only support hosted MCP endpoints (Streamable HTTP), not local stdio processes. A hosted MCP endpoint is on our roadmap; until then, use Actions as above.
| Variable | Required | Description |
|---|---|---|
SHIFTYASAN_API_KEY | yes | Bearer API key. Format: sk_(live|test)_<64 hex chars>. |
SHIFTYASAN_BASE_URL | no | Override base URL (default https://api.shiftyasan.com). Useful for staging or self-host. |
In Claude Desktop, after configuring:
You: Schedule 3 employees over the first week of June across morning and evening shifts. Use Shiftyasan.
Claude will discover the tools, call validate_shift_input to confirm the
payload it constructed is acceptable, then call solve_shift to get the
assignment. Errors from the API (RFC 7807) are surfaced inline so Claude can
self-correct (e.g., "staffing_demand length must equal schedule_days").
The open beta is free. Each API key comes with a free usage quota
(solve_shift consumes units per call; validate_shift_input is always free).
Check your remaining quota with GET /v1/public/usage using your key.
When you run out, email info@shiftyasan.com to get more.
Paid plans are planned after the beta. The MCP server itself never charges;
all metering happens against your SHIFTYASAN_API_KEY on the API side.
To run against a local gateway:
Test interactively with the MCP inspector:
MIT β see LICENSE.
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/shiftyasan-shift-scheduling)<a href="https://allmcps.com/mcp/shiftyasan-shift-scheduling"><img src="https://allmcps.com/api/badge/shiftyasan-shift-scheduling?style=directory" alt="Shiftyasan Shift Scheduling on AllMCPs" /></a>