Click on "Install Server".
Wait a few minutes for the server to deploy. Once ready, it will show a "Started" state.
In the chat, type
@followed by the MCP server name and your instructions, e.g., "@Habitica MCP ServerI just finished my morning workout, please mark it as done"
That's it! The server will respond to your query, and you can continue using it as needed.
Here is a step-by-step guide with screenshots.
Habitica MCP Server
中文文档请阅读
A Model Context Protocol (MCP) server that lets AI assistants seamlessly interact with the Habitica API – create tasks, track habits, raise pets and enjoy gamified productivity.
✨ Features
🎮 Core Gameplay Features
📋 Smart task management – create / view / update / delete all task types
✅ Checklist management – add, update, delete and score checklist items within tasks
🎯 Habit tracking – record habit completions and build healthy routines
🐾 Pet raising – hatch and feed pets, watch them grow
🏇 Mount collection – manage and equip all kinds of mounts
🛍️ Shop & rewards – browse and buy in-game items
⚡ Skill system – cast class skills to enhance gameplay
📊 Data-oriented Features
👤 User profile – fetch detailed user information and stats
🏷️ Tag management – create and manage tags for better organisation
📬 Notification centre – read and manage system notifications
📦 Inventory – list every item and piece of equipment you own
🤖 AI Integration Highlights
🧠 Natural-language control – operate Habitica via conversation
📝 Task suggestions – AI can create tasks on demand
📈 Progress reporting – automatically track and summarise progress
🎨 Personalised experience – tailored recommendations based on your habits
🚀 Quick Start
Prerequisites
Node.js 18+
npm or yarn
A valid Habitica account
Installation
Clone the repo
Install dependencies
Set API credentials (see next section)
Start the server
⚙️ Configuration
Get Habitica API credentials
Log into Habitica
Click your avatar → Settings
Open the API tab
Copy User ID and API Token
Environment variables
Method A: export variables
Method B: .env file
⚠️ Security tip: never commit your API keys to version control.
🎯 Usage
Start the server
MCP client integration
The server follows the MCP spec and works with any AI client that supports MCP. Example Claude Desktop config:
Example dialogue
🛠️ Available Tools
User Related
get_user_profile: Get user profile informationget_stats: Get user statisticsget_inventory: Get inventory list
Task Management
get_tasks: Get task list (can specify type: habits, dailys, todos, rewards)create_task: Create new taskupdate_task: Update taskdelete_task: Delete taskscore_task: Complete task or record habit
Checklist Management
get_task_checklist: Get checklist items for a taskadd_checklist_item: Add checklist item to taskupdate_checklist_item: Update checklist itemdelete_checklist_item: Delete checklist itemscore_checklist_item: Score checklist item (mark complete/incomplete)
Tag Management
get_tags: Get tag listcreate_tag: Create new tag
Pets and Mounts
get_pets: Get pet listfeed_pet: Feed pethatch_pet: Hatch petget_mounts: Get mount listequip_item: Equip pet, mount or equipment
Shop and Purchases
get_shop: Get shop item listbuy_item: Buy shop itembuy_reward: Buy reward
Notification Management
get_notifications: Get notification listread_notification: Mark notification as read
Skill System
cast_spell: Cast spell
📖 API Usage Examples
Create Task
Complete Task
Get Specific Task Type
Pet Management
Buy Item
Checklist Management
Task Types
habit: Habit (can be recorded positively or negatively)daily: Daily task (resets every day)todo: To-do item (one-time task)reward: Reward (can be purchased with gold)
Difficulty Levels
0.1: Easy1: Medium1.5: Hard2: Extreme
Priority Levels
0.1: Low1: Medium1.5: High2: Extreme
🔧 Troubleshooting
Common Issues
Issue: Server startup failed
Issue: API call failed
Issue: Task or pet not found
Debug Mode
Get Help
📚 Check Habitica API Documentation
🐛 Submit Issues
🤝 Contributing
We welcome all forms of contributions!
How to Contribute
Fork this project
Create feature branch (
git checkout -b feature/AmazingFeature)Commit changes (
git commit -m 'Add some AmazingFeature')Push to branch (
git push origin feature/AmazingFeature)Create Pull Request
Development Guidelines
Follow existing code style
Add appropriate tests
Update relevant documentation
Ensure all tests pass
📄 License
This project is open source under the MIT License - see the LICENSE file for details.
🌟 Acknowledgments
Thanks to Habitica for providing an excellent API
Thanks to Anthropic for the MCP protocol
Thanks to all contributors and users for their support