Skip to main content
Glama

Timelog MCP 服务器

一个 MCP 服务器,将 Timelog 时间登记 API 以工具的形式暴露给 Claude。你可以通过自然语言查看、创建和管理时间登记、缺勤和工时表审批。

功能

  • 查看时间登记 — 按周或任意日期范围查看,包括财务/可计费数据

  • 创建、更新和删除 你有权限访问的任何任务上的时间登记

  • 缺勤管理 — 搜索缺勤代码并登记假期、病假等

  • 工时表审批 — 检查提交状态并提交工时表,可按员工、部门、审批人或法人实体筛选

  • 组织 — 查询法人实体和当前用户资料

  • 任务搜索 — 按名称或编号查找要登记时间的任务

Related MCP server: TimeChimp MCP Server

工具

用户与组织

get_current_user

获取已认证用户的资料(姓名、邮箱、部门)。无参数。

获取组织中的所有法人实体。返回每个实体的 ID、名称、启用状态、货币和国家。无参数。

时间登记

get_weekly_registrations

获取特定周的时间登记,按天分组并显示标准工时。

参数

类型

必填

描述

startDate

string

该周的周一(YYYY-MM-DD)

get_registrations_by_date_range

获取两个日期之间的时间登记。

参数

类型

必填

描述

startDate

string

开始日期(YYYY-MM-DD)

endDate

string

结束日期(YYYY-MM-DD)

get_financial_data

获取日期范围内时间登记的财务数据(可计费/发票状态)。

参数

类型

必填

描述

startDate

string

开始日期(YYYY-MM-DD)

endDate

string

结束日期(YYYY-MM-DD)

search_tasks

搜索用户可以登记时间的任务。返回创建时间登记所需的任务 ID。

参数

类型

必填

描述

searchText

string

要搜索的任务名称或任务编号

searchAll

boolean

搜索所有任务,而不仅仅是最近的任务(默认:false)

create_time_registration

在任务上创建新的时间登记。请先使用 search_tasks 查找 TaskID。

参数

类型

必填

描述

TaskID

integer

任务标识符(来自 search_tasks

Date

string

登记日期(YYYY-MM-DD)

Hours

number

要登记的小时数

Comment

string

登记的备注

JiraId

string

JIRA 工单 ID(例如 XXX-1234)

Billable

boolean

此时间是否可计费(默认为任务设置)

update_time_registration

更新现有的时间登记。只需提供要更改的字段。

参数

类型

必填

描述

TimeRegistrationID

integer

要更新的时间登记 ID

TaskID

integer

任务标识符

Date

string

新日期(YYYY-MM-DD)

Hours

number

新小时数

Comment

string

新备注

JiraId

string

JIRA 工单 ID(例如 SGI-82108)

Billable

boolean

此时间是否可计费

delete_time_registration

按 GUID 删除时间登记。

参数

类型

必填

描述

id

string (UUID)

要删除的时间登记的 GUID

缺勤

search_absence_codes

搜索缺勤代码(例如 Ferie、Sygdom)。返回 create_absence_registration 所需的 AbsenceCodeID。

参数

类型

必填

描述

searchText

string

按缺勤代码名称或编号筛选

create_absence_registration

创建缺勤登记(假期、病假等)。请使用 search_absence_codes 查找 AbsenceCodeID。默认登记一个完整工作日。

参数

类型

必填

描述

AbsenceCodeID

integer

缺勤代码标识符(来自 search_absence_codes

Date

string

缺勤日期(YYYY-MM-DD)

Hours

number

要登记的小时数(省略则为完整工作日)

Comment

string

登记的备注

工时表审批

get_timesheet_status

获取每周工时表审批/提交状态。默认为已认证用户。省略 userId 可获取所有员工(经理视图)。

参数

类型

必填

描述

startDate

string

开始日期(YYYY-MM-DD)

endDate

string

结束日期(YYYY-MM-DD)

userId

integer

按员工 UserID 筛选(省略则为所有员工)

departmentId

integer

按部门 ID 筛选

approverId

integer

按审批人 UserID 筛选

legalEntityId

integer

按法人实体 ID 筛选

submit_timesheet

为某个日期范围(例如一整周)提交工时表以供审批。

参数

类型

必填

描述

startDate

string

开始日期(YYYY-MM-DD)

endDate

string

结束日期(YYYY-MM-DD)

comment

string

提交的备注

employeeUserId

integer

要为其提交的员工的 UserID(默认为已认证用户)

经理工作流

查找并关闭未提交的工时表

使用不带 userIdget_timesheet_status 获取某个时间段内所有员工的提交状态。通过 departmentIdapproverIdlegalEntityId 筛选以缩小范围。

确定有未提交工时表的员工后,使用带 employeeUserIdsubmit_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 文档

环境变量

变量

必填

描述

TIMELOG_PAT

个人访问令牌(见上文)

TIMELOG_BASE_URL

API 基础 URL(见上文)

许可证

ISC

Install Server
F
license - not found
A
quality
C
maintenance

Maintenance

Maintainers
Response time
Release cycle
Releases (12mo)
Commit activity

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

  • F
    license
    B
    quality
    D
    maintenance
    Enables 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.
    46
    4
  • F
    license
    B
    quality
    D
    maintenance
    Enables 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.
    31
    2

View all related MCP servers

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…

View all MCP Connectors

Latest Blog Posts

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