Timelog MCP Server
Timelog MCP 服务器
一个 MCP 服务器,将 Timelog 时间登记 API 以工具的形式暴露给 Claude。你可以通过自然语言查看、创建和管理时间登记、缺勤和工时表审批。
功能
查看时间登记 — 按周或任意日期范围查看,包括财务/可计费数据
创建、更新和删除 你有权限访问的任何任务上的时间登记
缺勤管理 — 搜索缺勤代码并登记假期、病假等
工时表审批 — 检查提交状态并提交工时表,可按员工、部门、审批人或法人实体筛选
组织 — 查询法人实体和当前用户资料
任务搜索 — 按名称或编号查找要登记时间的任务
Related MCP server: Tripletex MCP Server
工具
用户与组织
get_current_user
获取已认证用户的资料(姓名、邮箱、部门)。无参数。
get_legal_entities
获取组织中的所有法人实体。返回每个实体的 ID、名称、启用状态、货币和国家。无参数。
时间登记
get_weekly_registrations
获取特定周的时间登记,按天分组并显示标准工时。
参数 | 类型 | 必填 | 描述 |
| string | 是 | 该周的周一(YYYY-MM-DD) |
get_registrations_by_date_range
获取两个日期之间的时间登记。
参数 | 类型 | 必填 | 描述 |
| string | 是 | 开始日期(YYYY-MM-DD) |
| string | 是 | 结束日期(YYYY-MM-DD) |
get_financial_data
获取日期范围内时间登记的财务数据(可计费/发票状态)。
参数 | 类型 | 必填 | 描述 |
| string | 是 | 开始日期(YYYY-MM-DD) |
| string | 是 | 结束日期(YYYY-MM-DD) |
search_tasks
搜索用户可以登记时间的任务。返回创建时间登记所需的任务 ID。
参数 | 类型 | 必填 | 描述 |
| string | 否 | 要搜索的任务名称或任务编号 |
| boolean | 否 | 搜索所有任务,而不仅仅是最近的任务(默认:false) |
create_time_registration
在任务上创建新的时间登记。请先使用 search_tasks 查找 TaskID。
参数 | 类型 | 必填 | 描述 |
| integer | 是 | 任务标识符(来自 |
| string | 是 | 登记日期(YYYY-MM-DD) |
| number | 是 | 要登记的小时数 |
| string | 否 | 登记的备注 |
| string | 否 | JIRA 工单 ID(例如 XXX-1234) |
| boolean | 否 | 此时间是否可计费(默认为任务设置) |
update_time_registration
更新现有的时间登记。只需提供要更改的字段。
参数 | 类型 | 必填 | 描述 |
| integer | 是 | 要更新的时间登记 ID |
| integer | 是 | 任务标识符 |
| string | 否 | 新日期(YYYY-MM-DD) |
| number | 否 | 新小时数 |
| string | 否 | 新备注 |
| string | 否 | JIRA 工单 ID(例如 SGI-82108) |
| boolean | 否 | 此时间是否可计费 |
delete_time_registration
按 GUID 删除时间登记。
参数 | 类型 | 必填 | 描述 |
| string (UUID) | 是 | 要删除的时间登记的 GUID |
缺勤
search_absence_codes
搜索缺勤代码(例如 Ferie、Sygdom)。返回 create_absence_registration 所需的 AbsenceCodeID。
参数 | 类型 | 必填 | 描述 |
| string | 否 | 按缺勤代码名称或编号筛选 |
create_absence_registration
创建缺勤登记(假期、病假等)。请使用 search_absence_codes 查找 AbsenceCodeID。默认登记一个完整工作日。
参数 | 类型 | 必填 | 描述 |
| integer | 是 | 缺勤代码标识符(来自 |
| string | 是 | 缺勤日期(YYYY-MM-DD) |
| number | 否 | 要登记的小时数(省略则为完整工作日) |
| string | 否 | 登记的备注 |
工时表审批
get_timesheet_status
获取每周工时表审批/提交状态。默认为已认证用户。省略 userId 可获取所有员工(经理视图)。
参数 | 类型 | 必填 | 描述 |
| string | 是 | 开始日期(YYYY-MM-DD) |
| string | 是 | 结束日期(YYYY-MM-DD) |
| integer | 否 | 按员工 UserID 筛选(省略则为所有员工) |
| integer | 否 | 按部门 ID 筛选 |
| integer | 否 | 按审批人 UserID 筛选 |
| integer | 否 | 按法人实体 ID 筛选 |
submit_timesheet
为某个日期范围(例如一整周)提交工时表以供审批。
参数 | 类型 | 必填 | 描述 |
| string | 是 | 开始日期(YYYY-MM-DD) |
| string | 是 | 结束日期(YYYY-MM-DD) |
| string | 否 | 提交的备注 |
| integer | 否 | 要为其提交的员工的 UserID(默认为已认证用户) |
经理工作流
查找并关闭未提交的工时表
使用不带 userId 的 get_timesheet_status 获取某个时间段内所有员工的提交状态。通过 departmentId、approverId 或 legalEntityId 筛选以缩小范围。
确定有未提交工时表的员工后,使用带 employeeUserId 的 submit_timesheet 代其提交。
示例提示:
"显示本周所有未提交工时表的人" "为用户 1234 提交本周工时表" "提交部门 5 本周所有未提交的工时表"
设置
通过 npx(推荐)
添加到你的 Claude Code .mcp.json 或 Claude Desktop 配置中:
{
"mcpServers": {
"timelog": {
"command": "npx",
"args": ["-y", "timelog-mcp"],
"env": {
"TIMELOG_PAT": "<your-personal-access-token>",
"TIMELOG_BASE_URL": "https://app[X].timelog.com/<your-account>/api"
}
}
}
}从源码构建
git clone git@github.com:Amoeslund/Timelog-MCP-server.git
cd Timelog-MCP-server
npm install
npm run build然后将你的 MCP 配置指向构建后的文件:
{
"mcpServers": {
"timelog": {
"command": "node",
"args": ["/path/to/Timelog-MCP-server/dist/index.js"],
"env": {
"TIMELOG_PAT": "<your-personal-access-token>",
"TIMELOG_BASE_URL": "https://app[X].timelog.com/<your-account>/api"
}
}
}
}配置
个人访问令牌
在 https://login.timelog.com/personaltoken 生成 PAT。
基础 URL
你的 URL 遵循 https://app[X].timelog.com/<your-account>/api 模式,其中 [X] 是服务器编号(1–10),<your-account> 是你的 Timelog 账户名称。详见 Timelog API 文档。
环境变量
变量 | 必填 | 描述 |
| 是 | 个人访问令牌(见上文) |
| 是 | API 基础 URL(见上文) |
许可证
ISC
Available Tools
21 toolscreate_absence_registrationA
Create an absence registration (e.g. vacation, sick leave). Use search_absence_codes to find the AbsenceCodeID. Registers a full day by default; specify Hours for partial days.
Inputs: Date (required), AbsenceCodeID (required), Hours, Comment.
create_taskB
Create a new task (phase) on a project. Use search_projects to find the ProjectID first.
Inputs: EndDate (required), TaskName (required), ProjectID (required), StartDate (required), +7 more.
create_time_registrationA
Create a new time registration on a task. Use search_tasks first to find the TaskID.
Inputs: Date (required), Hours (required), TaskID (required), JiraId, +2 more.
delete_time_registrationB
Delete a time registration by its GUID.
Inputs: id (required).
get_contract_hourly_ratesA
Get all hourly rates configured on a specific contract. Returns rate name (role), amount, currency, type, and active status. Use get_project_contracts first to find the contractId.
Inputs: contractId (required).
get_current_userA
Get the currently authenticated Timelog user (name, email, department).
Inputs: no named parameters.
get_financial_dataB
Get financial data (billable/invoice status) for time registrations in a date range.
Inputs: endDate (required), startDate (required).
get_fixed_price_contract_detailsA
Get complete details for a fixed-price contract: contract value (from payment plan), payment schedule, linked fixed-price tasks/phases, and configured hourly rates. The contract value is the total price agreed with the client. For FP contracts, hourly rates are typically 0 (billing isn't per-hour) — use the overall project financial data to compute effective rates.
Inputs: projectId (required), contractId (required).
get_hourly_ratesA
Get hourly rates defined in Timelog. Returns rate name, amount, currency, customer, and active status. Use searchText to filter by name. Results are paginated.
Inputs: pageSize, pageNumber, searchText.
get_legal_entitiesA
Get all legal entities in the Timelog organization. Returns ID, name, active status, currency, and country for each entity.
Inputs: no named parameters.
get_projectA
Get project details by project ID. Returns name, project number, customer, project manager, budget, dates, and type.
Inputs: projectId (required).
get_project_contractsA
Get all contracts for a project. Returns contract ID, name, type (Fixed Price / Time & Material), status, and whether it's the main contract. Use the contractId with get_contract_hourly_rates to see rates.
Inputs: projectId (required).
get_project_tasksA
Get all tasks (phases) for a project. Returns task IDs, names, parent hierarchy, fixed-price status, and billable defaults. Use the projectId from get_project or from time registrations.
Inputs: projectId (required), pageSize, pageNumber.
get_registrations_by_date_rangeB
Get time registrations between two dates.
Inputs: endDate (required), startDate (required).
get_timesheet_statusB
Get weekly timesheet status. Defaults to the authenticated user. Pass userId to check a specific employee, or omit to get all employees (manager view). Can also filter by departmentId, approverId, or legalEntityId.
Inputs: endDate (required), startDate (required), userId, approverId, +2 more.
get_weekly_registrationsA
Get time registrations for a specific week. Provide the Monday date of the week.
Inputs: startDate (required).
search_absence_codesA
Search for absence codes (e.g. Ferie, Sygdom). Returns AbsenceCodeID needed for create_absence_registration.
Inputs: searchText.
search_projectsA
Search for projects by name or number. Returns project IDs, names, numbers, and customer info.
Inputs: searchText.
search_tasksA
Search for tasks the user can register time on. Returns task IDs needed for creating time registrations. Use searchText to filter by task or project name.
Inputs: searchAll, searchText.
submit_timesheetB
Submit timesheet for approval for a date range (e.g. a full week).
Inputs: endDate (required), startDate (required), comment, employeeUserId.
update_time_registrationA
Update an existing time registration (hours, comment, date, billable status).
Inputs: TaskID (required), TimeRegistrationID (required), Date, Hours, +3 more.
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
TDQS
Scored across 21 tools
Most tools target distinct resources (time registrations, absence, projects, contracts, rates), but there is potential overlap between get_weekly_registrations and get_registrations_by_date_range, and between get_hourly_rates and get_contract_hourly_rates. Descriptions clarify the differences, so only minor confusion risk exists.
All tools follow a consistent verb_noun snake_case pattern (e.g., get_project, create_time_registration, search_tasks, update_time_registration, submit_timesheet). The naming convention is uniform and predictable, with no mixed styles or vague verbs.
21 tools is on the higher end but appropriate for a comprehensive time tracking and project management domain. The server covers time registration, absence, projects, contracts, rates, financials, and users, so the tool count is justified without being bloated.
The tool surface covers core CRUD for time registrations, timesheet submission and status, project and task search, contract and rate queries, and financial data. Minor gaps exist, such as lack of update/delete for absence registrations and no direct query for absence registrations, but these are workable.
Maintenance
Related MCP Connectors
Connects AI assistants to TrackingTime for querying time entries, projects, tasks, customers, and team data using natural language.
Time tracking you talk to: log, check and fix your work hours from your AI assistant.
Manage projects, tasks, time tracking, and team collaboration through natural language.
Read hours, absences and projects; start timers, add entries, approve leave in TimeTac.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables automated timesheet management including creating entries, listing work activities, managing daily scrum updates, and viewing assigned projects with automatic authentication handling.MIT
- AlicenseBqualityDmaintenanceEnables AI assistants to interact with the Tripletex accounting API to manage time tracking, projects, and timesheet approvals through natural language. It also supports searching and managing outgoing invoices and processing supplier invoice approvals.312ISC

Timesheet MCP Serverofficial
AlicenseBqualityBmaintenanceEnables natural language control of the Timesheet API for timer management, task tracking, and project management through MCP tools.50298 npm1MIT- FlicenseNot gradedqualityDmaintenanceEnables natural-language reading, logging, editing, and deleting of your own HaloPSA timesheet entries, scoped to timesheets only.-