# KING OF TIME

> KING OF TIME is an MCP server for hr and payroll. MCP server giving AI clients read and clock-in access to KING OF TIME attendance data. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Platforms:** CLI, Self-hosted, API
- **Repository:** https://github.com/mediiiiium/mcp-jp/tree/HEAD/kingtime
- **MCP Registry name:** io.github.mediiiiium/kingtime
- **Categories:** [hr and payroll](https://ai-powered.com/categories/hr-and-payroll), [time tracking](https://ai-powered.com/categories/time-tracking)
- **Listing updated:** 2026-11-27

## About

This connector lets an AI assistant query attendance records from KING OF TIME, a Japanese time and attendance system. It exposes employee master data, divisions, employment types, daily and monthly work summaries, raw clock-in events and shift schedules as tools that an MCP-compatible client can call on request.

Authentication uses an access token generated in the KING OF TIME admin console under the API integration settings, passed to the server as an environment variable. The server runs locally over stdio, typically launched from a Claude Desktop configuration, and can also be started from a container image.

The tool set is intentionally read-centric. The only write action is recording a single clock-in or clock-out event per call, and the README notes that repeated calls create duplicate punches. Bulk time edits, approval workflows, payroll cost data, leave balances and schedule changes are not implemented and must be handled inside the KING OF TIME interface. Several API restrictions apply, including a daily blackout window and a 62-day maximum period for some queries.

## Features

- **Employee and division lookup:** Lists employees, divisions and employment types so other queries can be filtered by the right codes.
- **Daily and monthly summaries:** Returns per-day and per-month totals for scheduled, overtime, late and early-leave time.
- **Raw time record access:** Fetches individual clock-in and clock-out events with their timestamps, types and location data.
- **Shift schedule retrieval:** Reads planned shifts and schedules for a given date range.
- **Single punch registration:** Adds one attendance event such as clock-in, break start or return from outing per call.

## Good for

- Spotting employees whose monthly overtime exceeds a set threshold
- Checking a named employee's attendance totals for the current week
- Reviewing next week's shift plan through a chat assistant
- Pulling daily attendance figures to prepare internal reports

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add kingtime --env KINGTIME_ACCESS_TOKEN='<KINGTIME_ACCESS_TOKEN>' -- docker run -i --rm -e KINGTIME_ACCESS_TOKEN ghcr.io/mediiiiium/kingtime-mcp:0.1.0
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "kingtime": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "KINGTIME_ACCESS_TOKEN",
        "ghcr.io/mediiiiium/kingtime-mcp:0.1.0"
      ],
      "env": {
        "KINGTIME_ACCESS_TOKEN": "<KINGTIME_ACCESS_TOKEN>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "kingtime": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "KINGTIME_ACCESS_TOKEN",
        "ghcr.io/mediiiiium/kingtime-mcp:0.1.0"
      ],
      "env": {
        "KINGTIME_ACCESS_TOKEN": "<KINGTIME_ACCESS_TOKEN>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "kingtime": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "KINGTIME_ACCESS_TOKEN",
        "ghcr.io/mediiiiium/kingtime-mcp:0.1.0"
      ],
      "env": {
        "KINGTIME_ACCESS_TOKEN": "<KINGTIME_ACCESS_TOKEN>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "kingtime": {
      "type": "stdio",
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "KINGTIME_ACCESS_TOKEN",
        "ghcr.io/mediiiiium/kingtime-mcp:0.1.0"
      ],
      "env": {
        "KINGTIME_ACCESS_TOKEN": "<KINGTIME_ACCESS_TOKEN>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add kingtime --env KINGTIME_ACCESS_TOKEN='<KINGTIME_ACCESS_TOKEN>' -- docker run -i --rm -e KINGTIME_ACCESS_TOKEN ghcr.io/mediiiiium/kingtime-mcp:0.1.0
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.kingtime]
command = "docker"
args = ["run", "-i", "--rm", "-e", "KINGTIME_ACCESS_TOKEN", "ghcr.io/mediiiiium/kingtime-mcp:0.1.0"]
env = { KINGTIME_ACCESS_TOKEN = "<KINGTIME_ACCESS_TOKEN>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "kingtime": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "KINGTIME_ACCESS_TOKEN",
        "ghcr.io/mediiiiium/kingtime-mcp:0.1.0"
      ],
      "env": {
        "KINGTIME_ACCESS_TOKEN": "<KINGTIME_ACCESS_TOKEN>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e KINGTIME_ACCESS_TOKEN='<KINGTIME_ACCESS_TOKEN>' kingtime docker -- run -i --rm -e KINGTIME_ACCESS_TOKEN ghcr.io/mediiiiium/kingtime-mcp:0.1.0

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "kingtime": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "KINGTIME_ACCESS_TOKEN",
        "ghcr.io/mediiiiium/kingtime-mcp:0.1.0"
      ],
      "env": {
        "KINGTIME_ACCESS_TOKEN": "<KINGTIME_ACCESS_TOKEN>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "kingtime": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "KINGTIME_ACCESS_TOKEN",
        "ghcr.io/mediiiiium/kingtime-mcp:0.1.0"
      ],
      "env": {
        "KINGTIME_ACCESS_TOKEN": "<KINGTIME_ACCESS_TOKEN>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "kingtime": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "KINGTIME_ACCESS_TOKEN",
        "ghcr.io/mediiiiium/kingtime-mcp:0.1.0"
      ],
      "env": {
        "KINGTIME_ACCESS_TOKEN": "<KINGTIME_ACCESS_TOKEN>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "kingtime": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "KINGTIME_ACCESS_TOKEN",
        "ghcr.io/mediiiiium/kingtime-mcp:0.1.0"
      ],
      "env": {
        "KINGTIME_ACCESS_TOKEN": "<KINGTIME_ACCESS_TOKEN>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "kingtime": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "KINGTIME_ACCESS_TOKEN",
        "ghcr.io/mediiiiium/kingtime-mcp:0.1.0"
      ],
      "env": {
        "KINGTIME_ACCESS_TOKEN": "<KINGTIME_ACCESS_TOKEN>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "kingtime": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "KINGTIME_ACCESS_TOKEN",
        "ghcr.io/mediiiiium/kingtime-mcp:0.1.0"
      ],
      "env": {
        "KINGTIME_ACCESS_TOKEN": "<KINGTIME_ACCESS_TOKEN>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "kingtime": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "KINGTIME_ACCESS_TOKEN",
        "ghcr.io/mediiiiium/kingtime-mcp:0.1.0"
      ],
      "env": {
        "KINGTIME_ACCESS_TOKEN": "<KINGTIME_ACCESS_TOKEN>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "kingtime": {
      "command": "docker",
      "args": [
        "run",
        "-i",
        "--rm",
        "-e",
        "KINGTIME_ACCESS_TOKEN",
        "ghcr.io/mediiiiium/kingtime-mcp:0.1.0"
      ],
      "env": {
        "KINGTIME_ACCESS_TOKEN": "<KINGTIME_ACCESS_TOKEN>"
      }
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 9 of 10 tools read data; 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `get_employees` (name suggests: reads): Lists employee master records with optional filters.
- `get_employee` (name suggests: reads): Fetches one employee by employee code.
- `get_divisions` (name suggests: reads): Lists division codes.
- `get_working_types` (name suggests: reads): Lists employment type master data.
- `get_employee_groups` (name suggests: reads): Lists employee group master data.
- `get_daily_workings` (name suggests: reads): Returns daily attendance totals for a period.
- `get_timerecords` (name suggests: reads): Returns raw clock-in and clock-out events for a period.
- `get_monthly_workings` (name suggests: reads): Returns monthly attendance totals.
- `get_daily_schedules` (name suggests: reads): Returns shift schedules for a period.
- `record_time`: Registers a single time record for an employee.

## FAQ

### How is the server authenticated?

It uses an access token issued in the KING OF TIME admin console under Settings, then API integration, supplied through the KINGTIME_ACCESS_TOKEN environment variable.

### Can KING OF TIME edit schedules or approve requests?

No. Schedule changes, approval workflows and employee master edits are not implemented; only reading and single punch registration are supported.

### Does a list tool support pagination?

No. List tools return all matching records in one response, and some date-range queries are limited to 62 days.

### Is registering a punch safe to retry?

No. Each call adds a new time record, so repeating the same request creates duplicate punches.

### How do I add KING OF TIME to Claude Code?

Run this command in your terminal: claude mcp add kingtime --env KINGTIME_ACCESS_TOKEN='<KINGTIME_ACCESS_TOKEN>' -- docker run -i --rm -e KINGTIME_ACCESS_TOKEN ghcr.io/mediiiiium/kingtime-mcp:0.1.0

### What are the best alternatives to KING OF TIME?

The closest alternatives to KING OF TIME are klokin.io, Work Handler, cloudtime API, Hourbun and EzDIS MCP Server (ZKTeco, GPS & OCPP 1.6J).

## Where this comes from

- Description: written from the project's README and its MCP Registry entry.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [klokin.io](https://ai-powered.com/mcp/klokin-io): klokin.io is an MCP server for hr and payroll.
- [Work Handler](https://ai-powered.com/mcp/work-handler): Work Handler is a free MCP server for hr and payroll.
- [cloudtime API](https://ai-powered.com/mcp/cloudtime-api): cloudtime API is an MCP server for time tracking.
- [Hourbun](https://ai-powered.com/mcp/hourbun): Hourbun is an MCP server for time tracking.
- [EzDIS MCP Server (ZKTeco, GPS & OCPP 1.6J)](https://ai-powered.com/mcp/ezdis-mcp-server-zkteco-gps-and-ocpp-1-6j): EzDIS MCP Server (ZKTeco, GPS & OCPP 1.6J) is a free MCP server for vehicle data.
- [Clockify Time Tracking](https://ai-powered.com/mcp/clockify-time-tracking): Clockify Time Tracking is an open-source MCP server for time tracking.
- [Timebook](https://ai-powered.com/mcp/timebook): Timebook is an open-source MCP server for time tracking.
- [Humaans](https://ai-powered.com/mcp/humaans): Humaans is an open-source MCP server for hr and payroll.

---
Source: https://ai-powered.com/mcp/king-of-time
