Skip to main content
Glama

Huly MCP Server

npm license

An MCP server that lets AI assistants such as Claude Code and Codex work in your Huly workspace: read and update issues, comments, files, time and to-dos, and produce PM reports.

It has 41 tools and runs locally over stdio. Your assistant starts it, and there is nothing to host. It talks to Huly through the official @hcengineering SDK, so it works with self-hosted Huly as well as huly.app.

Highlights

  • Sees images and reads PDFs. Screenshots pasted into a card or a comment, and image attachments, come back as real images the model can look at. PDFs come back as text; scanned PDFs come back as page images.

  • Full comment threads. Comments come with their replies. You can post comments and replies with files attached, and edit or delete your own.

  • Daily work. my_day, issues assigned to you across all projects, Planner to-dos, and your inbox.

  • PM reports. A daily standup per person, a project_report (status, workload, overdue, blocked, milestones, hours), and a card's change history.

  • Bulk and structure. Update up to 100 issues at once (with a dry run), set blocked-by / related links, move sub-issues, and create cards from templates.

  • Time tracking. Log time and pull timesheets with totals per person and per issue.

Related MCP server: @bluesun-networks/huly-mcp

Quick start

Requirements: Node.js 22 or newer, and a Huly account.

1. Get a personal token

Use a token so your password never sits in a config file:

HULY_URL=https://your-huly-instance.com \
HULY_WORKSPACE=your-workspace-name \
HULY_EMAIL=you@example.com \
HULY_PASSWORD='your-password' \
npx -p @mina_ibrahem/huly-mcp huly-mcp-token

It prints HULY_TOKEN. Keep it private.

HULY_WORKSPACE is the workspace name in your Huly URL: https://huly.example.com/workbench/<workspace>/….

2. Add it to your assistant

Claude Code

claude mcp add huly \
  --env HULY_URL=https://your-huly-instance.com \
  --env HULY_WORKSPACE=your-workspace-name \
  --env HULY_TOKEN=PASTE_YOUR_TOKEN_HERE \
  -- npx -y @mina_ibrahem/huly-mcp@latest

Codex: in ~/.codex/config.toml:

[mcp_servers.huly]
command = "npx"
args = ["-y", "@mina_ibrahem/huly-mcp@latest"]

[mcp_servers.huly.env]
HULY_URL = "https://your-huly-instance.com"
HULY_WORKSPACE = "your-workspace-name"
HULY_TOKEN = "PASTE_YOUR_TOKEN_HERE"

Any other MCP client (JSON config):

{
  "mcpServers": {
    "huly": {
      "command": "npx",
      "args": ["-y", "@mina_ibrahem/huly-mcp@latest"],
      "env": {
        "HULY_URL": "https://your-huly-instance.com",
        "HULY_WORKSPACE": "your-workspace-name",
        "HULY_TOKEN": "PASTE_YOUR_TOKEN_HERE"
      }
    }
  }
}

Restart the assistant and check that the server shows up (claude mcp list / codex mcp list).

More than one workspace? Add one entry per workspace, each with its own name (huly-team-a, huly-team-b), HULY_WORKSPACE and token.

3. Ask in plain language

my day show OZ-979 with its screenshots what's new in my inbox? standup for DESCO yesterday move DESCO-63, DESCO-64 and DESCO-65 to Todo log 1.5 hours on DESCO-65 reply to Ali's comment on DESCO-238 and attach /home/me/fix.png

Tools

Issues

Tool

What it does

search_issues

Find issues in a project by title, assignee, status, priority, component, milestone, label, parent, modified-after, due-before

get_issue

Full issue: description, labels, parent and sub-issues, blocked-by / blocks / related, plus its images and PDFs

create_issue

New issue or sub-issue with description, assignee, priority, component, milestone, due date, status

update_issue

Change any field

delete_issue

Delete permanently

bulk_update_issues

Same change (status, assignee, priority, component, milestone, due date) on up to 100 issues; dryRun to preview

create_issue_from_template

List a project's templates, or create an issue from one (labels and sub-issues included)

set_parent / list_sub_issues

Move an issue under another one (loop-safe) or make it top-level; list sub-issues at any depth

add_relation / remove_relation

blocked-by, blocks, or related links, across projects too

add_label / remove_label

Labels; a missing label is created

get_activity

Who changed what and when, together with comments

Comments and files

Tool

What it does

list_comments

Comments with their thread replies, plus images and PDFs in comments and replies

add_comment

Markdown comment, optionally with files attached inside it

reply_to_comment

Reply inside a comment's thread, optionally with files

update_comment / delete_comment

