D

Deputy MCP

by augbastos · io.github.augbastos/deputy-mcp

An MCP server for Deputy that provides read and write access to rosters, timesheets, and shifts. It runs locally and privately, communicating directly with your own Deputy install.

pypi Local · stdio GlamaOfficial MCP Registry High confidence

Install

Add to ~/Library/Application Support/Claude/claude_desktop_config.json

Windows / Linux path
Windows: %APPDATA%\Claude\claude_desktop_config.json
Linux: ~/.config/Claude/claude_desktop_config.json
{
  "mcpServers": {
    "io-github-augbastos-deputy-mcp": {
      "command": "uvx",
      "args": [
        "deputy-mcp"
      ],
      "env": {
        "DEPUTY_API_TOKEN": "<YOUR_VALUE>",
        "DEPUTY_BASE_URL": "<VALUE>",
        "DEPUTY_OAUTH_CLIENT_ID": "<VALUE>",
        "DEPUTY_OAUTH_CLIENT_SECRET": "<YOUR_VALUE>",
        "DEPUTY_CALENDAR_URL": "<YOUR_VALUE>",
        "DEPUTY_ALLOW_WRITES": "false",
        "DEPUTY_TOKEN_STORE": "<VALUE>",
        "DEPUTY_TIMEOUT": "30",
        "DEPUTY_ENV_FILE": "<VALUE>",
        "DEPUTY_CACHE_TTL": "30",
        "DEPUTY_MAX_RETRIES": "3",
        "DEPUTY_ALLOW_CUSTOM_HOST": "false"
      }
    }
  }
}

Restart Claude Desktop to activate the new server.

Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)

Windows / Linux path
Windows: .cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global)
Linux: .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
{
  "mcpServers": {
    "io-github-augbastos-deputy-mcp": {
      "command": "uvx",
      "args": [
        "deputy-mcp"
      ],
      "env": {
        "DEPUTY_API_TOKEN": "<YOUR_VALUE>",
        "DEPUTY_BASE_URL": "<VALUE>",
        "DEPUTY_OAUTH_CLIENT_ID": "<VALUE>",
        "DEPUTY_OAUTH_CLIENT_SECRET": "<YOUR_VALUE>",
        "DEPUTY_CALENDAR_URL": "<YOUR_VALUE>",
        "DEPUTY_ALLOW_WRITES": "false",
        "DEPUTY_TOKEN_STORE": "<VALUE>",
        "DEPUTY_TIMEOUT": "30",
        "DEPUTY_ENV_FILE": "<VALUE>",
        "DEPUTY_CACHE_TTL": "30",
        "DEPUTY_MAX_RETRIES": "3",
        "DEPUTY_ALLOW_CUSTOM_HOST": "false"
      }
    }
  }
}

Cursor usually picks up config changes automatically; if the server does not appear, reload the window.

Add to .mcp.json (project) or ~/.claude.json (global)

Windows / Linux path
Windows: .mcp.json (project) or %USERPROFILE%\.claude.json (global)
Linux: .mcp.json (project) or ~/.claude.json (global)
{
  "mcpServers": {
    "io-github-augbastos-deputy-mcp": {
      "command": "uvx",
      "args": [
        "deputy-mcp"
      ],
      "env": {
        "DEPUTY_API_TOKEN": "<YOUR_VALUE>",
        "DEPUTY_BASE_URL": "<VALUE>",
        "DEPUTY_OAUTH_CLIENT_ID": "<VALUE>",
        "DEPUTY_OAUTH_CLIENT_SECRET": "<YOUR_VALUE>",
        "DEPUTY_CALENDAR_URL": "<YOUR_VALUE>",
        "DEPUTY_ALLOW_WRITES": "false",
        "DEPUTY_TOKEN_STORE": "<VALUE>",
        "DEPUTY_TIMEOUT": "30",
        "DEPUTY_ENV_FILE": "<VALUE>",
        "DEPUTY_CACHE_TTL": "30",
        "DEPUTY_MAX_RETRIES": "3",
        "DEPUTY_ALLOW_CUSTOM_HOST": "false"
      }
    }
  }
}

The server will be available in the next Claude Code session.

Add to .vscode/mcp.json

