
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
@togglhq/mcp
Advanced tools
A local MCP (Model Context Protocol) server that connects to the Toggl 2.0 API. Works with any MCP client including Claude Code and Claude Desktop.
On first use, call the auth MCP tool to sign in (opens your browser). For Claude Code and Claude Desktop, see Add to your MCP client below.
npm install @togglhq/mcp
# or: pnpm add @togglhq/mcp
Authenticate once the MCP server is connected — call the auth tool (opens your browser). Or from a terminal:
npx @togglhq/mcp auth
For one-off runs without a local install: npx -y @togglhq/mcp auth.
claude mcp add toggl-focus -- npx @togglhq/mcp
Add to your Claude Desktop config file:
~/Library/Application Support/Claude/claude_desktop_config.json%APPDATA%\Claude\claude_desktop_config.json{
"mcpServers": {
"toggl-focus": {
"command": "npx",
"args": ["@togglhq/mcp"]
}
}
}
Restart Claude Desktop after saving.
Uses OAuth2 with PKCE via the Toggl Accounts service. Credentials are stored in ~/.toggl/focus-tools.json (mode 0600). Access tokens refresh automatically — call auth again (or run npx @togglhq/mcp auth) to switch workspaces or if your refresh token expires (after 4 weeks of inactivity).
Upgrading from an older version? Sessions previously stored at
~/.toggl-focus-mcp/config.jsonare still read automatically — no re-authentication needed.
Unified config vs legacy file: MCP logout only removes credentials when there is a matching profile row under
~/.toggl/focus-tools.jsonwithactive.mcpset. Callauthonce to migrate into the unified file if logout reports nothing was cleared (or runnpx @togglhq/mcp authfrom a terminal).
claude mcp add toggl-focus \
-s user \
-e TOGGL_WORKSPACE_ID=<your-workspace-id> \
-e TOGGL_API_TOKEN=<your-api-token> \
-e TOGGL_ORGANIZATION_ID=<your-org-id> \
-e TOGGL_USER_ID=<your-user-id> \
-- npx @togglhq/mcp
One tool per domain (for example tasks, projects, time-blocks, time-entries, organization). Each tool accepts:
action (required)data (optional)confirm_token (optional) — second step for mutating operationsdry_run (optional) — validates input without calling the APIMutation confirmation: mutating tools return confirm_required with a confirm_token on the first call; repeat with confirm_token to execute.
refresh: true refetches from Accounts)active.mcp in ~/.toggl/focus-tools.jsonAgent-oriented guidance ships in skills/toggl-mcp/SKILL.md inside this package.
Proprietary Toggl software. See LICENSE and Toggl legal terms.
FAQs
Toggl 2.0 MCP server for Claude Code, Claude Desktop, and other MCP clients.
The npm package @togglhq/mcp receives a total of 507 weekly downloads. As such, @togglhq/mcp popularity was classified as not popular.
We found that @togglhq/mcp demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.