Skip to main content
Glama
breckenreed

clickup-mcp-full

by breckenreed
README.md
# clickup-mcp-full

A ClickUp MCP server that can read a whole nested subtask tree — or a task's
whole activity history — in **one call**.

[![M8ven Trust Score](https://m8ven.ai/badge/mcp/breckenreed-clickup-mcp-full-qfvqac)](https://m8ven.ai/mcp/breckenreed-clickup-mcp-full-qfvqac)

It wraps [`@twofeetup/clickup-mcp`](https://www.npmjs.com/package/@twofeetup/clickup-mcp)
rather than forking it, so upstream fixes arrive with a dependency bump. On top
of that server it adds `get_task_tree` and `get_task_activity`, rewrites one
tool description that reliably misleads smaller models, and pins a sensible
default tool set.

## Why the subtask tree

Upstream's only route to subtasks is `search_tasks` with `include_subtasks`,
which calls `GET /task/{id}?subtasks=true` and returns **full task objects for
the direct children only**. On a task with fifty subtasks nested several levels
deep that is both incomplete and ruinous for an agent's context window. The
alternative, one request per node, is worse.

`get_task_tree` walks the containing list once instead. ClickUp's
`GET /list/{id}/task?subtasks=true` returns every task in the list along with
its `parent` pointer, so the tree is reassembled locally: two requests total
regardless of depth or width, and the output is one compact line per task.

```
Task tree for 86capt3b: 23 task(s) including the root.
Statuses: in progress: 3, open: 14, complete: 6
List: Q3 Delivery

86capt3b  [in progress]  Migrate billing service  <ivan>
  86captk1  [complete]  Audit current schema  <olena>
  86captk2  [in progress]  Write migration scripts  <ivan>
    86captm7  [open]  Handle partial refunds
    86captm8  [open]  Backfill historical rows
  86captk3  [open]  Cutover plan
```

## Why the activity log

Upstream's `task_comments` reads comments and nothing else, so "who moved this
deadline", "when did it go to in progress", "who added that tag" are simply
unanswerable — those events live in ClickUp's **task history**, which the
documented v2 API does not expose at any endpoint.

`get_task_activity` reads the history the ClickUp web app itself reads
(`GET /v1/task/{id}/history`), merges it with the comments, de-duplicates the
comments that appear in both, and renders one chronological log: every status
change, due and start date move, assignee, watcher, tag, priority, name and
description edit, custom field, list or folder move, attachment, checklist,
time estimate and task relationship, with who did it and when.

```
Activity for 86capt3b (DEV-12): Migrate billing service
7 event(s).
Kinds: Comment: 2, Due date: 1, Tags: 1, Assignee added: 1, Status: 1, Custom field: 1

2026-03-06 12:00  ivan  —  Cutover moved to next week.
2026-03-05 09:00  ivan  —  Due date: 2026-03-10 12:00 → 2026-03-24 12:00
2026-03-04 15:30  olena  —  Tags: blocked, billing
2026-03-04 11:05  olena  —  Assignee added: ivan
2026-03-03 08:00  ivan  —  Status: to do → in progress
2026-03-02 17:45  olena  —  Schema audit done, moving on.
2026-03-01 10:00  ivan  —  Custom field "Sprint": S-14
```

Narrow it with `fields` (raw ClickUp field names: `status`, `due_date`,
`assignee_add`, `tag`, `custom_field`, ...), `since` (ISO date or millisecond
timestamp), `limit`, `include_comments` and `oldest_first`. Timestamps are UTC.

## Install

Nothing to clone or build. Point your agent at the package and it is fetched on
first launch.

**Claude Code**

```bash
claude mcp add clickup_full_local \
  --env CLICKUP_API_KEY=pk_your_token \
  --env CLICKUP_TEAM_ID=9012345678 \
  -- npx -y github:breckenreed/clickup-mcp-full
```

**Claude Desktop, Cursor, Windsurf, or any client using `mcpServers` JSON**

```json
{
  "mcpServers": {
    "clickup_full_local": {
      "command": "npx",
      "args": ["-y", "github:breckenreed/clickup-mcp-full"],
      "env": {
        "CLICKUP_API_KEY": "pk_your_token",
        "CLICKUP_TEAM_ID": "9012345678"
      }
    }
  }
}
```

**Hermes** (`~/.hermes/config.yaml`)

```yaml
mcp_servers:
  clickup_full_local:
    command: npx
    args: ["-y", "github:breckenreed/clickup-mcp-full"]
    env:
      CLICKUP_API_KEY: "${CLICKUP_API_KEY}"
      CLICKUP_TEAM_ID: "${CLICKUP_TEAM_ID}"
    connect_timeout: 60
    keepalive_interval: 60
    idle_timeout_seconds: 1800
```

**Global install**, if you would rather not resolve from GitHub on every launch:

```bash
npm install -g github:breckenreed/clickup-mcp-full
```

then use `clickup-mcp-full` as the command with no arguments.

## Credentials

| Variable | Where to get it |
|---|---|
| `CLICKUP_API_KEY` | ClickUp, Settings, Apps, API Token. Starts with `pk_`. |
| `CLICKUP_TEAM_ID` | The number in your ClickUp URL, or `curl -H "Authorization: $CLICKUP_API_KEY" https://api.clickup.com/api/v2/team` and read `.teams[].id`. |

A ClickUp personal token has no scopes of its own. It acts as the user who
created it and inherits that user's permissions, so if you want an agent that
cannot write, create the token under a view-only ClickUp account rather than
relying on tool selection.

## Tools

| Tool | Access | What it does |
|---|---|---|
| `get_task_tree` | read | Task plus all nested subtasks, any depth, one call |
| `get_task_activity` | read | Full history of a task: system events plus comments |
| `get_workspace_hierarchy` | read | Spaces, folders, lists as a tree |
| `search_tasks` | read | One task by id, one list, or workspace-wide filters |
| `get_container` | read | Details of a single list or folder |
| `find_members` | read | Resolve a name or email to an assignee id |
| `task_comments` | read, write | Get and add comments (use `get_task_activity` to read) |
| `manage_task` | write | Create, update, delete, move, duplicate |
| `manage_container` | write | Create, update, delete lists and folders |
| `operate_tags` | read, write | List, create, update, delete tags |
| `task_time_tracking` | read, write | Get, start, stop, add, delete entries |

Upstream also ships `attach_file_to_task`, which uploads a local file into
ClickUp. It is **off by default** here: for an agent that runs without
per-action confirmation, it turns any prompt injection the agent reads into a
data-egress path. Enable it deliberately if you need it:

```
ENABLED_TOOLS=get_workspace_hierarchy,search_tasks,manage_task,task_comments,get_container,manage_container,find_members,operate_tags,task_time_tracking,attach_file_to_task
```

## Options

| Variable | Default | Effect |
|---|---|---|
| `ENABLED_TOOLS` | the nine upstream tools above | Comma-separated allowlist. Overrides the default set. `get_task_tree` and `get_task_activity` are implemented here, so they are always available. |
| `DISABLED_TOOLS` | unset | Comma-separated blocklist. Ignored when `ENABLED_TOOLS` is set. |
| `REQUEST_SPACING` | `100` | Milliseconds between ClickUp API calls. See below. |
| `DOCUMENT_SUPPORT` | `false` | `true` exposes upstream's document tools. |
| `CLICKUP_MCP_ENTRY` | unset | Path to the wrapped server, for unusual install layouts. It may only point inside the installed `@twofeetup/clickup-mcp`. |

**Raise `REQUEST_SPACING` on a shared workspace.** The default allows about ten
requests per second, while ClickUp's per-token limit is roughly 100 per minute
on most plans. The limit is counted against the token, not the tool, so an
agent that exhausts it also breaks every other integration running under the
same token. `700` keeps you under a 100 per minute ceiling.

## Where the token goes

The token is a full-workspace credential, so this server is deliberately narrow
about where it can travel. All of it is asserted by the tests in `test/`.

- **One origin.** Native requests are built as a `URL`, compared against
  `https://api.clickup.com`, and only then sent — with the host written out
  literally in the `fetch` call. A request anywhere else throws before the
  `Authorization` header exists.
- **Read-only native path.** Both native tools share one helper with the method
  hardcoded to GET. Callers pass a path, never a method or a host.
- **A trimmed child environment.** The wrapped server is a child process and
  receives only the variables it reads, plus what Node needs to start — not the
  whole environment of the editor that launched this one, and never
  `NODE_OPTIONS`.
- **A fixed child.** It is resolved from the installed dependency, and the entry
  override may only point inside that package, so no environment variable can
  redirect the credential into other code.
- **No listening socket.** SSE is forced off and stdio on, whatever the
  environment says, so the server is reachable only through the pipe of the
  process that launched it.
- **No file uploads by default.** See `attach_file_to_task` above.

`SECURITY.md` has the detail, including how to report a problem.

## Notes on behaviour

**Subtasks in another list.** The tree is built by walking the list that
contains the root task. If your workspace places subtasks in a different list
from their parent, those will not appear, and the server falls back to the
direct children reported by the task endpoint. Open an issue if you hit this
and it matters.

**Argument spellings are forgiving.** The two native tools accept `task_id`,
`taskid`, a bare `id` or `task` wherever the schema says `taskId`, and the same
folding applies to every other argument (`maxDepth` for `max_depth`,
`includeComments` for `include_comments`). Values are coerced to the declared
type, so `"true"`, `"15"` and `"status,due_date"` work where a boolean, a number
and an array are expected. Smaller models get these wrong constantly, and the
failures were silent rather than loud: an unread `taskId` surfaced as "taskId is
required", and `include_comments: "false"` is a non-empty string, so it read as
true. The alias used is logged to stderr.

**The activity endpoint is undocumented.** `GET /v1/task/{id}/history` is what
the ClickUp web app calls, not part of the published v2 API: a personal token
can read it today, but ClickUp does not promise that, and some plans or tokens
get a 403. That failure is not fatal — `get_task_activity` then returns the
comments plus a line saying the system events were unavailable, so the tool
never simply breaks. It pages up to ten pages of history and ten of comments,
spaced by `REQUEST_SPACING`.

**`search_tasks` descriptions.** The upstream description ("Works 3 ways")
leads smaller models to put a plain id like `86capt3b` into `customTaskId`,
which is only for prefixed ids like `DEV-123`. Such a call falls through to the
workspace-search branch and fails with "At least one filter parameter is
required", an error that names the wrong problem, after which the model tends
to invent filters instead of fixing the field. This server replaces that
description with the single rule the model actually needs.

**Running inside Docker with a bind-mounted home.** If your agent launches MCP
servers with `HOME` pointing at a bind mount, `npx` rebuilds its package cache
across that mount on every connect, which can take minutes and time out. Install
globally inside the image instead and point `command:` at the binary.

## Troubleshooting

Check that the server starts and lists its tools:

```bash
CLICKUP_API_KEY=pk_... CLICKUP_TEAM_ID=... npx -y github:breckenreed/clickup-mcp-full --help
```

`Missing required environment` means the variables did not reach the process:
most clients require them in the server's own `env` block, not your shell.

A 401 from any tool means the token is wrong or was revoked. A 429 means you
are hitting the rate limit, so raise `REQUEST_SPACING`.

## Development

There is nothing to build. The tests run on the standard library alone:

```bash
npm test
```

`test/format.test.mjs` and `test/tools.test.mjs` cover the tree assembly, the
activity rendering, the tool annotations and the argument normalisation as
plain functions. `test/server.test.mjs` spawns the server the way a host does
and drives it over stdio: the handshake, the tool list, the refusals, and the
guard on the entry override. None of them touch the network or need a ClickUp
workspace.

## License

MIT, like the upstream server it wraps. `@twofeetup/clickup-mcp` is the
MIT-licensed community continuation of the pre-paid tree of
`@taazkareem/clickup-mcp-server`.