# Habitica

Habitica is an open-source task management application that gamifies productivity by turning tasks into role-playing game elements.

This is a first-class FlyMyAI MCP. Agents **discover it automatically** via tool search and call the actions below on demand - you never wire it up by hand. See the [Composio catalog](https://docs.flymy.ai/mcp/composio.md) for how discovery works.

## Connect

**Habitica** authenticates with an API key. Generate the credential in your Habitica account, then paste it into FlyMyAI the first time an agent uses a Habitica action.

[Get your Habitica credential →](https://habitica.com/user/settings/api)

### Fields to fill in FlyMyAI

| Field | Details |
| --- | --- |
| `Habitica API Token` | The API token associated with the user, used for API authentication. _(required)_ |
| `Habitica User ID` | The unique identifier for the user, used for API authentication. _(required)_ |

## Actions

Every action this integration exposes. Agents pick the right one from the task; you do not call them by name.

| Action | What it does | Required inputs |
| --- | --- | --- |
| `HABITICA_ADD_CHALLENGE_TASK` | Tool to add a new task to a specified challenge. Use when you need to programmatically create a challenge task after the challenge is set up and you have its ID. | `challengeId`, `text`, `type` |
| `HABITICA_CANCEL_SUBSCRIPTION` | Attempts to cancel the authenticated user's subscription. Since Habitica's public API does not provide a cancellation endpoint, this action checks the current subscription state and returns: - success=True with a no-op message if there is no active subscripti… | - |
| `HABITICA_CREATE_CHALLENGE` | Tool to create a new challenge. Use when you need to start a challenge in a specific group with title, summary, and optional tasks. | `name`, `shortName`, `summary`, `group` |
| `HABITICA_CREATE_GROUP` | Tool to create a Habitica party or guild. Use when you want to initialize a new group with name, type, and optional privacy and description. | `name`, `type` |
| `HABITICA_CREATE_TAG` | Tool to create a new tag. Use after determining the desired tag name. | `name` |
| `HABITICA_CREATE_TASK` | Tool to create a new user task in Habitica. Use after gathering task details like text, type, and optional properties. | `text`, `type` |
| `HABITICA_CREATE_WEBHOOK` | Tool to create a new webhook for taskActivity events. Use when you need real-time notifications of task creation, updates, deletion, or scoring. | `url`, `type`, `options` |
| `HABITICA_DELETE_CHALLENGE` | Tool to delete a challenge. Use when you need to permanently remove a challenge after confirmation. | `challengeId` |
| `HABITICA_DELETE_CHALLENGE_TASK` | Tool to delete a specific task from a challenge. Use when removing an unwanted or outdated task from a challenge. Use after confirming the task belongs to the target challenge. | `task_id` |
| `HABITICA_DELETE_GROUP` | Tool to delete a Habitica group (guild) or leave a party. - For parties: Habitica does not support deleting via DELETE /groups/(id). The correct flow is to leave the party via POST /groups/party/leave. - For guilds: If you are the leader and there are no memb… | `groupId` |
| `HABITICA_DELETE_TAG` | Tool to delete a tag for the authenticated user. Use when you need to remove an obsolete tag after confirming it’s no longer applied to any tasks. | `tagId` |
| `HABITICA_DELETE_TASK` | Tool to delete a Habitica task. Use when you have the task ID and want to remove it permanently. | `taskId` |
| `HABITICA_GET_ACHIEVEMENTS` | Tool to retrieve all available Habitica achievements. Use after authenticating to list achievements and their progress. | - |
| `HABITICA_GET_CHALLENGE` | Tool to retrieve details of a specific challenge. Use when you have the challenge ID and need its full data. | `challengeId` |
| `HABITICA_GET_CHALLENGES` | Tool to retrieve challenges available in a specific group (guild, party, or tavern). | `groupId` |
| `HABITICA_GET_CHALLENGE_TASK` | Tool to retrieve a specific task from any challenge. Use after you have the task ID and need its full details. | `task_id` |
| `HABITICA_GET_CHALLENGE_TASKS` | Tool to get all tasks for a specified challenge. Use when you have a challenge ID and need to list its defined tasks, including challenge metadata per task. | `challengeId` |
| `HABITICA_GET_CONTENT` | Tool to retrieve global game content definitions. Use when loading Habitica items, equipment, pets, quests, and other definitions. Call once per session to cache content. | - |
| `HABITICA_GET_CONTENT_BY_TYPE` | Tool to retrieve game content for a specified category. Use when you need to fetch specific Habitica content by its type (e.g., items, quests). Use after identifying the content type. | `type` |
| `HABITICA_GET_EQUIPMENT` | Tool to retrieve the authenticated user’s equipped gear and costume. Use when you need to inspect current battle gear and costume slots. | - |
| `HABITICA_GET_GROUP` | Tool to retrieve details of a specific group. Use when you have a groupId and need its metadata. | `groupId` |
| `HABITICA_GET_GROUPS` | Tool to retrieve Habitica groups (guilds, parties, taverns). Use when browsing or searching available groups by type or name before joining. | - |
| `HABITICA_GET_GROUP_MEMBERS` | Tool to retrieve members of a specific group. Use when you have a groupId and need its member list. | `groupId` |
| `HABITICA_GET_NOTIFICATIONS` | Tool to retrieve notifications for the authenticated user. Use when you need to fetch the user's current notification list after authenticating. | - |
| `HABITICA_GET_PARTY` | Tool to retrieve the authenticated user's party details. Use when you need to fetch the current party information after authenticating. | - |
| `HABITICA_GET_PARTY_MEMBERS` | Tool to retrieve members of the authenticated user's party. Use after authenticating to list current party members. | - |
| `HABITICA_GET_TAGS` | Tool to retrieve authenticated user's tags. Use when you need to list the authenticated user's tags after confirming credentials. | - |
| `HABITICA_GET_TASKS` | Tool to retrieve all tasks for the authenticated user. Use when you need the user's current tasks list after authenticating. | - |
| `HABITICA_GET_USER_ACHIEVEMENTS` | Tool to retrieve the authenticated user's achievements. Use after authenticating to fetch the current user's achievements. | - |
| `HABITICA_GET_USER_CHALLENGES` | Tool to retrieve challenges the authenticated user participates in. Use when you need a paginated list of user challenges. | - |
| `HABITICA_GET_USER_INVENTORY` | Tool to retrieve the authenticated user's full inventory. Use after authentication to list all owned items. | - |
| `HABITICA_GET_USER_PROFILE` | Tool to retrieve the authenticated user's profile information. Use after authenticating to fetch user details. | - |
| `HABITICA_GET_USER_QUEST_PROGRESS` | Tool to retrieve the authenticated user's quest progress. Use after authenticating to fetch the current user's quest progress. | - |
| `HABITICA_GET_USER_STATS` | Tool to retrieve the authenticated user's Habitica statistics. Use after authentication to fetch user's stats block. | - |
| `HABITICA_GET_USER_SUBSCRIPTION` | Tool to retrieve the authenticated user's subscription details. Use after authenticating to verify current subscription status. | - |
| `HABITICA_GET_WEBHOOKS` | Tool to retrieve webhooks for the authenticated user. Use when you need to list the user's webhooks after authenticating. | - |
| `HABITICA_INVITE_TO_GROUP` | Tool to invite users to a specific group. Use when you need to send invitations by user UUID, email, or username. | `groupId` |
| `HABITICA_INVITE_TO_PARTY` | Tool to invite users to the authenticated user's party. Use when you have a list of identifiers (UUIDs, emails, or usernames) ready and want to add them to your current party. | - |
| `HABITICA_JOIN_CHALLENGE` | Tool to join a challenge. Use after confirming the challenge ID to participate in a specific challenge. | `challengeId` |
| `HABITICA_LEAVE_CHALLENGE` | Tool to leave a Habitica challenge. Use when you need to remove yourself from a specific challenge and decide whether to keep or remove its tasks. | `challengeId`, `keep` |
| `HABITICA_LOCAL_LOGIN` | Tool to authenticate a user via local credentials. Use when needing an API token for subsequent Habitica requests. | `username`, `password` |
| `HABITICA_LOCAL_REGISTER` | Tool to register a new Habitica user via email and password. Use when creating a fresh account before authentication. | `username`, `email`, `password`, `confirmPassword` |
| `HABITICA_MARK_NOTIFICATIONS_SEEN` | Tool to mark specific notifications as read. Use when you want to clear unread notification badges after reviewing your notifications. | `notificationIds` |
| `HABITICA_REMOVE_FROM_PARTY` | Tool to remove a member from your party. Use when you need to eject a user from your party as the party leader. | `memberId` |
| `HABITICA_SCORE_TASK` | Tool to score (check/uncheck) a Habitica task. Use when you need to mark a task as completed or undone. | `taskId`, `direction` |
| `HABITICA_SOCIAL_AUTH` | Tool to authenticate a user via a social provider. Use after obtaining an OAuth token or code from Facebook, Google, GitHub, or Apple. | `service` |
| `HABITICA_SUBSCRIBE_WEBHOOK` | Tool to enable (subscribe) an existing webhook by ID for the authenticated user. This aligns with Habitica's documented API by updating the webhook resource to ensure it is enabled. Usage: obtain the webhook ID (e.g., via Get Webhooks or after creating a webh… | `webhookId` |

## Links

- [Habitica website](https://habitica.com/)
- [Get API key / credential](https://habitica.com/user/settings/api)
- [Browse the full Composio catalog](https://docs.flymy.ai/mcp/composio.md)
