Deputy MCP
Ask Claude "when do I work next?" and get the answer from your Deputy roster.
Deputy MCP is a local MCP server that lets AI agents read your shifts, timesheets and team schedule, and, only if you turn it on, act on them. It runs on your machine, connects to Deputy, and works with a regular employee account.
What you can ask
- "When do I work next?"
- "How many hours did I work last week?"
- "Who's on shift right now?" (manager access)
- "Clock me in." (writes enabled)
- "Take the open shift on Saturday." (writes enabled; asks you to confirm first)
Install
Needs uv and Python 3.11 or newer. Choose your access mode first:
| Mode | Who it's for | Start here |
|---|---|---|
| OAuth | Any employee | Employee sign-in |
| API token | Deputy admins | Admin setup |
| Calendar feed | No API access | Set DEPUTY_CALENDAR_URL using the client setup; your own roster only, read-only |
Employee OAuth
Create a personal app at https://once.deputy.com/my/oauth_clients with the redirect
URI http://localhost:8823/callback. In Bash, replace the placeholders, sign in,
then register the server with Claude Code:
export DEPUTY_OAUTH_CLIENT_ID='your-client-id'
export DEPUTY_OAUTH_CLIENT_SECRET='your-client-secret'
uvx deputy-mcp login
claude mcp add deputy \
-e DEPUTY_OAUTH_CLIENT_ID="$DEPUTY_OAUTH_CLIENT_ID" \
-e DEPUTY_OAUTH_CLIENT_SECRET="$DEPUTY_OAUTH_CLIENT_SECRET" \
-- uvx deputy-mcp
Login opens your browser and stores OAuth tokens in your OS keychain by default. Run login and Claude Code as the same OS user.
Admin API token
With your Deputy API token and install URL, register directly; no OAuth login is needed:
claude mcp add deputy \
-e DEPUTY_API_TOKEN=your-deputy-token \
-e DEPUTY_BASE_URL=https://your-company.eu.deputy.com \
-- uvx deputy-mcp
Codex CLI
For your own roster, replace ... with your private calendar feed URL:
codex mcp add deputy --env DEPUTY_CALENDAR_URL=... -- uvx deputy-mcp
The first uvx run downloads dependencies; if Codex reports the tools as unavailable,
set startup_timeout_sec = 60 under [mcp_servers.deputy] in ~/.codex/config.toml.
Claude Desktop users: look for the .mcpb bundle on the Releases page.
Other MCP clients and Docker: see other ways to install.
All settings are listed in .env.example.
Tools
- Your data (any account):
deputy_whoami,deputy_get_my_roster,deputy_next_shift,deputy_get_my_timesheets,deputy_get_my_colleagues,deputy_get_my_calendar_url,deputy_get_areas - Team (manager access):
deputy_get_team_roster,deputy_who_is_working,deputy_get_employee_info,deputy_search_shifts - Actions (only with
DEPUTY_ALLOW_WRITES=true):deputy_clock_in,deputy_clock_out,deputy_set_unavailability,deputy_request_shift_swap,deputy_claim_open_shift
Safe by default
- Read-only unless you set
DEPUTY_ALLOW_WRITES=true; until then the action tools don't exist for the agent. - You confirm before a shift is claimed, since that skips Deputy's approval step.
- No guessing: if a name matches several people, you get the list, not the first one.
- Credential protection: by default, tokens go only to
https://*.deputy.comand OAuth tokens live in your OS keychain; errors are scrubbed of secrets before an agent sees them.
Status
The everyday read tools and OAuth sign-in were tested against a real Deputy install with an employee account. Manager tools, actions and the OAuth token refresh are covered by automated tests but not yet verified on a live install. Not affiliated with Deputy.
More
License
Metadata
Release files for deputy-mcp 0.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| deputy_mcp-0.3.0.tar.gz | 287.1 kB | With provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| deputy_mcp-0.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 391.7 kB
Release files / deputy_mcp-0.3.0.tar.gz
| Download URL | deputy_mcp-0.3.0.tar.gz |
|---|---|
| Size | 287.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
da62fcbfe58cc3d27a867c3759479a74a21ba8deed94304fc5009e3f74531479
|
|
BLAKE2b-256 checksum How to use checksums |
13d15c394b4a368f7ae5ee40e3b38e75ee22fa439fcd4d39a4603dedea52b8a7
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.
Transparency logRelease files / deputy_mcp-0.3.0-py3-none-any.whl
| Download URL | deputy_mcp-0.3.0-py3-none-any.whl |
|---|---|
| Size | 104.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f174b39f9c78f42667df1c1dab318f0b51c3c42e5071960010666d2002a398ba
|
|
BLAKE2b-256 checksum How to use checksums |
205334b1f514f193724ce11a0281358906e8fe1594680e4f4b68520f65e0de70
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.
Transparency logSecurity for deputy-mcp 0.3.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
All 2 files in this release have been uploaded with provenance metadata.
Attestation for deputy_mcp-0.3.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Oct 21, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.