Skip to main content
Glama

clickup-custom-mcp

A stdio MCP server that talks to the ClickUp REST API v2 directly.

It exists because ClickUp's hosted MCP (mcp.clickup.com) caps a Free workspace at 50 calls per 24 hours and refuses personal API tokens, while the same account's REST API allows 100 requests per minute. This server trades a daily ceiling for a per-minute one, and keeps the token on your machine instead of in a hosted integration.

Requirements

  • Node 20+ (see engines in package.json)

  • A ClickUp personal API token

Related MCP server: clickup-mcp

Setup

npm install
npm run build

Generate a token in ClickUp: avatar → Settings → Apps → API Token → Generate.

Copy .env.example to .env at the repo root (.env is gitignored) and fill in the token:

cp .env.example .env

The server loads that file itself via process.loadEnvFile, so the token never has to be written into Claude Code's config — where claude mcp add -e would store it in plaintext. Anything already present in the environment wins over .env, and if the file is missing (or the Node build has no loadEnvFile) the server simply falls back to plain environment variables.

Environment variables

Variable

Required

Purpose

CLICKUP_API_TOKEN

yes

Personal API token. The server exits with a message if it's unset.

CLICKUP_TEAM_ID

no

Pin a workspace. Without it the first workspace the token can see is used, and a note goes to stderr if there is more than one.

CLICKUP_UPLOAD_DIR

no

The only directory upload_attachment may read from. Defaults to ~/Downloads. A leading ~ is expanded to your home folder.

CLICKUP_MAX_UPLOAD_MB

no

Largest file upload_attachment accepts. Defaults to 50.

CLICKUP_RATE_LIMIT

no

Requests/minute the client allows itself. Defaults to 90 — deliberate headroom under ClickUp's 100.

Register with Claude Code

claude mcp add clickup-custom-mcp -- node /absolute/path/to/clickup-custom-mcp/dist/index.js

No -e CLICKUP_API_TOKEN=... is needed — the .env file covers it.

Register with Claude Desktop

Add an entry under mcpServers in ~/Library/Application Support/Claude/claude_desktop_config.json, then fully quit and reopen the app:

"clickup-custom-mcp": {
  "command": "/absolute/path/to/node",
  "args": ["/absolute/path/to/clickup-custom-mcp/dist/index.js"]
}

Use the absolute path from which node: the app does not load your shell profile, so a bare node (especially an nvm install) is not on its PATH. Behind a TLS-intercepting proxy, add "env": { "NODE_EXTRA_CA_CERTS": "/path/to/root.pem" }. It must be set here because Node reads it only at startup, before .env is loaded.

Run it standalone with npm start. stdout is the JSON-RPC channel, so every diagnostic (including a per-request log line with ClickUp's remaining quota) goes to stderr.

Tools

Seven coarse tools, each shaped around a job rather than an endpoint. The fan-out lives in the server, not in the model: one get_my_work call costs 2 HTTP requests where walking space → folder → list → task from the model side costs thirty.

Tool

What it does

get_workspace_map

Spaces, folders, lists (with their status names) and members, plus your own numeric user id. Call it first when you need an id for anything else. Cached 15 minutes; optionally includes custom field definitions.

get_my_work

Every open task assigned to you across the workspace, grouped by overdue / today / this week / later. The one for a standup or a backlog sweep.

search_tasks

Filtered task query across the whole workspace in one request — lists, spaces, assignees, statuses, tags, due/updated date ranges, ordering. Paginates automatically.

get_task

Full detail for one task: markdown description (inline image links kept), custom field values, subtasks, attachment list, optionally comments, image attachments as images (include_images), text attachments inlined (include_text_files), narrowed with attachment_names.

create_task

Create one or many tasks in a single call. Each is reported individually; one failure does not abort the rest.

update_task

Update one or many tasks — status, assignees, due dates, priority, renames, archive. Also reported individually.

comment_task

Post a comment to one or many tasks — the audit trail for status changes and dropped tickets. notify_all defaults to false.

upload_attachment

Attach local files to one or many tasks. Needs a local file path under CLICKUP_UPLOAD_DIR; .env*, *.pem, *.key, id_* and oversize files are refused. This publishes the file to ClickUp.

Every tool reports how many HTTP requests it spent, and any result that hit the page cap says Truncated rather than quietly returning a short list.

Design notes

  • Rate gate (src/clickup.ts) — a sliding 60-second window plus a concurrency cap of 4. A fixed-interval refill would let a burst of 90 fire in the first second and then stall for 59; tracking actual send times spreads the same budget.

  • 429 handling — backoff is driven by ClickUp's own X-RateLimit-Reset header, retried up to 3 times. The client also coasts down when X-RateLimit-Remaining drops to 2 rather than taking a 429 mid-fan-out.

  • Structure cache — hierarchy, custom fields and member lists are memoised for 15 minutes. Task data is deliberately never cached.

  • Compact output (src/format.ts) — raw ClickUp task JSON runs 2–4KB each. Every tool projects down to the fields a person actually reads and renders markdown instead of JSON.

Layout

src/index.ts    entrypoint: env loading, client + server wiring, stdio transport
src/clickup.ts  REST client: rate gate, retry/backoff, TTL cache, task pagination
src/tools.ts    the six MCP tool definitions and their fan-out
src/format.ts   task projection and markdown rendering

Available Tools

6 tools
create_taskCreate tasksA

Create one or many tasks in one go — pass the whole array when breaking a discussion into a backlog, rather than calling this repeatedly. Each task is reported individually; one failure does not abort the rest.

Inputs: tasks (required).

get_my_workMy open workA

Every open task assigned to you across the whole workspace, grouped by overdue / today / this week / later. This is the one to call for a standup, a 'what's on my plate' question, or a backlog sweep.

Inputs: include_closed.

get_taskTask detailA

Full detail for one task: description, custom field values, subtasks, and optionally its comments. Use it after search_tasks or get_my_work has narrowed things down to a single task.

Inputs: task_id (required), include_comments.

get_workspace_mapWorkspace mapA

The workspace's spaces, folders, lists (with their status names) and members, plus your own numeric user id. Call this first when you need an id for any other tool. Cached for 15 minutes, so repeat calls are free.

Inputs: include_custom_fields.

search_tasksSearch tasksA

Filtered task query across the entire workspace in one request — the tool to build any report or analytics on. Every filter is optional and they combine. Paginates automatically and says so if it hits the cap.

Inputs: tags, list_ids, order_by, statuses, +8 more.

update_taskUpdate tasksA

Update one or many existing tasks — status changes, re-assignment, due dates, renames. Pass the whole array for a bulk change. Each update is reported individually.

Inputs: updates (required).

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A4.3/5.0

    Scored across 6 tools

    Disambiguation5/5

    Each tool targets a distinct operation: create, update, workspace mapping, personal work list, search, and single-task detail. There is no overlap in purpose or ambiguity about which tool to use for a given action.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun pattern in snake_case (create_task, update_task, get_workspace_map, get_my_work, search_tasks, get_task). The naming is predictable and uniform.

    Tool Count5/5

    Six tools is a well-scoped set for a task management integration. Each tool covers a distinct aspect of task handling without redundancy or unnecessary bloat.

    Completeness4/5

    The set covers create, update, query, search, and single-task retrieval, which handles most task workflows. The main gap is the lack of a delete_task tool, but this is a minor omission given the core lifecycle is otherwise present.

    Related MCP Connectors

    Related MCP Servers