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 分

    請在儲存庫或註冊中心條目中宣告授權條款。