Toggl Mcp

io.github.souravpn由 GitHub 账号 souravpn 发布v1.0.0更新于 Oct 24, 2026

MCP server for Toggl Track — gives Claude access to your time tracking data

已验证STDIO仅桌面效率与工作流数据与分析

概览

AI 生成的概览

一个本地 MCP 服务器,将 Claude 连接到 Toggl Track,可读取时间记录和项目,并启动或停止计时器。

可以做什么
查看当前正在运行的计时器和最近几天(默认 7 天)的时间记录。列出项目,并显示个人资料与工作区。按日期范围汇总各项目的总时长。启动新的时间记录或停止当前计时器。
适用场景
适合在 Toggl Track 中记录工作、希望通过对话查询当天或本周用时、按项目回顾时间,或直接开始和停止计时器而不必打开 Toggl 应用的用户。
运行要求
以 npm 包形式在本地运行(需要 Node.js),在 Claude Desktop 中配置。需要 Toggl Track API 令牌,通过环境变量 TOGGL_API_TOKEN 提供,并需要访问 Toggl API 的网络连接。仅支持桌面端。
安装前请注意
Toggl API 令牌是保存在客户端配置中的机密,持有者可访问你的 Toggl 账户数据。该服务器可以启动和停止计时器,会修改你的时间记录。Toggl 免费方案每个工作区每小时限 30 次请求,频繁查询可能触达上限。

安装

在 SourceWeft 中

  1. 打开 控制台中的 Toggl Mcp,将其添加到工作区。
  2. 为需要使用其工具的对话启用该服务。

Desktop only,通过 STDIO。 STDIO 服务会启动本地进程,因此需要 SourceWeft 桌面宿主。

其他 MCP 客户端

参照 仓库 中的启动说明。

README

toggl-mcp

A Model Context Protocol (MCP) server that gives Claude access to your Toggl Track time tracking data.

Ask Claude things like:

  • "What am I tracking right now?"
  • "How much time did I spend on each project this week?"
  • "Start a timer for writing documentation on the Blog project"
  • "Stop my timer"
  • "What did I work on yesterday?"

Tools

ToolWhat it does
get_current_timerShows the currently running time entry
get_recent_entriesTime entries for the past N days (default 7)
get_projectsLists all your projects
get_summaryTotal time by project for a date range
start_timerStarts a new time entry
stop_timerStops the current timer
get_profileYour Toggl profile and workspaces

Setup

1. Get your API token

  1. Go to https://track.toggl.com/profile
  2. Scroll to the bottom
  3. Click "Click to reveal" under API Token
  4. Copy the token

2. Install

bash
npm install -g toggl-mcp

Find the installed path:

bash
which toggl-mcp

3. Add to Claude Desktop

Edit ~/Library/Application Support/Claude/claude_desktop_config.json (macOS):

json
{  "mcpServers": {    "toggl": {      "command": "/path/from/which/toggl-mcp",      "env": {        "TOGGL_API_TOKEN": "your_token_here"      }    }  }}

Or if running from source:

json
{  "mcpServers": {    "toggl": {      "command": "node",      "args": ["/path/to/toggl-mcp/dist/index.js"],      "env": {        "TOGGL_API_TOKEN": "your_token_here"      }    }  }}

Restart Claude Desktop. You should see a green "running" badge in Settings → Developer.

4. Test it

What am I currently tracking in Toggl?

Example queries

Daily check-in:

What have I tracked today in Toggl?

Weekly review:

Give me a summary of how I spent my time this week by project

Start tracking:

Start a Toggl timer for "reviewing PRs" on my Engineering project

Stop and summarize:

Stop my timer and tell me how long I worked

Productivity analysis:

How much time did I track last week vs the week before?Which project took the most time?

Development

bash
git clone https://github.com/yourusername/toggl-mcpcd toggl-mcpnpm installnpm run build
# Test locallyTOGGL_API_TOKEN=your_token node dist/index.js

Project structure

toggl-mcp/├── src/│   ├── index.ts   # MCP server + tool definitions│   └── toggl.ts   # Toggl API v9 client + formatters├── package.json├── tsconfig.json└── README.md

Rate limits

Toggl's free plan allows 30 requests/hour per workspace. This MCP server batches calls where possible (e.g. fetching projects and entries in parallel) to stay well within limits for normal use.


Contributing

PRs welcome. Ideas for extension:

  • Tags management
  • Client listing
  • Detailed reports (daily breakdown)
  • Time entry editing

License

MIT


Acknowledgements

Built with the MCP TypeScript SDK and the Toggl Track API v9.

来源:README.md,提交 4fc0db9

工具

0
SourceWeft 尚未在沙箱中启动过该软件包,因此其工具未知。

版本历史

1
  1. v1.0.0最新Sep 16, 2026

评分

已满足适用检查项的 40%

该评分衡量此收录条目的完整程度,依据注册中心条目、端点与公开来源计算得出。它不是对服务器本身的评价,也不表示服务器安全或当前可用:可连通性是带日期的检查结果,评分也不包含安装量或用户评价。

  • 近 30 天内可连通25 分

    请保持端点能够响应 MCP 握手;SourceWeft 每 30 天探测一次。

  • 已声明认证方式10 分

    请在注册中心条目中声明凭据请求头,或保持端点能够响应探测,以便判定其认证方式。

  • 已列出工具15 分

    请让服务器在无凭据时响应 tools/list,或发布可在沙箱中无凭据启动的软件包。

  • 描述必需15 分
  • 图标10 分
  • 文档15 分
  • 许可证10 分

    请在仓库或注册中心条目中声明许可证。