Habitica MCP server for AI agents

Live

API KEY

HABIT TRACKING

Productivity

Habitica gives your agent your Habitica account: read and score habits, dailies, and to-dos, manage tags and checklists, chat with your party, and handle challenges and quests.

  • Per-user credentials: each call uses the actual user's API key, never a shared bot.
  • Encrypted per-tenant vault: AES-256, resolved at request time, never in LLM context.
  • Scoped before every call: pre-call scope check, 90-day SIEM-exportable audit chain.
Habitica
agent · Acme Q3
Run
Check off my Morning run daily.
S
habitica_task_score
142ms
Habit agent
Scored Morning run as done. You gained 11 experience and 3.2 gold.
Sources: Habitica task, 1 task
habitica
1 task
18:29
Message Claude...

Tools your habit tracking agent reaches for on Habitica, scoped per user.

CALL ANY TOOL
51 tools for habit tracking in Habitica: read and score tasks, manage checklists and tags, post to party chat, handle challenges and quests, and update your profile.
habitica_challenge_get
Get challenge
Get one challenge. Returns its name, description, group, prize, member count, leader and task IDs.
Parameters
Name
Type
Required
Description
challenge_id
string
Required
ID (UUID) of the challenge, from habitica_challenges_list. Example: f23c12f2-5830-4f15-9c36-e17fd729a812.
habitica_challenge_join
Join challenge
habitica_challenges_list
List challenges
habitica_checklist_item_add
Add checklist item
habitica_checklist_item_delete
Delete checklist item
habitica_checklist_item_score
Checklist item score
habitica_checklist_item_update
Update checklist item
habitica_cron_run
Run cron
habitica_group_chat_list
List group chat
habitica_group_chat_post
Post group chat
habitica_group_chat_seen
Group chat seen
habitica_group_get
Get group
habitica_groups_list
List groups
habitica_notifications_read
Read notifications
habitica_private_message_send
Send private message
habitica_quest_accept
Quest accept
habitica_quest_reject
Reject quest
habitica_status_get
Get status
habitica_tag_create
Create tag
habitica_tag_update
Update tag
habitica_tags_list
List tags
habitica_task_create
Create task
habitica_task_delete
Delete task
habitica_task_get
Get task
habitica_task_score
Task score
habitica_task_tag_remove
Remove task tag
habitica_user_buy_health_potion
User buy health potion
habitica_user_custom_day_start
Start user custom day
habitica_user_in_app_rewards_list
List user in app rewards
habitica_user_update
Update user

For more tools, view docs.

Build your Agent
Same auth pattern across LangChain, OpenAI, Anthropic, and Google ADK.
Python · LlamaIndex
import { ScalekitClient } from "@scalekit-sdk/node";
import { createReactAgent } from "@langchain/langgraph/prebuilt";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

// Habitica tools scoped to this user
const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["habitica"], toolNames: [
    "habitica_tasks_list",
    "habitica_task_create",
    "habitica_task_score"] },
  pageSize: 100,
});

const agent = createReactAgent({ llm, tools });
await agent.invoke({ messages: [{ role: "user", content: "List my dailies, add a Morning run daily, and score it as done" }] });
import OpenAI from "openai";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const openai = new OpenAI();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["habitica"] }, pageSize: 100,
});

const res = await openai.chat.completions.create({
  model: "gpt-5",
  messages: [{ role: "user", content: "List my dailies, add a Morning run daily, and score it as done" }],
  tools,
});

// Execute the tool call with the user's vaulted Habitica API key
await sk.tools.executeTool(res.choices[0].message.tool_calls[0], "user_123");
import Anthropic from "@anthropic-ai/sdk";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);
const anthropic = new Anthropic();

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["habitica"] }, pageSize: 100,
});

const msg = await anthropic.messages.create({
  model: "claude-sonnet-5",
  max_tokens: 1024,
  messages: [{ role: "user", content: "List my dailies, add a Morning run daily, and score it as done" }],
  tools,
});

// Tool call runs with the user's vaulted Habitica API key
await sk.tools.executeTool(msg.content, "user_123");
import { Agent } from "@google/adk/agents";
import { ScalekitClient } from "@scalekit-sdk/node";

const sk = new ScalekitClient(env.SCALEKIT_ENV_URL, env.SCALEKIT_CLIENT_ID, env.SCALEKIT_CLIENT_SECRET);

const { tools } = await sk.tools.listScopedTools("user_123", {
  filter: { connectionNames: ["habitica"] }, pageSize: 100,
});

const agent = new Agent({
  name: "habit_agent",
  model: "gemini-2.5-pro",
  instruction: "Habitica tools scoped to this user",
  tools,
});

