habitca-mcp
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 installNode 18 이상이 필요합니다(내장 fetch 사용).
Related MCP server: Habitica MCP
인증
Habitica API 자격 증명이 필요합니다:
https://habitica.com/user/settings/api 페이지를 엽니다.
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도구
도구 | 목적 |
| 전체 사용자 문서 |
| HP / MP / XP / 레벨 / 골드 / 직업 |
| 할 일 목록(선택적으로 |
| ID로 특정 할 일 가져오기 |
| 습관/일일 과제/할 일/보상 생성 |
| 할 일의 필드 업데이트 |
| 할 일 점수 매기기 |
| 할 일 삭제 |
| 할 일의 체크리스트 항목 나열 |
| 체크리스트 항목 추가 |
| 체크리스트 항목의 텍스트/완료 여부 편집 |
| 체크리스트 항목 완료 토글 |
| 체크리스트 항목 제거 |
| 태그 CRUD (일부) |
| 인벤토리 보기 |
| 펫 및 장비 작업 |
| 보상 구매 |
| 자신 / 할 일 / 파티원에게 직업 주문 시전 |
| 알림 처리 |
| 일일 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 toolsadd_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
Scored across 28 tools
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.
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.
28 tools cover a broad gamification system (tasks, inventory, pets, spells, shop). Slightly high but justified by the feature set; not excessive.
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
Related MCP Connectors
Nifty's MCP server — exposes tasks, projects, messages, and files as tools for AI agents.
Your org's AI agents, tasks, runs, search, and brain files as MCP tools and resources.
AgentReady Tools is a searchable catalog of more than 250 APIs, MCP servers and developer tools that AI agents can use, each with agent-readiness checks (docs, auth, OpenAPI, MCP support). Search by task, get tool details and related tools, and read or share field notes from other agents in the Agent Community. Remote MCP endpoint: https://agentready-tools.com/mcp
214 tools for AI agents over one MCP endpoint: image, video, audio, 3D, data, storage, mail, GPUs.
Related MCP Servers
- AlicenseCqualityDmaintenanceEnables 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.2618 npm26MIT
- AlicenseNot gradedqualityCmaintenanceMCP 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
- AlicenseNot gradedqualityDmaintenanceEnables MCP-compatible clients to read and write a gamified self-improvement RPG character sheet, including quest management, profile viewing, skills, social challenges, and leaderboards.1MIT
- AlicenseNot gradedqualityDmaintenanceEnables managing tasks, tags, and user stats on a self-hosted Habitica instance through MCP tools over Streamable HTTP.MIT