Timelog MCP Server
Timelog MCP 服务器
一个 MCP 服务器,将 Timelog 时间登记 API 以工具的形式暴露给 Claude。你可以通过自然语言查看、创建和管理时间登记、缺勤和工时表审批。
功能
查看时间登记 — 按周或任意日期范围查看,包括财务/可计费数据
创建、更新和删除 你有权限访问的任何任务上的时间登记
缺勤管理 — 搜索缺勤代码并登记假期、病假等
工时表审批 — 检查提交状态并提交工时表,可按员工、部门、审批人或法人实体筛选
组织 — 查询法人实体和当前用户资料
任务搜索 — 按名称或编号查找要登记时间的任务
Related MCP server: TimeChimp 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
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables automated timesheet management including creating entries, listing work activities, managing daily scrum updates, and viewing assigned projects with automatic authentication handling.12MIT
- FlicenseBqualityDmaintenanceEnables interaction with the TimeChimp API v2 to manage projects, time entries, expenses, and invoices through natural language. It supports full CRUD operations across all major TimeChimp resources, including advanced OData query filtering and pagination.464
- FlicenseBqualityDmaintenanceEnables 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.312

Timesheet MCP Serverofficial
AlicenseBqualityBmaintenanceEnables natural language control of the Timesheet API for timer management, task tracking, and project management through MCP tools.50541MIT
Related MCP Connectors
Manage projects, tasks, time tracking, and team collaboration through natural language.
Track time on usetimebook.com - start/stop timers, log entries, list projects/clients.
Streamline your Attio workflows using natural language to search, create, update, and organize com…
Latest Blog Posts
- Who's Calling? MCP Hosts Are an Identity Blind Spot (And the Spec Knows It)By Om-Shree-0709 on .mcpAgent IdentityOAuth 2.1
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/elisabethfalck/mcp-timelog'
If you have feedback or need assistance with the MCP directory API, please join our Discord server