await agent.run("List my dailies, add a Morning run daily, and score it as done");
Try these prompts
Copy any prompt into your agent. Each maps directly to a Habitica tool. Click to copy, paste into your agent, done.
Tasks
Copy the prompt
Copied
List my to-dos.
Copy the prompt
Copied
Create a daily called Morning run.
Copy the prompt
Copied
Score my Morning run daily as done.
Checklists and tags
Copy the prompt
Copied
Add a checklist item buy milk to my groceries to-do.
Copy the prompt
Copied
Create a tag called health.
Copy the prompt
Copied
Clear my completed to-dos.
Party and challenges
Copy the prompt
Copied
Show the latest messages in my party chat.
Copy the prompt
Copied
List the challenges I can join.
Copy the prompt
Copied
Accept the pending party quest.
SEE HOW AUTH WORKS
Each user connects their own Habitica API key once, and Scalekit sends it with every call. Keys stay vaulted, every call is scope checked, and every action is logged.
1
Authorize
Your user connects
Habitica
once. We tie it to their identity and the access they approved, with no shared bot account and no org-wide access
Who:
user ‘A’
when:
Once per user
access:
Limited to user
2
Store
Their
Habitica
credential lives in a vault scoped to them. User A's data is never reachable by an agent acting for user B, even on the same connection
vault:
encrypted
scope:
per-user
tenants:
isolated
3
Resolve
When your agent calls a
Habitica
tool, we fetch the right credential server-side. It never touches your agent, never appears in the LLM context, never shows up in your logs
speed:
~40ms
check:
before every call
seen by:
nobody
4
Audit
Every
Habitica
tool call is logged: who triggered it, which tool ran, what came back. 90 days of history, tied to the user who authorized it
history:
90 days
export:
SIEM-ready
logged:
every call
Test other agents
See the same per-user auth pattern across other productivity and project management connectors.
Engineering Teams
Engineering standup agent
Pulls commits from GitHub and GitLab, tracks issue movement in Jira, and posts a per-engineer standup brief to Slack. Each engineer's activity is read on their own delegated OAuth.
Test other agents
See the same per-user auth pattern across other productivity and project management connectors.
ENGINEERING
Engineering standup agent
Pull commits from GitHub and GitLab, track Jira issue movement, and post a per-engineer standup brief to Slack.
Why Scalekit
Secure your agent's access. Connectors ship in minutes
01.
Shared tokens break per-user analytics
A shared Habitica API key looks fine in a demo. In production every task score and party post looks like one service account, and you cannot tell which user triggered it. Scalekit resolves the credential of the actual user who triggered the agent, never a shared bot.
// shared key
audit → bot_service_account

// scalekit
audit → user_abc ✓
02.
Authentication is not authorization
03.
Multi-tenancy is architectural
04.
Habitica today. Ten connectors tomorrow.
“Our agents act across Salesforce, Gong, Google Drive, and more, on behalf of every customer. Scalekit behind the scenes meant we can keep adding tools without ever rebuilding how credentials or tool calling work.”
Venu Madhav Kattagoni
Head of Engineering / Von
FAQs
Frequently Asked Questions
Does the agent access Habitica as the user or through a shared key?
As the user. Each user connects their own Habitica API key once, and Scalekit sends it with every call. Audit logs attribute every task score and party message to that user, not a shared service account.
Where is the Habitica API key stored?
In Scalekit's managed AES-256 token vault, namespaced per tenant. To rotate it, the user reconnects with a new API key. Revocation is a single dashboard action. Credentials never appear in prompts, logs, or LLM context.
Can I limit what the agent does in Habitica?
Yes. Filter by tool name in listScopedTools to expose only what you want, for example the task and tag read tools without habitica_task_delete or habitica_todos_clear_completed, which remove tasks. Scalekit also enforces scope checks before every API call.
What happens when a user revokes Habitica access?
The connection is invalidated on the next tool call. Subsequent requests for that user fail closed with a clear error. Other users in the tenant remain unaffected. The event is logged for audit.
Can the agent act on my character?
Yes. Beyond tasks, the agent can buy a health potion with habitica_user_buy_health_potion, revive a character with habitica_user_revive, and toggle sleep with habitica_user_sleep_toggle. Hide those if the agent should only manage tasks.
Start in your coding agent
Up and running in one command
Install the Scalekit skill in your editor of choice. Connector, auth, tools, prompt, all wired up
Claude Code REPL
/plugin marketplace add scalekit-inc/claude-code-authstack
/plugin install agentkit@scalekit-auth-stack
Cursor Code REPL
# ~/.cursor/mcp.json
{
""mcpServers"": {
""habitica"": {
""url"": ""https://mcp.scalekit.com/habitica"",
""headers"": { ""Authorization"": ""Bearer $SCALEKIT_TOKEN"" }
}
}
}
Codex Code REPL
# ~/.codex/config.toml
[mcp_servers.habitica]
url = ""https://mcp.scalekit.com/habitica""
auth_env = ""SCALEKIT_TOKEN""
Copilot Code REPL
# .vscode/mcp.json
{
""servers"": {
""habitica"": {
""url"": ""https://mcp.scalekit.com/habitica"",
""type"": ""http""
}
}
}