home / mcp / habitica mcp server
Provides a synchronized interface to Habitica data and actions via MCP for AI-enabled task management and progress tracking.
Configuration
View docs{
"mcpServers": {
"ibreaker-habitica-mcp-server": {
"command": "npx",
"args": [
"-y",
"habitica-mcp-server"
],
"env": {
"MCP_LANG": "en",
"HABITICA_USER_ID": "your-id",
"HABITICA_API_TOKEN": "your-token"
}
}
}
}You use the Habitica MCP Server to let AI assistants interact with Habitica directly, enabling task creation, habit tracking, pet care, and other Habitica actions through natural conversations. This server exposes a standard MCP interface so your AI clients can issue commands and receive responses in a structured way, making Habitica management seamless and automated.
You connect an MCP client to the Habitica MCP Server to perform actions like creating tasks, updating checklists, recording habit completions, managing pets and mounts, and getting your user data. Use natural-language prompts or your clientโs predefined intents to request operations such as creating tasks, listing todayโs tasks, adding checklist items, or marking items as complete. The server processes these requests through the available tools and returns structured results that your AI assistant can present to you.
Typical usage flows include asking for a list of tasks, creating a new habit, updating a taskโs details, or recording a completed activity. Your AI client should send requests aligned with the MCP tools described in the available capabilities, and interpret the responses to display task lists, statuses, and progress summaries.
Prerequisites: Node.js 18 or newer, npm or yarn, and a Habitica account.
1. Install dependencies and prepare the server environment.
2. Start the server when ready and keep your credentials secure.
Set your Habitica API credentials by obtaining your User ID and API Token from Habitica Settings under the API tab. You will supply these credentials to the MCP server as environment variables.
You can run the server in production mode or development mode with automatic reloads during development. The server supports an MCP client configuration to establish the connection and define environment variables for authentication and language.
Never commit your Habitica API credentials to version control. Use environment variables or a secure secret management approach to protect USER_ID and API_TOKEN.
If the server fails to start, verify Node.js is version 18 or newer, confirm environment variables are set, and ensure the Habitica credentials are valid. If API calls fail, check your network, credentials, and potential rate limits. If a task or pet cannot be found, confirm IDs and user permissions.
Fetch detailed user profile information including stats and settings.
Retrieve user statistics to understand activity and progress.
List all items and equipment owned by the user.
Get the list of tasks, with optional filtering by type (habits, dailys, todos, rewards).
Create a new task with specified type and attributes.
Update details of an existing task.
Remove a task from Habitica.
Complete a task or record a habit progression.
Retrieve checklist items for a specific task.
Add a new checklist item to a task.
Update an existing checklist item.
Delete a checklist item from a task.
Toggle completion state of a checklist item.
List all tags for organization.
Create a new tag for categorization.
List all hatchable pets and current pets.
Feed a pet to affect its growth or mood.
Hatch a new pet from an egg.
List all mounts and current ownership.
Equip a pet, mount, or equipment.
List items available in the in-game shop.
Purchase a shop item with in-game currency.
Purchase a reward using in-game currency.
Fetch system notifications for the user.
Mark a notification as read.
Cast a class-specific spell from the skill system.