commitment-tracker-mcp
Integrates with Google's Gemini API to classify emails, extract commitments, draft replies, and generate daily digests.
Provides storage and querying capabilities for commitments using a SQLite database, including tools to add, list, update, and check overdue commitments.
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., "@commitment-tracker-mcplist my open commitments"
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.
commitment-tracker-mcp
An MCP server that tracks commitments — promises people make in conversation ("I'll send the report by Friday") — so they can be listed, closed out, and flagged when they go overdue.
The repo currently covers Phase 1 (core data model + standalone, reusable MCP server over SQLite) and Phase 2 (the agent orchestrator that does LLM classification, extraction, and drafting, and talks to the server over MCP).
Layout
Phase 1 — storage (MCP server side):
File | Responsibility |
| The |
| Typed models ( |
| SQLite data-access layer. Knows nothing about MCP. |
| FastMCP server exposing the storage/query tools. |
| Manual end-to-end test that drives the server over stdio. |
Phase 2 — agent (MCP client side):
File | Responsibility |
| All Gemini API calls: flash-lite classification gate, flash extraction/drafting/digest (structured outputs). Includes a |
| Async client for the commitment-tracker server. The orchestrator's only path to storage. |
| Reactive loop: classify → extract → store → draft → confirm. |
| Proactive daily job: overdue sweep + due-soon summary + nudge drafts. |
| Demo inbox for the orchestrator. |
Related MCP server: Task Manager MCP Server
Setup
pip install -r requirements.txtRequires Python 3.10+.
Run the server
python server.py # stdio transport, for local/agent useIt creates commitments.db next to the code on first run. Point it elsewhere
with the COMMITMENT_DB_PATH environment variable.
Prove it works
python test_client.pyThis spins up the server over stdio against a throwaway database, discovers the
tools, and runs a full lifecycle (add → list → fulfill → overdue), printing
PASS/FAIL for each assertion. It touches your real commitments.db never.
Run the agent (Phase 2)
The live path uses Google Gemini's free tier (no billing). Get a key at
https://aistudio.google.com/apikey, then put it in a .env file:
cp .env.example .env # then edit .env and paste your key.env is gitignored — the key never gets committed. The entrypoints call
load_dotenv(), so it's picked up automatically:
python orchestrator.py # process sample_emails.json
python digest.py # daily digest + nudge drafts
# Offline — full pipeline & MCP wiring with a deterministic stub LLM (no key):
python orchestrator.py --dry-run
python digest.py --dry-run # digest without the LLM summary(You can also just export GEMINI_API_KEY=... in your shell instead of .env.)
If a model isn't enabled on your key, override the IDs:
GEMINI_CLASSIFIER_MODEL / GEMINI_EXTRACTOR_MODEL.
The reactive loop per email: classify (Haiku — cheap gate) → extract
commitments (Opus, structured outputs, relative deadlines resolved against an
injected UTC date) → store via the MCP add_commitment tool → draft a
grounded reply → confirm with the user. Nothing is ever auto-sent — every
draft requires explicit approval (--yes exists for demos/CI only).
The digest job is the proactive side, meant for cron/Task Scheduler: it runs
check_overdue, lists what's due this week, and drafts nudges for review.
Model choices: gemini-2.5-flash-lite for classification (runs on every email,
so cheap/fast, thinking disabled), gemini-2.5-flash for extraction, drafting,
and the digest (runs only on emails that pass the gate). All LLM outputs use
structured outputs (Gemini response_schema + pydantic → response.parsed), so
no free-form JSON parsing anywhere. The provider is isolated to llm.py — the
server, MCP client, orchestrator, and digest are provider-agnostic.
Tool surface
The server exposes storage and query tools only:
Tool | Purpose |
| Record a new, already-structured commitment. |
| List outstanding commitments. |
| Close a commitment (stamps |
| Flag & return open commitments past their deadline. |
| Fetch one commitment by id. |
Design boundaries
Extraction lives in the agent, not the server. Turning raw messages into structured commitments is an LLM job that lives in
llm.pyon the orchestrator side, which then callsadd_commitmentwith the resolved fields. Keeping the LLM call out of the server keeps this a pure, client-agnostic interop layer that a CLI, a Slack bot, or the agent can all reuse.The orchestrator never imports
db.py. All storage goes throughmcp_client.pyover stdio — proving the MCP boundary is real, not decorative.The user confirms every outward action. Drafts (replies, nudges) are always presented for approval; the agent proposes, the human disposes.
LLM calls are isolated in
llm.py.orchestrator.pytakes any object with the same three methods, so the Phase 4 eval harness can callextract_commitments()directly on a labeled set — andStubLLMruns the whole pipeline offline.db.pyhas no MCP dependency. It is plain functions oversqlite3, so it is directly unit-testable and reusable — the seam that makes the Phase 4 eval harness cheap.
Data-model decisions (Step 2 & Step 7)
Deadlines stored twice.
deadlineholds the resolved absolute ISO-8601 value (source of truth for queries and overdue logic).deadline_rawkeeps the original phrase ("by Friday") for debugging/eval only.UTC internally, always. Every timestamp (
created_at,fulfilled_at) and every resolveddeadlineis UTC ISO-8601. Convert to local time only at display. Overdue comparison relies on lexicographic ISO ordering.NULL deadlines are never overdue. A commitment with no resolvable deadline is excluded from
check_overdueand frombefore_datefiltering.Overdue is strict (
deadline < as_of). A date-only deadline becomes overdue the day after it, not on the day itself.Idempotent inserts. Re-processing the same message won't create duplicates:
add_commitmentdedups on(source_msg_id, text, who_promised)and returns the existing record. There is intentionally no hard UNIQUE constraint onsource_msg_idalone, because one message can carry several distinct commitments.
Status lifecycle
open ──mark_fulfilled──▶ fulfilled
│
└──check_overdue (deadline passed)──▶ overdueThis server cannot be installed
Maintenance
Resources
Unclaimed servers have limited discoverability.
Looking for Admin?
If you are the server author, to access and configure the admin panel.
Latest Blog Posts
- Your AI Chatbot Just Exposed Your CEO's Salary to an InternBy Om-Shree-0709 on .Agent IdentityMCP SecurityOAuth Delegation
- Why MCP Servers Need Execution Sandboxing (And Why Your Current Stack Isn't Enough)By Om-Shree-0709 on .Agentic AiPrompt InjectionWebAssembly
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/ritheshr21/commitment-tracker-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server