Habitica MCP for AI Agents



Habitica is an open-source task manager that gamifies your to-do lists and daily habits. Level up your productivity by turning tasks into an engaging RPG experience.
Connect Habitica without Auth hassles
We manage OAuth, API Key, token refresh, and scopes, you just build.
Try for FreeTry Habitica now
Enter a prompt below to test the integration in our Tool Router playground. You'll be redirected to sign in and try it live.
Supported Tools
Install Composio
pip install composio claude-agent-sdkCreate Tool Router Session
from composio import Composio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions
composio = Composio(api_key='your-composio-api-key')
session = composio.create(user_id='your-user-id')
url = session.mcp.urlConnect to AI Agent
import asyncio
options = ClaudeAgentOptions(
permission_mode='bypassPermissions',
mcp_servers={
'tool_router': {
'type': 'http',
'url': url,
'headers': {
'x-api-key': 'your-composio-api-key'
}
}
},
system_prompt='You are a helpful assistant with access to Habitica tools.',
max_turns=10
)
async def main():
async with ClaudeSDKClient(options=options) as client:
await client.query('Create a new daily task called "Exercise" that repeats every weekday')
async for message in client.receive_response():
if hasattr(message, 'content'):
for block in message.content:
if hasattr(block, 'text'):
print(block.text)
asyncio.run(main())Why Use Composio?
AI Native Habitica Integration
- Supports both Habitica MCP and direct API based integrations
- Structured, LLM-friendly schemas for reliable tool execution
- Rich coverage for reading, writing, and querying your Habitica data
Managed Auth
- Built-in OAuth handling with automatic token refresh and rotation
- Central place to manage, scope, and revoke Habitica access
- Per user and per environment credentials instead of hard-coded keys
Agent Optimized Design
- Tools are tuned using real error and success rates to improve reliability over time
- Comprehensive execution logs so you always know what ran, when, and on whose behalf
Enterprise Grade Security
- Fine-grained RBAC so you control which agents and users can access Habitica
- Scoped, least privilege access to Habitica resources
- Full audit trail of agent actions to support review and compliance
Use Habitica with any AI Agent Framework
Choose a Framework you want to connect Habitica with
OpenAI Agents SDK
Use Habitica MCP with OpenAI Agents SDK
Claude Agents SDK
Use Habitica MCP with Claude Agents SDK
Claude Code
Use Habitica MCP with Claude Code
Claude Cowork
Use Habitica MCP with Claude Cowork
Codex
Use Habitica MCP with Codex

OpenClaw
Use Habitica MCP with OpenClaw

Hermes
Use Habitica MCP with Hermes
CLI
Use Habitica MCP with CLI
Google ADK
Use Habitica MCP with Google ADK
Langchain
Use Habitica MCP with Langchain
AI SDK
Use Habitica MCP with AI SDK
Mastra AI
Use Habitica MCP with Mastra AI
LlamaIndex
Use Habitica MCP with LlamaIndex
CrewAI
Use Habitica MCP with CrewAI
Pydantic AI
Use Habitica MCP with Pydantic AI
Autogen
Use Habitica MCP with Autogen
Explore Other Toolkits
Google Sheets
Google Sheets is a cloud-based spreadsheet tool for real-time collaboration and data analysis. It lets teams work together from anywhere, updating information instantly.
Notion
Notion is a collaborative workspace for notes, docs, wikis, and tasks. It streamlines team knowledge, project tracking, and workflow customization in one place.
Airtable
Airtable combines the flexibility of spreadsheets with the power of a database for easy project and data management. Teams use Airtable to organize, track, and collaborate with custom views and automations.
Frequently Asked Questions
Do I need my own developer credentials to use Habitica with Composio?
Can I use multiple toolkits together?
Is Composio secure?
What if the API changes?

Used by agents from



Never worry about agent reliability
We handle tool reliability, observability, and security so you never have to second-guess an agent action.





