Skip to main content
Glama

habitca-mcp

Habitica v3 API를 MCP 도구로 노출하는 소규모 Model Context Protocol 서버입니다. 이를 통해 MCP를 지원하는 AI 어시스턴트(Claude Code, Hermes Agent, Cursor 등)가 사용자의 Habitica 할 일, 습관, 일일 과제, 보상, 펫, 인벤토리 및 알림을 읽고 업데이트할 수 있습니다.

이 프로젝트는 iBreaker의 원본을 깔끔하게 재작성한 버전입니다. 동일한 인터페이스를 제공하며, axios/zod/i18n 없이 단일 Node 파일로 구성되었고 영어 출력만 지원합니다.

설치

git clone https://github.com/hxlair/habitca_mcp.git
cd habitca_mcp
npm install

Node 18 이상이 필요합니다(내장 fetch 사용).

Related MCP server: Habitica MCP

인증

Habitica API 자격 증명이 필요합니다:

  1. https://habitica.com/user/settings/api 페이지를 엽니다.

  2. User ID와 API Token을 복사합니다.

서버를 실행할 셸에서 다음을 내보냅니다:

export HABITICA_USER_ID=...
export HABITICA_API_TOKEN=...

선택 사항:

export HABITICA_APP_ID=my-mcp-client      # sent as x-client header for Habitica analytics

실행

npm start
# or
./index.js

서버는 stdio를 통해 MCP와 통신합니다. 연결되면 stderr에 habitca-mcp ready를 기록합니다.

MCP 클라이언트에 연결

Claude Code / Hermes Agent / Cursor

클라이언트의 MCP 설정에 다음을 추가합니다:

{
  "mcpServers": {
    "habitca": {
      "command": "node",
      "args": ["/absolute/path/to/habitca_mcp/index.js"],
      "env": {
        "HABITICA_USER_ID": "...",
        "HABITICA_API_TOKEN": "..."
      }
    }
  }
}

Hermes의 경우:

hermes mcp add habitca \
  --env HABITICA_USER_ID=... \
  --env HABITICA_API_TOKEN=... \
  -- node /absolute/path/to/habitca_mcp/index.js

도구

도구

목적

get_user_profile

전체 사용자 문서

get_stats

HP / MP / XP / 레벨 / 골드 / 직업

get_tasks

할 일 목록(선택적으로 habits / dailys / todos / rewards / completedTodos로 필터링)

get_task

ID로 특정 할 일 가져오기

create_task

습관/일일 과제/할 일/보상 생성

update_task

할 일의 필드 업데이트

score_task

할 일 점수 매기기 up(기본값) 또는 down

delete_task

할 일 삭제

get_task_checklist

할 일의 체크리스트 항목 나열

add_checklist_item

체크리스트 항목 추가

update_checklist_item

체크리스트 항목의 텍스트/완료 여부 편집

score_checklist_item

체크리스트 항목 완료 토글

delete_checklist_item

체크리스트 항목 제거

get_tags / create_tag

태그 CRUD (일부)

get_inventory / get_pets / get_mounts

인벤토리 보기

feed_pet / hatch_pet / equip_item

펫 및 장비 작업

buy_reward / get_shop / buy_item

보상 구매

cast_spell

자신 / 할 일 / 파티원에게 직업 주문 시전

get_notifications / read_notification

알림 처리

run_cron

일일 cron 수동 트리거

원본과의 차이점

  • 단일 의존성 — @modelcontextprotocol/sdk만 사용합니다. axios, zod 및 i18n 계층이 제거되었습니다.

  • 영어 전용 출력 메시지.

  • x-client 헤더 전송 — Habitica가 트래픽을 MCP에서 발생한 것으로 식별할 수 있습니다.

  • 더 나은 오류 처리 — Habitica API의 message 필드를 숨기지 않고 그대로 노출합니다.

  • 구조화된 성공 메시지 — score_task는 골드/경험치/레벨 변화량을 반환하고, create_task는 새 ID를 반환하는 등 결과가 구조화되어 있습니다.

  • get_task 및 run_cron 추가; 사소한 스키마 정리(우선순위 enum, completedTodos 필터).

라이선스

MIT — 원본과 동일합니다.

Available Tools

28 tools
add_checklist_itemC

Add a checklist item to a task.

Inputs: taskId (required), text (required).

buy_itemC

