KING OF TIME
MCP server giving AI clients read and clock-in access to KING OF TIME attendance data
KING OF TIME is an MCP server for hr and payroll. It runs locally on your machine and is started by your AI client.
- Platforms
- CLI, Self-hosted, API
- Runs
- Locally
- Access
- Needs a secret key or token
- Version
- 0.1.0
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a 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.0Add --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.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>"
}
}
}
}Add to claude_desktop_config.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.
Add to ~/.cursor/mcp.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.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
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.0Or add to config.toml
Add to ~/.codex/config.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>" }Add to your client's MCP settings (most use this shape)
{
"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>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.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
Antigravity
Add to ~/.gemini/config/mcp_config.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 (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.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
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "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.
Junie
Add to ~/.junie/mcp/mcp.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
Add to ~/.kiro/settings/mcp.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.
Using several servers? Build one config file with the MCP config generator.
Configuration
KINGTIME_ACCESS_TOKENAccess token issued in KING OF TIME (Settings > API integration)Required
About KING OF TIME
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.
Tools this server provides (10)
Taken from the project documentation; the running server may differ.
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_employeesName suggests: reads
- Lists employee master records with optional filters.
- get_employeeName suggests: reads
- Fetches one employee by employee code.
- get_divisionsName suggests: reads
- Lists division codes.
- get_working_typesName suggests: reads
- Lists employment type master data.
- get_employee_groupsName suggests: reads
- Lists employee group master data.
- get_daily_workingsName suggests: reads
- Returns daily attendance totals for a period.
- get_timerecordsName suggests: reads
- Returns raw clock-in and clock-out events for a period.
- get_monthly_workingsName suggests: reads
- Returns monthly attendance totals.
- get_daily_schedulesName suggests: reads
- Returns shift schedules for a period.
- record_time
- Registers a single time record for an employee.
What it does
- 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
KING OF TIME 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.
