Skip to main content
Glama

habitca-mcp

Ein kleiner Model Context Protocol-Server, der die Habitica v3 API als MCP-Tools bereitstellt, damit MCP-fähige KI-Assistenten (Claude Code, Hermes Agent, Cursor usw.) deine Habitica-Aufgaben, Gewohnheiten, Tagesaufgaben, Belohnungen, Haustiere, Inventar und Benachrichtigungen lesen und aktualisieren können.

Dies ist eine saubere Neufassung des Originals von iBreaker — gleiche Oberfläche, kein axios/zod/i18n, Single-File Node, nur englische Ausgabe.

Installation

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

Node 18 oder neuer ist erforderlich (verwendet das integrierte fetch).

Related MCP server: Habitica MCP

Authentifizierung

Du benötigst deine Habitica API-Zugangsdaten:

  1. Öffne https://habitica.com/user/settings/api

  2. Kopiere deine User ID und dein API Token

Exportiere sie in der Shell, die den Server startet:

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

Optional:

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

Ausführen

npm start
# or
./index.js

Der Server spricht MCP über stdio. Er protokolliert habitca-mcp ready in stderr, sobald die Verbindung hergestellt ist.

In einen MCP-Client einbinden

Claude Code / Hermes Agent / Cursor

Füge dies zur MCP-Konfiguration des Clients hinzu:

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

Speziell für Hermes:

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

Tools

Tool

Zweck

get_user_profile

Vollständiges Benutzerdokument

get_stats

HP / MP / XP / Level / Gold / Klasse

get_tasks

Aufgaben auflisten (optional filtern nach habits / dailys / todos / rewards / completedTodos)

get_task

Eine Aufgabe anhand der ID abrufen

create_task

Gewohnheit/Tagesaufgabe/Todo/Belohnung erstellen

update_task

Felder einer Aufgabe aktualisieren

score_task

Eine Aufgabe up (Standard) oder down bewerten

delete_task

Eine Aufgabe löschen

get_task_checklist

Checklisten-Elemente einer Aufgabe auflisten

add_checklist_item

Ein Checklisten-Element hinzufügen

update_checklist_item

Text/Status eines Checklisten-Elements bearbeiten

score_checklist_item

Checklisten-Element als erledigt markieren

delete_checklist_item

Ein Checklisten-Element entfernen

get_tags / create_tag

Tag-CRUD (Teilmenge)

get_inventory / get_pets / get_mounts

Inventar-Ansichten

feed_pet / hatch_pet / equip_item

Haustier- & Ausrüstungsaktionen

buy_reward / get_shop / buy_item

Belohnungskäufe

cast_spell

Einen Klassenzauber auf sich selbst / eine Aufgabe / ein Gruppenmitglied wirken

get_notifications / read_notification

Benachrichtigungsverwaltung

run_cron

Den täglichen Cron manuell auslösen

Unterschiede zum Original

  • Einzelne Abhängigkeit — nur @modelcontextprotocol/sdk. axios, zod und die i18n-Schicht wurden entfernt.

  • Nur englische Ausgabemeldungen.

  • x-client Header wird gesendet, damit Habitica den Datenverkehr dem MCP zuordnen kann.

  • Bessere Fehlerbehandlung — zeigt das message-Feld der Habitica API an, anstatt es zu unterdrücken.

  • Strukturierte Erfolgsmeldungen — score_task gibt die Gold/Exp/Level-Deltas zurück, create_task gibt die neue ID zurück, etc.

  • Fügt get_task und run_cron hinzu; kleinere Schema-Bereinigungen (Prioritäts-Enum, completedTodos-Filter).

Lizenz

MIT — identisch mit dem Original.

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