Buy an item from a shop.

Inputs: itemKey (required), quantity.

buy_rewardC

Buy a custom reward by key.

Inputs: key (required).

cast_spellB

Cast a class spell, optionally on a target task or party member.

Inputs: spellId (required), targetId.

create_tagD

Create a tag.

Inputs: name (required).

create_taskB

Create a habit, daily, todo, or reward.

Inputs: type (required), text (required), notes, difficulty, +4 more.

delete_checklist_itemC

Delete a checklist item.

Inputs: taskId (required), itemId (required).

delete_taskC

Delete a task by id.

Inputs: taskId (required).

equip_itemC

Equip a pet, mount, costume piece, or battle gear.

Inputs: type (required), key (required).

feed_petB

Feed a pet a piece of food.

Inputs: pet (required), food (required).

get_inventoryA

Get full inventory (items, eggs, food, hatching potions, special).

Inputs: no named parameters.

get_mountsA

Get owned mounts map.

Inputs: no named parameters.

get_notificationsC

Get unread notifications.

Inputs: no named parameters.

get_petsA

Get owned pets map.

Inputs: no named parameters.

get_shopB

Get items in a shop (default: market).

Inputs: shopType.

get_statsA

Get user stats only (HP, MP, XP, level, gold, class).

Inputs: no named parameters.

get_tagsA

Get all tags.

Inputs: no named parameters.

get_taskC

Get a single task by id.

Inputs: taskId (required).

get_task_checklistC

Get checklist items for a task.

Inputs: taskId (required).

get_tasksC

List tasks. Optionally filter by type.

Inputs: type.

get_user_profileA

Get the authenticated user's full profile (stats, prefs, items, party, etc).

Inputs: no named parameters.

hatch_petC

Hatch a pet from an egg + hatching potion.

Inputs: egg (required), hatchingPotion (required).

read_notificationC

Mark a notification as read.

Inputs: notificationId (required).

run_cronA

Run the daily cron (advance day, apply damage from missed dailies). Normally auto-runs on first action of the day.

Inputs: no named parameters.

score_checklist_itemC

Toggle a checklist item complete/incomplete.

Inputs: taskId (required), itemId (required).

score_taskA

Score a task. direction='up' completes a todo/daily or marks a + habit; 'down' is for negative habits.

Inputs: taskId (required), direction.

update_checklist_itemB

Update text/completed on a checklist item.

Inputs: taskId (required), itemId (required), text, completed.

update_taskC

Update fields on a task (text, notes, difficulty, priority, etc).

Inputs: taskId (required), text, notes, difficulty, +2 more.

Tool Schema Changelog

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

Loading tool schema changelog…

    TDQS

    B3/5.0

    Scored across 28 tools

    Disambiguation4/5

    Most tools have clearly distinct purposes (e.g., get_task vs get_tasks, buy_item vs buy_reward). A few overlaps exist (get_inventory and get_user_profile both return items) but descriptions reduce ambiguity.

    Naming Consistency5/5

    All tool names follow a consistent verb_noun snake_case pattern (e.g., create_task, buy_item, equip_item). No mixing of conventions or chaotic naming.

    Tool Count4/5

    28 tools cover a broad gamification system (tasks, inventory, pets, spells, shop). Slightly high but justified by the feature set; not excessive.

    Completeness3/5

    Core task and checklist operations are complete, but missing CRUD for tags (no delete/update), rewards management beyond buying, and some inventory actions. Notable gaps exist.

    Maintenance

    ActivityInactive
    ResponsivenessNo recent community issues

    Related MCP Connectors

    Related MCP Servers

    • A
      license
      C
      quality
      D
      maintenance
      Enables AI assistants to interact with the Habitica API to manage tasks, track habits, and engage in gamified productivity features like pet raising and inventory management. It allows users to control their Habitica account through natural language for a personalized and automated productivity experience.
      26
      18 npm
      26
      MIT
    • A
      license
      Not graded
      quality
      C
      maintenance
      MCP server for managing Habitica as a daily execution layer, enabling agents to read and (with explicit confirmation) create, complete, and score tasks via the Habitica API.
      MIT
    • A
      license
      Not graded
      quality
      D
      maintenance
      Enables MCP-compatible clients to read and write a gamified self-improvement RPG character sheet, including quest management, profile viewing, skills, social challenges, and leaderboards.
      1
      MIT