habitica-simple-mcp
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
habitica-simple-mcp
Use Habitica from Claude on your phone. No local install, deploys in about 2 minutes.

A single-file MCP server for Habitica, written as a dependency-free Cloudflare Worker. Everything lives in worker.js: paste it into the Cloudflare dashboard and you have a remote MCP server for Claude (or any MCP client that supports remote HTTP servers).
Tools
Tool | Description |
| Player stats (HP, MP, XP, gold, level, class) |
| One-call overview: dailies due, overdue and soon-due to-dos, HP and damage status. |
| List habits, dailies, to-dos and rewards |
| Fetch one task |
| Score history of a habit or daily |
| Create a habit, daily, to-do or reward |
| Create up to 50 tasks in one call |
| Find tasks by title, notes or checklist |
| Edit a task; replace or reorder its checklist |
| Complete / score a task (up or down) |
| Reorder a task |
| Delete a task |
| Add, edit or remove checklist items |
| Tick a checklist item |
| Manage tags |
| Pause or resume damage (inn) |
| Buy a health potion |
| Cast a class skill |
Task responses are slimmed down to the useful fields, since the raw Habitica task object is very large.
Related MCP server: Capacities MCP Worker
Setup
Click the Deploy to Cloudflare button above (it will ask for the three secrets in step 2), or in the Cloudflare dashboard go to Workers & Pages → Create → Create Worker, then Edit code and paste in the contents of
worker.js. Deploy.Under Settings → Variables and Secrets add three secrets:
Name
Value
HABITICA_USER_IDYour User ID from Habitica → Settings → Site Data → API
HABITICA_API_TOKENYour API token from the same page
MCP_SECRETA long random string (at least 24 characters), e.g.
openssl rand -hex 24Optionally set
HABITICA_API_BASEto point at a different Habitica API (defaults tohttps://habitica.com/api/v3).Temporary Habitica errors are retried inside the server (up to 3 times with backoff).
429is always retried and honorsRetry-After;5xxand network errors are retried for everything exceptPOST, to avoid double-scoring or duplicate creates.HABITICA_RETRY_BASE_MS(default500) sets the base delay.Habitica API reference: habitica.com/apidoc (source of the doc blocks:
tasks.js).Your MCP endpoint is:
https://<worker>.<subdomain>.workers.dev/mcp/<MCP_SECRET>Add it to your client as a remote MCP server. With Claude Code:
claude mcp add --transport http habitica https://<worker>.<subdomain>.workers.dev/mcp/<MCP_SECRET>In Claude.ai, add it as a custom connector using the same URL.
Prefer the CLI? npx wrangler deploy works too, using the included wrangler.toml, with npx wrangler secret put <NAME> for each secret.
Security
The secret in the URL is the only authentication, so treat the full URL like a password. Anyone with it can act on your Habitica account.
Requests with a wrong or missing secret get a
404, and secrets shorter than 24 characters are rejected outright.The server is stateless and only accepts
POST(MCP streamable HTTP, JSON mode).
Local testing
npx wrangler dev
curl -s localhost:8787/mcp/$MCP_SECRET \
-H 'content-type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/list"}'Put the three variables in a .dev.vars file (git-ignored) for local runs.
Development
npm install
npm test # node:test suite, Habitica is mocked
npm run format # prettier
npm run check # syntax checkCI runs formatting, the syntax check and the tests on Node 20 and 22.
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Cloudflare Workers MCP server: claude-skill-validator
Zero-dependency Cloudflare Worker gateway turning websites and REST APIs into MCP tools.
Cloudflare Workers MCP server: ai-model-router
Cloudflare Workers MCP server: ai-agent-scratchpad
Related MCP Servers
- FlicenseNot gradedqualityCmaintenanceA remote MCP server template for deployment on Cloudflare Workers without authentication. Provides a foundation for building custom MCP tools that can be accessed from Claude Desktop or Cloudflare AI Playground.-
- AlicenseNot gradedqualityDmaintenanceA Cloudflare Worker that wraps the Capacities API as a remote MCP server, enabling Claude on any device to interact with your Capacities knowledge base.MIT
- FlicenseNot gradedqualityNot gradedmaintenanceDeploys a remote MCP server on Cloudflare Workers without authentication, enabling tool-based AI interactions from clients like Claude Desktop and AI Playground.-
- FlicenseNot gradedqualityDmaintenanceA stateless remote MCP server on Cloudflare Workers without authentication, supporting custom tools and compatibility with legacy clients. Enables deployment and connection from remote MCP clients like Cloudflare AI Playground and Claude Desktop.-