mcp-server-toggl
# mcp-server-toggl
An MCP server for [Toggl Track](https://toggl.com/track/) that provides team-wide time tracking, reporting, and full workspace management through the Model Context Protocol.
Built on Toggl's v9 API and Reports API v3, this server lets AI assistants query time entries, generate summary reports, manage project membership, and do full CRUD on clients, projects, and tasks.
## Setup
### 1. Get a Toggl API Token
1. Log in to [Toggl Track](https://track.toggl.com/)
2. Go to your [Profile Settings](https://track.toggl.com/profile)
3. Scroll to the bottom and copy your API Token
### 2. Configure Claude Desktop
Add this to your Claude Desktop config file:
**macOS:** `~/Library/Application Support/Claude/claude_desktop_config.json`
**Windows:** `%APPDATA%\Claude\claude_desktop_config.json`
```json
{
"mcpServers": {
"toggl": {
"command": "npx",
"args": ["-y", "mcp-server-toggl"],
"env": {
"TOGGL_API_TOKEN": "your-api-token-here"
}
}
}
}
```
### 3. Configure GitHub Copilot
Edit `~/.copilot/mcp-config.json`:
```json
{
"mcpServers": {
"toggl": {
"command": "node",
"args": ["/path/to/mcp-server-toggl/dist/index.js"],
"env": {
"TOGGL_API_TOKEN": "your-api-token-here"
}
}
}
}
```
Restart Copilot after saving.
### 4. Build from Source (optional)
```bash
git clone https://github.com/gpeden-lf/mcp-server-toggl.git
cd mcp-server-toggl
npm install
npm run build
```
Then point your MCP client at the built server:
```json
{
"mcpServers": {
"toggl": {
"command": "node",
"args": ["/path/to/mcp-server-toggl/dist/index.js"],
"env": {
"TOGGL_API_TOKEN": "your-api-token-here"
}
}
}
}
```
## Tools
### Workspace & Organization
| Tool | Description |
|------|-------------|
| `toggl_list_workspaces` | List all accessible workspaces |
| `toggl_list_users` | List team members with IDs, names, and emails (requires admin) |
| `toggl_list_clients` | List all clients in a workspace |
| `toggl_create_client` | Create a new client |
| `toggl_update_client` | Update an existing client |
| `toggl_delete_client` | Delete a client |
| `toggl_list_projects` | List projects (auto-paginated, filterable by active status and client) |
| `toggl_get_project` | Get details for a single project |
| `toggl_create_project` | Create a new project, optionally from a template using `template_id` |
| `toggl_update_project` | Update an existing project |
| `toggl_delete_project` | Delete a project |
| `toggl_list_tasks` | List tasks within a project |
| `toggl_create_task` | Create a new task within a project |
| `toggl_update_task` | Update an existing task |
| `toggl_delete_task` | Delete a task |
### Project Membership
| Tool | Description |
|------|-------------|
| `toggl_list_project_users` | List all users assigned to a project |
| `toggl_add_user_to_project` | Add a user to a project |
| `toggl_remove_user_from_project` | Remove a user from a project |
| `toggl_add_user_to_client_projects` | Add a user to all active projects under a client (bulk onboard) |
| `toggl_remove_user_from_client_projects` | Remove a user from all projects under a client (bulk offboard) |
### Reporting
| Tool | Description |
|------|-------------|
| `toggl_search_time_entries` | Search time entries across all team members. Supports filtering by project, client, user, task, and description. Auto-paginates and enriches results with names. |
| `toggl_get_summary_report` | Get aggregated time totals grouped by users, projects, or clients. Supports sub-grouping for breakdowns like "each user's time by project." |
### Creating a Project from a Template
Pass the source project's `template_id` to `toggl_create_project`, along with
`workspace_id`, the new project's `name`, and the destination `client_id`.
Omit `template_id` for ordinary project creation.
```json
{
"workspace_id": 12345,
"name": "Systems & Tools",
"client_id": 67890,
"template_id": 11111,
"is_private": true,
"billable": true
}
```
Toggl applies the template server-side. Verify the resulting tasks and settings
before relying on the new project. Add any additional destination team members
separately with `toggl_add_user_to_project`; template creation does not replace
that membership step.
## Example Prompts
- "Add [name] to all [Client] projects in Toggl"
- "Remove [name] from all [Client] projects in Toggl"
- "How many hours did each team member log last week?"
- "Show me all time entries for the Marketing project this month"
- "What's the PTO breakdown by person for Q1?"
- "List all active projects in workspace 12345"
- "How much time was logged against Client X in January?"
## Requirements
- Node.js 18+
- A Toggl Track account with an API token
- Admin access required for user and project membership tools
## License
MIT
TDQS
Scored across 22 tools
Each tool pairs a distinct resource with a clear action, and the boundaries between project-level, client-level, and reporting operations are explicit in the descriptions. Potential overlaps like list_users vs list_project_users and add_user_to_project vs add_user_to_client_projects are clearly differentiated by scope.
All tools consistently use the toggl_ prefix, snake_case, and a verb_noun pattern (list_projects, create_client, update_task, search_time_entries). Longer names like add_user_to_client_projects still follow the same predictable convention.
At 22 tools the surface is somewhat heavy, but the count is justified by CRUD coverage across projects, clients, tasks, project membership, and reporting. It is not bloated with redundant variants, though it sits at the upper edge of comfortable scope.
The server covers project, client, task, user-listing, membership, and reporting workflows well, but it lacks core Toggl time-tracking operations such as creating, updating, deleting, starting, or stopping time entries. It also lacks single-record getters for clients and tasks, leaving notable gaps for a server named after Toggl.