Edit or delete your own comments and replies (other people's are refused)

add_attachment / list_attachments

Upload a local file to a card, or list the card's files

download_attachment

Save files from the card or its comments to a local folder; never overwrites

Your day, to-dos and inbox

Tool

What it does

my_day

Open issues (overdue first), open to-dos, unread inbox, hours logged today and this week

get_my_issues

Issues assigned to you or a teammate across all projects: open, closed, or all

list_todos / create_todo / complete_todo

Planner to-dos, standalone or linked to an issue

list_notifications / mark_notifications_read

Inbox with comment previews; mark read or archive

Time and reports

Tool

What it does

log_time

Add a time report to an issue (defaults to you and today)

list_time_reports

Timesheet by project, issue, person and date range, with totals

standup

Per person for one day: cards moved, created, commented on, hours; plus open blocked issues

project_report

Open and closed counts, issues per status and assignee, overdue, blocked, milestone progress, hours in a period

Search and workspace

Tool

What it does

fulltext_search

Search issues, comments, to-dos and documents in one go; hits grouped by issue

list_projects, list_persons, list_statuses, list_components, list_milestones, list_labels

Workspace lookups

create_milestone

New milestone in a project

Image and PDF options

get_issue and list_comments take these options:

Option

Default

Meaning

includeImages

true

Return PNG, JPEG, GIF and WebP images

maxImages

10

Images per call; each image up to 3.5 MB

includePdfs

true

Return PDF text, or page images for scans

maxPdfs

5

PDFs per call; each PDF up to 20 MB

maxPdfChars

20000

Characters of text returned per PDF

Configuration

Variable

Required

Description

HULY_URL

yes

Base URL of your Huly instance

HULY_WORKSPACE

yes

Workspace name

HULY_TOKEN

recommended

Personal token from huly-mcp-token

HULY_EMAIL / HULY_PASSWORD

no

Login used only when no token is set

Good to know

  • It acts as you. Every change is made with your Huly account and shows up under your name in the activity log.

  • Huly automation still runs. For example, completing a to-do that is linked to an issue can move the issue to In Progress, just as it does in the Huly UI.

  • Search lags slightly. Full-text search uses Huly's index, so very new cards and comments can take a moment to show up.

  • Dates are UTC days. standup, project_report, my_day and list_time_reports count days in UTC.

  • Files are capped. Uploads take absolute local paths, up to 50 MB each and 10 per call.

Development

git clone https://github.com/MinaFikry/huly-mcp.git
cd huly-mcp
npm install
cp .env.example .env   # fill in HULY_URL, HULY_WORKSPACE, HULY_TOKEN
npm start              # starts the stdio server (Ctrl+C to stop)

To point your assistant at your local copy, use node /absolute/path/to/huly-mcp/server.js instead of npx.

Project structure

server.js       MCP setup, Huly connection, shared helpers, core issue / label / attachment tools
tools/          one module per area, each exporting register…Tools(server, ctx)
  comments.js   list / add / reply / edit / delete comments
  time.js       log_time, list_time_reports
  todos.js      Planner to-dos
  relations.js  blocked-by / blocks / related
  notifications.js  inbox
  search.js     full-text search (REST client)
  me.js         get_my_issues, my_day
  issues-extra.js   bulk update, sub-issues, templates
  files.js      download_attachment
  activity.js   get_activity, standup
  reports.js    project_report
media.js        markup parsing and image / PDF loading for tool results
images.js       find and download images as MCP image blocks
pdfs.js         PDF text extraction (unpdf), scanned-PDF fallback
png.js          small PNG encoder for PDF page images
uploads.js      upload local files and attach them to issues or comments
get-token.js    mint a personal workspace token (huly-mcp-token)

Every handler is wrapped in guard(), so errors come back as clean MCP error results instead of crashing the server.

Notes for maintainers

Verified against a self-hosted Huly (server 0.7.242, client 0.7.423):

  • Upload markup explicitly. Don't use the SDK markdown() helper with createDoc / updateDoc / addCollection. In 0.7.423 it stores {} instead of a markup ref. Call await client.uploadMarkup(...) and pass the returned ref.

  • Top-level issues hang off tracker.ids.NoParent with collection subIssues. That is the format the UI uses.

  • Comment authors. createdBy is a social id: resolve it via contact.class.SocialIdentity → Person.

  • Who "you" are. Inbox notifications are keyed by account uuid. Time reports and to-dos are keyed by the Person _id.

  • Relation updates use $push / $pull, so concurrent edits are not overwritten.

  • No $or queries. The server rejects them; use separate queries instead.

  • Two different priority enums. To-do priority (@hcengineering/time ToDoPriority) is numbered differently from issue priority.

Contributing

Issues and pull requests are welcome: https://github.com/MinaFikry/huly-mcp

License

MIT

Tool Schema Changelog

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

Loading tool schema changelog…

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      C
      maintenance
      An MCP server that enables AI assistants to interact with JIRA, allowing for querying issue details, creating and updating work items, and managing attachments through a standardized interface.
      12
      4
      MIT
    • A
      license
      B
      quality
      C
      maintenance
      MCP server for Huly project management that enables AI assistants to manage issues, track time, update statuses, and more directly from your IDE.
      11
      MIT