Timelog MCP Server
Enables viewing, creating, and managing time registrations, absences, and timesheet approvals through the Timelog API using natural language.
README
Timelog MCP Server
An MCP server that exposes the Timelog time registration API as tools for Claude. It lets you view, create, and manage time registrations, absences, and timesheet approvals through natural language.
Capabilities
- View time registrations — by week or arbitrary date range, including financial/billable data
- Create, update, and delete time registrations on any task you have access to
- Absence management — search absence codes and register vacation, sick leave, etc.
- Timesheet approval — check submission status and submit timesheets, with filtering by employee, department, approver, or legal entity
- Organization — look up legal entities and the current user profile
- Task search — find tasks to register time on by name or number
Tools
User & Organization
get_current_user
Get the authenticated user's profile (name, email, department). No parameters.
get_legal_entities
Get all legal entities in the organization. Returns ID, name, active status, currency, and country for each entity. No parameters.
Time Registrations
get_weekly_registrations
Get time registrations for a specific week, grouped by day with norm hours.
| Parameter | Type | Required | Description |
|---|---|---|---|
startDate |
string | Yes | Monday of the week (YYYY-MM-DD) |
get_registrations_by_date_range
Get time registrations between two dates.
| Parameter | Type | Required | Description |
|---|---|---|---|
startDate |
string | Yes | Start date (YYYY-MM-DD) |
endDate |
string | Yes | End date (YYYY-MM-DD) |
get_financial_data
Get financial data (billable/invoice status) for time registrations in a date range.
| Parameter | Type | Required | Description |
|---|---|---|---|
startDate |
string | Yes | Start date (YYYY-MM-DD) |
endDate |
string | Yes | End date (YYYY-MM-DD) |
search_tasks
Search for tasks the user can register time on. Returns task IDs needed for creating time registrations.
| Parameter | Type | Required | Description |
|---|---|---|---|
searchText |
string | No | Task name or task number to search for |
searchAll |
boolean | No | Search all tasks, not just recent (default: false) |
create_time_registration
Create a new time registration on a task. Use search_tasks first to find the TaskID.
| Parameter | Type | Required | Description |
|---|---|---|---|
TaskID |
integer | Yes | Task identifier (from search_tasks) |
Date |
string | Yes | Date of the registration (YYYY-MM-DD) |
Hours |
number | Yes | Number of hours to register |
Comment |
string | No | Comment for the registration |
JiraId |
string | No | JIRA ticket ID (e.g. XXX-1234) |
Billable |
boolean | No | Whether this time is billable (defaults to task setting) |
update_time_registration
Update an existing time registration. Only supply the fields you want to change.
| Parameter | Type | Required | Description |
|---|---|---|---|
TimeRegistrationID |
integer | Yes | Time registration ID to update |
TaskID |
integer | Yes | Task identifier |
Date |
string | No | New date (YYYY-MM-DD) |
Hours |
number | No | New hours value |
Comment |
string | No | New comment |
JiraId |
string | No | JIRA ticket ID (e.g. SGI-82108) |
Billable |
boolean | No | Whether this time is billable |
delete_time_registration
Delete a time registration by its GUID.
| Parameter | Type | Required | Description |
|---|---|---|---|
id |
string (UUID) | Yes | GUID of the time registration to delete |
Absence
search_absence_codes
Search for absence codes (e.g. Ferie, Sygdom). Returns AbsenceCodeID needed for create_absence_registration.
| Parameter | Type | Required | Description |
|---|---|---|---|
searchText |
string | No | Filter by absence code name or number |
create_absence_registration
Create an absence registration (vacation, sick leave, etc.). Use search_absence_codes to find the AbsenceCodeID. Registers a full working day by default.
| Parameter | Type | Required | Description |
|---|---|---|---|
AbsenceCodeID |
integer | Yes | Absence code identifier (from search_absence_codes) |
Date |
string | Yes | Date of the absence (YYYY-MM-DD) |
Hours |
number | No | Hours to register (omit for a full working day) |
Comment |
string | No | Comment for the registration |
Timesheet Approval
get_timesheet_status
Get weekly timesheet approval/submission status. Defaults to the authenticated user. Omit userId to get all employees (manager view).
| Parameter | Type | Required | Description |
|---|---|---|---|
startDate |
string | Yes | Start date (YYYY-MM-DD) |
endDate |
string | Yes | End date (YYYY-MM-DD) |
userId |
integer | No | Filter by employee UserID (omit for all employees) |
departmentId |
integer | No | Filter by department ID |
approverId |
integer | No | Filter by approver UserID |
legalEntityId |
integer | No | Filter by legal entity ID |
submit_timesheet
Submit a timesheet for approval for a date range (e.g. a full week).
| Parameter | Type | Required | Description |
|---|---|---|---|
startDate |
string | Yes | Start date (YYYY-MM-DD) |
endDate |
string | Yes | End date (YYYY-MM-DD) |
comment |
string | No | Comment for the submission |
employeeUserId |
integer | No | UserID of the employee to submit for (defaults to authenticated user) |
Manager Workflows
Finding and closing open timesheets
Use get_timesheet_status without a userId to get the submission status for all employees in a period. Filter by departmentId, approverId, or legalEntityId to narrow the scope.
Once you've identified employees with open timesheets, use submit_timesheet with employeeUserId to submit on their behalf.
Example prompts:
"Show me everyone who hasn't submitted their timesheet this week" "Submit this week's timesheet for user 1234" "Submit all open timesheets for department 5 this week"
Setup
Via npx (recommended)
Add to your Claude Code .mcp.json or Claude Desktop config:
{
"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"
}
}
}
}
From source
git clone git@github.com:Amoeslund/Timelog-MCP-server.git
cd Timelog-MCP-server
npm install
npm run build
Then point your MCP config at the built file:
{
"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"
}
}
}
}
Configuration
Personal Access Token
Generate a PAT at https://login.timelog.com/personaltoken.
Base URL
Your URL follows the pattern https://app[X].timelog.com/<your-account>/api where [X] is a server number (1–10) and <your-account> is your Timelog account name. See the Timelog API docs for details.
Environment Variables
| Variable | Required | Description |
|---|---|---|
TIMELOG_PAT |
Yes | Personal Access Token (see above) |
TIMELOG_BASE_URL |
Yes | API base URL (see above) |
License
ISC
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。