
一个全面的模型上下文协议(MCP)服务器,用于 Kimai 时间跟踪集成。提供工时表管理、项目跟踪、团队协作和与智能用户报告的工具......
概览
一个全面的模型上下文协议(MCP)服务器,用于与 Kimai 时间跟踪 API 集成。该服务器允许像 Claude 这样的 AI 助手高效地与 Kimai 实例交互,管理时间跟踪、项目、活动、客户、用户、团队、缺勤等。 Speaks MCP 协议版本及所有更早版本(MCP Python SDK 2.x),均与 。较旧的 Kimai 实例仍能正常工作;需要特定 Kimai 版本的功能在下方标注。 部署一次服务器,让所有用户远程连接! SSE 服务器及其 kimai-mcp-server 命令已被移除。SSE 传输功能被从 MCP 规范中剔除,取而代之的是可流式 HTTP,该项目的实现自 v2.12.0 起已不再使用并被弃用。远程访问请使用 kimai-mcp-streamable。 自 v2.12.0 起,可流式 HTTP 服务器包含一个 OAuth 2.1 授权服务器。用户通过用户 slug 和每个用户的auth_secret进行认证,而非秘密 URL。
概述(AI 翻译)
一个全面的模型上下文协议(MCP)服务器,用于与 Kimai 时间跟踪 API 集成。该服务器允许像 Claude 这样的 AI 助手高效地与 Kimai 实例交互,管理时间跟踪、项目、活动、客户、用户、团队、缺勤等。
Speaks MCP 协议版本 2026-07-28 及所有更早版本(MCP Python SDK 2.x),均与 Kimai 2.66** 进行跟踪。较旧的 Kimai 实例仍在运行;需要特定 Kimai 版本的功能在下方标注。
🚀 快速启动
本地安装(单用户)
🌐 远程服务器部署(推荐用于Teams)
针对企业/团队环境: 部署一次服务器,让所有用户远程连接!
服务器类型
| 服务器 | 指挥 | 最佳 |
|---|---|---|
| 本地 | kimai-mcp |
Claude 桌面,单用户,开发 |
| 可流媒体HTTP | kimai-mcp-streamable |
Claude.ai 连接器(网页/移动端),团队 |
在v2.16.0中移除: SSE服务器及其
kimai-mcp-server命令已消失。
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Kimai MCP Server
A comprehensive Model Context Protocol (MCP) server for integrating with the Kimai time-tracking API. This server allows AI assistants like Claude to efficiently interact with Kimai instances to manage time tracking, projects, activities, customers, users, teams, absences, and more.
Speaks MCP protocol revision 2026-07-28 and every earlier revision (MCP Python SDK 2.x), tracked against Kimai 2.66. Older Kimai instances keep working; features that need a specific Kimai version are marked below.
🚀 Quick Start
Local Installation (Single User)
# Install from PyPI
pip install kimai-mcp
# Run with your Kimai credentials
kimai-mcp --kimai-url=https://your-kimai.com --kimai-token=your-token
# Or use the interactive setup wizard
kimai-mcp --setup
🌐 Remote Server Deployment (Recommended for Teams)
For enterprise/team environments: Deploy the server once and let all users connect remotely!
Server Types
| Server | Command | Best For |
|---|---|---|
| Local | kimai-mcp |
Claude Desktop, single user, development |
| Streamable HTTP | kimai-mcp-streamable |
Claude.ai Connectors (web/mobile), teams |
Removed in v2.16.0: the SSE server and its
kimai-mcp-servercommand are gone. The SSE transport was dropped from the MCP specification in favour of Streamable HTTP, and this project’s implementation had been non-functional and deprecated since v2.12.0. Usekimai-mcp-streamablefor remote access.
Quick Start with Docker (Streamable HTTP + OAuth)
Since v2.12.0 the Streamable HTTP server includes an OAuth 2.1 authorization server. Users authenticate with a user slug and a per-user auth_secret instead of a secret URL.
# 1. Generate a random slug and an auth_secret per user
python -c "import secrets; print(secrets.token_urlsafe(16))" # slug
python -c "import secrets; print(secrets.token_urlsafe(32))" # auth_secret
# 2. Create config file
mkdir config
cat > config/users.json << 'EOF'
{
"xK9mP2qW7vL4aB8c": {
"kimai_url": "https://your-kimai.com",
"kimai_token": "your-api-token",
"auth_secret": "long-random-oauth-login-secret"
}
}
EOF
# 3. Start server
docker-compose up -d
Security Warning: Use random slugs, NOT usernames! The server warns at startup about low-entropy slugs (shorter than 16 characters or plain lowercase words). Slugs may only contain letters, digits,
-and_.
Claude.ai Connectors Integration (OAuth)
The Streamable HTTP server works with Claude.ai custom connectors:
安装
This server does not publish a one-line install command.
Open the repository installation guide 新手?先看 mcpskill.org 教程 →配置
{
"mcpServers": {
"kimai": {
"command": "kimai-mcp",
"args": [
"--kimai-url=https://your-kimai-instance.com",
"--kimai-token=your-api-token-here"
]
}
}
}