Windows / Linux path
Windows: .vscode\mcp.json
Linux: .vscode/mcp.json
{
  "servers": {
    "io-github-augbastos-deputy-mcp": {
      "command": "uvx",
      "args": [
        "deputy-mcp"
      ],
      "env": {
        "DEPUTY_API_TOKEN": "<YOUR_VALUE>",
        "DEPUTY_BASE_URL": "<VALUE>",
        "DEPUTY_OAUTH_CLIENT_ID": "<VALUE>",
        "DEPUTY_OAUTH_CLIENT_SECRET": "<YOUR_VALUE>",
        "DEPUTY_CALENDAR_URL": "<YOUR_VALUE>",
        "DEPUTY_ALLOW_WRITES": "false",
        "DEPUTY_TOKEN_STORE": "<VALUE>",
        "DEPUTY_TIMEOUT": "30",
        "DEPUTY_ENV_FILE": "<VALUE>",
        "DEPUTY_CACHE_TTL": "30",
        "DEPUTY_MAX_RETRIES": "3",
        "DEPUTY_ALLOW_CUSTOM_HOST": "false"
      }
    }
  }
}

Reload the VS Code window to activate.

Add to ~/.codeium/windsurf/mcp_config.json

Windows / Linux path
Windows: %USERPROFILE%\.codeium\windsurf\mcp_config.json
Linux: ~/.codeium/windsurf/mcp_config.json
{
  "mcpServers": {
    "io-github-augbastos-deputy-mcp": {
      "command": "uvx",
      "args": [
        "deputy-mcp"
      ],
      "env": {
        "DEPUTY_API_TOKEN": "<YOUR_VALUE>",
        "DEPUTY_BASE_URL": "<VALUE>",
        "DEPUTY_OAUTH_CLIENT_ID": "<VALUE>",
        "DEPUTY_OAUTH_CLIENT_SECRET": "<YOUR_VALUE>",
        "DEPUTY_CALENDAR_URL": "<YOUR_VALUE>",
        "DEPUTY_ALLOW_WRITES": "false",
        "DEPUTY_TOKEN_STORE": "<VALUE>",
        "DEPUTY_TIMEOUT": "30",
        "DEPUTY_ENV_FILE": "<VALUE>",
        "DEPUTY_CACHE_TTL": "30",
        "DEPUTY_MAX_RETRIES": "3",
        "DEPUTY_ALLOW_CUSTOM_HOST": "false"
      }
    }
  }
}

Restart Windsurf (or refresh its MCP servers panel) to activate the new server.

Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.

Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json

Windows / Linux path
Windows: %APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json
Linux: ~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
{
  "mcpServers": {
    "io-github-augbastos-deputy-mcp": {
      "command": "uvx",
      "args": [
        "deputy-mcp"
      ],
      "env": {
        "DEPUTY_API_TOKEN": "<YOUR_VALUE>",
        "DEPUTY_BASE_URL": "<VALUE>",
        "DEPUTY_OAUTH_CLIENT_ID": "<VALUE>",
        "DEPUTY_OAUTH_CLIENT_SECRET": "<YOUR_VALUE>",
        "DEPUTY_CALENDAR_URL": "<YOUR_VALUE>",
        "DEPUTY_ALLOW_WRITES": "false",
        "DEPUTY_TOKEN_STORE": "<VALUE>",
        "DEPUTY_TIMEOUT": "30",
        "DEPUTY_ENV_FILE": "<VALUE>",
        "DEPUTY_CACHE_TTL": "30",
        "DEPUTY_MAX_RETRIES": "3",
        "DEPUTY_ALLOW_CUSTOM_HOST": "false"
      }
    }
  }
}

Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.

Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.

Configuration

Environment variables this server reads. Secrets stay on your machine.

NameRequiredDescription
DEPUTY_API_TOKEN secret No Deputy permanent or OAuth access token (stored redacted).
DEPUTY_BASE_URL No Your install origin, e.g. https://your-company.eu.deputy.com.
DEPUTY_OAUTH_CLIENT_ID No OAuth mode (all tools, no admin needed): client id of a personal app registered at https://once.deputy.com/my/oauth_clients with redirect URI http://localhost:8823/callback. Run 'deputy-mcp login' once.
DEPUTY_OAUTH_CLIENT_SECRET secret No OAuth mode: client secret of the same app.
DEPUTY_CALENDAR_URL secret No Your personal iCal feed URL (token-free, roster-only, stored redacted).
DEPUTY_ALLOW_WRITES No Enable the write tools. Default: false
DEPUTY_TOKEN_STORE No OAuth mode: file path for a plaintext token store, only where no OS keychain is available. Default: the OS keychain.
DEPUTY_TIMEOUT No Per-request HTTP timeout, seconds. Default: 30
DEPUTY_ENV_FILE No Path to a dotenv file to load `DEPUTY_*` values from.
DEPUTY_CACHE_TTL No In-memory read-cache lifetime, seconds. `0` disables caching. Default: 30
DEPUTY_MAX_RETRIES No Automatic retries on `429`/`5xx` (with backoff). Default: 3
DEPUTY_ALLOW_CUSTOM_HOST No Allow a base URL host outside `*.deputy.com` (enterprise custom domains). Default: false

Similar servers