Habit Tracker MCP Server
Click on "Deploy 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., "@Habit Tracker MCP ServerAnalyze my habits for the past week."
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.
Habit Tracker API
π° REST API
π° JWT-based authentication
π° MCP server with stdio transport
π Litestar, FastMCP, SQLAlchemy-advanced, Alembic, Pydantic, Pytest
Prereq
Python 3.11
Docker/docker compose (v2)
Related MCP server: Logtime Summarizer
Envs
prod
dev
test
ΠΠ»ΠΎΠ½ΠΈΡΠΎΠ²Π°Π½ΠΈΠ΅ ΡΠ΅ΠΏΠΎΠ·ΠΈΡΠΎΡΠΈΡ
git clone git@github.com:darialissi/litestar-habittracker.git && cd litestar-habittrackerΠ‘Π±ΠΎΡΠΊΠ° ΠΈ Π·Π°ΠΏΡΡΠΊ ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΡ ΠΈ Π΅Π³ΠΎ Π·Π°Π²ΠΈΡΠΈΠΌΠΎΡΡΠ΅ΠΉ [prod]
docker compose --profile prod upΠΠ½ΡΠ΅ΡΠ°ΠΊΡΠΈΠ²Π½Π°Ρ Π΄ΠΎΠΊΡΠΌΠ΅Π½ΡΠ°ΡΠΈΡ Π΄ΠΎΡΡΡΠΏΠ½Π° Π½Π° http://127.0.0.1:8000/docs
![]()
ΠΠΎΠΊΠ°Π»ΡΠ½Π°Ρ ΠΊΠΎΠ½ΡΠΈΠ³ΡΡΠ°ΡΠΈΡ ΠΈ Π·Π°ΠΏΡΡΠΊ ΠΏΡΠΈΠ»ΠΎΠΆΠ΅Π½ΠΈΡ [dev]
ΠΠ° ΠΎΡΠ½ΠΎΠ²Π΅ .env.example ΡΠΎΠ·Π΄Π°ΡΡ .env Π² ΠΊΠΎΡΠ½Π΅ ΠΏΡΠΎΠ΅ΠΊΡΠ°
ΠΠ°ΠΏΡΡΡΠΈΡΡ ΡΠ΅ΡΠ΅Π· ΠΎΠ±ΠΎΠ»ΠΎΡΠΊΡ dev.sh (ΠΏΡΠΈ Π½Π΅ΠΎΠ±Ρ ΠΎΠ΄ΠΈΠΌΠΎΡΡΠΈ ΡΠ΄Π΅Π»Π°ΡΡ ΡΠ°ΠΉΠ» ΠΈΡΠΏΠΎΠ»Π½ΡΠ΅ΠΌΡΠΌ:
chmod +x dev.sh)
Π’Π΅ΡΡΠΈΡΠΎΠ²Π°Π½ΠΈΠ΅ [test]
Unit
pytest -m unitIntegration
pytest -m integration# just validation without DB
pytest -m validationE2E (+ load)
# ΠΠΎΠ΄Π½ΠΈΠΌΠ°Π΅ΠΌ ΡΠ΅ΡΡΠΎΠ²ΡΡ ΠΠ
docker compose --profile test up -dpytest -m e2epytest -s -m loadMCP configuration
Π’ΠΎΠΊΠ΅Π½ ΠΌΠΎΠΆΠ½ΠΎ ΠΏΠΎΠ»ΡΡΠΈΡΡ ΡΠ΅ΡΠ΅Π· GET /api/account/token
"mcpServers": {
"mcp-habittracker": {
"command": "/Users/lissi/Projects/litestar-habittracker/.venv/bin/python3",
"args": [
"/Users/lissi/Projects/litestar-habittracker/src/app_mcp.py"
],
"env": {
"MCP_AUTH_TOKEN": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9..."
}
}
}ΠΡΠΈΠΌΠ΅ΡΡ ΠΏΡΠΎΠΌΠΏΡΠΎΠ²
ΠΡΠΏΠΎΠ»Π½ΠΈ Π°Π½Π°Π»ΠΈΠ· ΠΌΠΎΠΈΡ
ΠΏΡΠΈΠ²ΡΡΠ΅ΠΊ Π·Π° ΠΏΠΎΡΠ»Π΅Π΄Π½ΠΈΠ΅ 10 Π΄Π½Π΅ΠΉ.Π‘ΠΈΡΡΠ΅ΠΌΠ½ΡΠ΅ ΠΏΡΠΎΠΌΠΏΡΡ (ΡΠ΄ΠΎΠ±Π½Π΅Π΅ ΠΈΡΠΏΠΎΠ»ΡΠ·ΠΎΠ²Π°ΡΡ ΡΠ΅ΡΠ΅Π· ΠΈΠ½ΡΠ΅ΡΡΠ΅ΠΉΡ ΠΊΠ»ΠΈΠ΅Π½ΡΠ°)
# Ρ ΡΠΊΠ°Π·Π°Π½ΠΈΠ΅ΠΌ ΠΊΠΎΠ»-Π²Π° Π΄Π½Π΅ΠΉ Π΄Π»Ρ Π°Π½Π°Π»ΠΈΠ·Π°
habits_analysis 5 Π΄Π½Π΅ΠΉweekly_reviewThis server cannot be deployed
Maintenance
Related MCP Connectors
Track, curate, and analyze data about your health, habits, and goals.
- DoneThatOAuthai.donethat
Privacy-first work tracking with summaries, reports, coaching, and AI-ready long-term memory.
Track workouts, nutrition, body metrics, habits, and SMART goals with insights and trends. Connectβ¦
- freddyOAuthcoach.freddy
Connect your wearables, rings and training apps, then ask your AI about your own health data.
Related MCP Servers
- FlicenseBqualityNot gradedmaintenanceGenerates AI-powered daily and weekly productivity summaries by analyzing your Slack messages, Google Calendar events, and Gmail activity with automated scheduling and smart filtering.6-
- FlicenseNot gradedqualityDmaintenanceEnables AI assistants to analyze log time data from various sources to summarize project health, employee performance, and client status.-
- FlicenseAqualityDmaintenanceProvides intelligent weekly schedule analysis from Google Calendar, including day-by-day breakdowns, workout suggestions, office day detection, and scheduling problem identification through natural language queries.4-
- FlicenseNot gradedqualityCmaintenanceEnables querying your Garmin Connect data including recent activities, detailed metrics, and daily stats through natural language.-