Official Model Context Protocol (MCP) server for Timesheet API. Control your timer with natural language in Claude, Cursor, and other MCP-compatible clients. Track time, manage projects, and log expenses seamlessly.
接入配置
选择客户端,复制配置,再按项目文档补齐环境变量。
本地运行
claude mcp add timesheet --env TIMESHEET_API_TOKEN='<TIMESHEET_API_TOKEN>' -- npx -y @timesheet/mcp~/.codex/config.toml
[mcp_servers.timesheet]
command = "npx"
args = ["-y", "@timesheet/mcp"]
env = { TIMESHEET_API_TOKEN = "<TIMESHEET_API_TOKEN>" }
# codex mcp add timesheet --env TIMESHEET_API_TOKEN='<TIMESHEET_API_TOKEN>' -- npx -y @timesheet/mcp~/.cursor/mcp.json
{
"mcpServers": {
"timesheet": {
"command": "npx",
"args": [
"-y",
"@timesheet/mcp"
],
"env": {
"TIMESHEET_API_TOKEN": "<TIMESHEET_API_TOKEN>"
}
}
}
}.vscode/mcp.json
{
"servers": {
"timesheet": {
"type": "stdio",
"command": "npx",
"args": [
"-y",
"@timesheet/mcp"
],
"env": {
"TIMESHEET_API_TOKEN": "<TIMESHEET_API_TOKEN>"
}
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"timesheet": {
"command": "npx",
"args": [
"-y",
"@timesheet/mcp"
],
"env": {
"TIMESHEET_API_TOKEN": "<TIMESHEET_API_TOKEN>"
}
}
}
}claude_desktop_config.json
{
"mcpServers": {
"timesheet": {
"command": "npx",
"args": [
"-y",
"@timesheet/mcp"
],
"env": {
"TIMESHEET_API_TOKEN": "<TIMESHEET_API_TOKEN>"
}
}
}
}.trae/mcp.json
{
"mcpServers": {
"timesheet": {
"command": "npx",
"args": [
"-y",
"@timesheet/mcp"
],
"env": {
"TIMESHEET_API_TOKEN": "<TIMESHEET_API_TOKEN>"
}
}
}
}远程托管
claude mcp add --transport http timesheet https://mcp.timesheet.io~/.codex/config.toml
[mcp_servers.timesheet]
url = "https://mcp.timesheet.io"
# codex mcp add timesheet --url https://mcp.timesheet.io~/.cursor/mcp.json
{
"mcpServers": {
"timesheet": {
"url": "https://mcp.timesheet.io"
}
}
}.vscode/mcp.json
{
"servers": {
"timesheet": {
"type": "http",
"url": "https://mcp.timesheet.io"
}
}
}~/.gemini/settings.json
{
"mcpServers": {
"timesheet": {
"httpUrl": "https://mcp.timesheet.io"
}
}
}claude_desktop_config.json · Customize › Connectors › Add custom connector
{
"mcpServers": {
"timesheet": {
"command": "npx",
"args": [
"-y",
"mcp-remote",
"https://mcp.timesheet.io"
]
}
}
}.trae/mcp.json
{
"mcpServers": {
"timesheet": {
"url": "https://mcp.timesheet.io"
}
}
}需要的环境变量
TIMESHEET_API_TOKEN
把占位值换成你自己的密钥;不要把密钥提交到代码仓库。