amazing-marvin-complete-mcp
An MCP (Model Context Protocol) server for Amazing Marvin with complete coverage of the public API: 36 tools over all ~31 documented endpoints, a global rate limiter that respects Marvin's documented limits, least-privilege token routing, and MCP tool annotations. As of 1.1.0 every writable field in Marvin's official data model (Tasks and Categories/Projects) is either supported by a tool or explicitly documented as unsupported — see docs/field-reconciliation.md. Every non-obvious behavior claim in the tool descriptions was verified against the live API — the findings are documented below in Marvin API quirks & findings, which may be useful even if you never run this server.
Maintenance status: Bug reports are welcome and appreciated — they help keep this working for everyone. Please note this is a side project maintained when time allows: bug reports get looked at, but response times vary and feature requests are unlikely to be picked up. For installation help, paste this README into your AI assistant — it can walk you through setup and troubleshooting far faster than I can. Provided as-is, without guarantees — it's MIT, fork freely.
Tools (36)
| Group | Tools |
|---|---|
| Core | test_connection, create_task, mark_done, unmark_done, update_task, set_priority, delete_task |
| Reading | get_today_items, get_due_items, get_children, get_categories |
| Structure | create_category_or_project, update_category_or_project, convert_category_or_project (experimental) |
| Habits | list_habits, get_habit, record_habit |
| Time blocks | get_today_time_blocks, create_time_block (experimental) |
| Time tracking | get_tracked_item, start_tracking, stop_tracking, get_time_tracks |
| Kudos/rewards | get_kudos, claim_reward_points, unclaim_reward_points, spend_reward_points, reset_reward_points |
| Misc | get_labels, get_goals, get_reminders, set_reminder, delete_reminder, create_event (experimental), get_account_info, get_rate_limit_status |
Deliberately not included: Smart List / task-picking logic (Marvin's own
Spotlight does the picking; the server gives your assistant hands, not
opinions), and the /reminder/deleteAll endpoint — the one documented
endpoint without a tool, deliberately: it wipes every reminder in a single
call and delete_reminder already covers targeted cleanup.
Every tool carries MCP tool annotations
(readOnlyHint, destructiveHint, idempotentHint, openWorldHint) so
capable clients can treat delete_task and reset_reward_points with the
respect they deserve.
Getting your Marvin tokens
Both tokens live in Amazing Marvin under Settings → API (app.amazingmarvin.com/pre?api):
- API Token (
MARVIN_API_TOKEN, required for use) — limited access; enough for reading and creating tasks. The server does start without it (so MCP clients and directories can list the tools), but every tool call returns a clear error until the token is set. - Full Access Token (
MARVIN_FULL_ACCESS_TOKEN, optional but recommended) — required by all/doc*-based tools:update_task,set_priority,unmark_done,delete_task, category creation, time blocks,list_habits, reminders,reset_reward_points.
Treat them like passwords; see SECURITY.md.
Install & run
Requires Python 3.12+.
From PyPI (recommended): with uv installed
there is nothing to set up — point your MCP client at
uvx amazing-marvin-complete-mcp as shown below.
From source:
git clone <this repo> && cd amazing-marvin-complete-mcp
python -m venv .venv && .venv/bin/pip install .
# then use /path/to/.venv/bin/marvin-mcp as the command below
Local (stdio) — Claude Desktop, Claude Code, any MCP client
The default transport is stdio, so the client starts the server itself:
{
"mcpServers": {
"amazing-marvin": {
"command": "uvx",
"args": ["amazing-marvin-complete-mcp"],
"env": {
"MARVIN_API_TOKEN": "…",
"MARVIN_FULL_ACCESS_TOKEN": "…",
"MARVIN_TIMEZONE": "Europe/Stockholm"
}
}
}
}
(For Claude Code: claude mcp add amazing-marvin -e MARVIN_API_TOKEN=… -- uvx amazing-marvin-complete-mcp.)
Remote (Streamable HTTP)
MCP_TRANSPORT=http PORT=8787 MCP_AUTH_TOKEN_FILE=/path/to/token \
MARVIN_API_TOKEN_FILE=/path/to/api-token .venv/bin/marvin-mcp
The MCP endpoint is /mcp. HTTP mode fails closed: without
MCP_AUTH_TOKEN (or MCP_AUTH_TOKEN_FILE) the server refuses to start,
with instructions in the error message; set MCP_ALLOW_UNAUTHENTICATED=true
only to deliberately run an open instance on localhost. The built-in bearer
check protects every path but is an internal barrier, not a complete auth
story:
put a reverse proxy with TLS in front, and for Claude custom connectors an
OAuth 2.1-capable MCP auth proxy. A Dockerfile for HTTP mode is included
(runs as a non-root user; mount a volume on /data to persist the daily
rate-limit counter across restarts).
Configuration
All settings via environment variables — see .env.example
for the full annotated list. Highlights: every secret supports a *_FILE
variant (recommended); MARVIN_TIMEZONE should match the timezone your
Marvin account lives in (defaults to the system timezone, which is UTC in
most containers).
Rate limiting
Marvin's documented limits — 1 write/second, 1 read/3 seconds, 1440
calls/day — are enforced by a single process-global queue shared by all
tools and sessions, with margin (1.1 s / 3.1 s). The daily counter persists
across restarts (STATE_DIR) and rolls over at midnight in the configured
timezone. get_rate_limit_status shows today's usage.
Marvin API quirks & findings
Everything below was verified against the live API (2026-08-19 through 2026-08-29). This is the half of the repo you can use without running it.
Habits
- Non-raw
GET /habitsdoes not read your habit documents. It reads a server-side tracking registry that is created lazily on the first recording — a habit that has never been recorded is missing from the response entirely, and the entries carry no titles (onlyhabitId+ history). Use?raw=1(Full Access Token) to list actual habit documents.GET /habit?id=…returns the tracking record — history but no title. POST /updateHabitrejects integers serialized as floats:"value": 1.0→ 400 Bad request,"value": 1→ 200. Send ints as ints.
Tasks & projects
POST /markDoneworks for tasks only — projects get400 "Can only mark Tasks done with this API".- By default
/addTaskparses some of Marvin's quick-add shortcut syntax server-side:~15becomes a 15-minutetimeEstimate,+YYYY-MM-DDsetsday(scheduling — not the deadline) and*p1..*p3set priority. All three are stripped from the title. Note the priority mapping is inverted relative to the stored field:*p1(highest) →isStarred: 3,*p2→2,*p3(lowest) →isStarred: 1. The other magic words (*urgent,*fire,*heavy,*weight,*love,*lowfocus,*physical) and$-words (e.g.$MONTHon a non-recurring task) are not parsed — they are stored literally in the title with no fields set; they only work in the app's quick-add. But the#shortcut is outright dangerous: any#wordin the title (a ticket reference like#123included) is stored literally asparentId(greedy up to the first hyphen, e.g.#MCP-TEST→parentId: "#MCP"and a corrupted title) without resolving any ID — even overriding an explicitly suppliedparentIdin the same request. The task then lives outside every category and outside the Inbox — effectively invisible. (First reported by lucasoeth/marvin-mcp; independently reproduced and expanded here.) This server is not affected:create_tasksends the undocumentedX-Auto-Complete: falseheader (added in MarvinAPI#50), which disables all shortcut parsing — titles are stored verbatim, and thetime_estimate_minutesparameter replaces the~15shortcut (timeEstimateis milliseconds: 15 min =900000). /addProjecthas the same#wordcorruption bug but ignores theX-Auto-Completeheader (live-tested: the title is stripped andparentIdcorrupted even with the header set). This server therefore blocks#in project titles locally (in the client layer, before any API call) with an explanatory error. Category titles are safe — they go through/doc/create, which parses nothing./addEventis unaffected (live-tested 2026-08-25): event titles with#wordare stored verbatim, with and without the header — the quick-add parsing bug exists only in/addTaskand/addProject.- Generated instances of recurring tasks have deterministic IDs
(
YYYY-MM-DD_<recurringTaskId>), which is why marking them done/undone through the API cannot create duplicates. The instances are generated by the Marvin client, so today's recurring tasks can be missing from/todayItemsuntil the app has been running. /doc/updatecan sporadically return a transient 500; the write is atomic (no partial state) — just retry. Project renames, moves, label changes etc. all work through it./doc/updatereturns 500 instead of 404 for documents that do not exist (deleted or never created; live-tested 2026-08-29) — a permanent 500 therefore means "wrong/dead ID", not a server error or a corrupted document.startDate/endDateare ignored by/addTaskand/addProject(live-tested 2026-08-29) — they can only be set afterwards via/doc/update(the update tools)./addProjectalso ignorescolor/icon(set them viaupdate_category_or_project).- Projects are prioritized with the string field
priority("high"/"mid"/"low"), notisStarredlike tasks (live-tested 2026-08-29) — which is whyset_priorityis task-only. orbit/noAutoOrbitare missing from the wiki's data types but present in live data (bool, verified 2026-08-29) — exposed as explicitly undocumented passthrough parameters on the update tools.- Project↔category conversion happens in place:
_id,createdAtand the children remain (verified 2026-08-29, both via an app field test and via the API). The app's "Turn into Category" permanently clearsday/dueDate/priority/isFroggedand leavesfirstScheduledbehind as a leftover;convert_category_or_projectdoes the same via the API but returns the removed values and cleans up the leftover. There is no official conversion endpoint — the tool setstypedirectly, which is undocumented server behavior and marked experimental. /doc/createdoes not echo back a server-generated_id— supply your own if you need to reference the document afterwards.- Deletion via
/doc/deleteis permanent; Marvin's trash is client-side.
Reward points & kudos
- Kudos (XP/level, read via
/kudos) and reward points (claim/unclaim/spend/reset) are two separate systems./kudoslacksnextMultiplier(MarvinAPI issue #5) — it's in/me. /markDonedoes not award a task's reward points (cf. issue #6 for kudos) —claimRewardPointsis a separate call.- A
MANUALclaim (itemId: "MANUAL") cannot be undone: the server stores no entry for it, so/unclaimRewardPointsreturns404 "No such entry"(with or without apointsfield), and claiming negative points is rejected with 400. The Marvin web app never usesMANUAL— it is an API-only facility. The only compensation is spending the same amount, which inflates the spent statistics. /spendRewardPointsreturns a 500 if the balance would go negative.
Reminders
- A task reminder in Marvin is two writes that only the app keeps in
sync: reminder fields on the task document (
taskTime,reminderTime,reminderOffset,snooze,autoSnooze) and a server-side entry via/reminder/set. Writing only one side (all the API lets you do comfortably) produces entries the app UI won't show on the task, or server-side orphans. Standalone reminders (typeM) are the safe use of the API. (Risk first documented by Recon2026/marvin-mcp; confirmed by the official wiki's own warning.)
Time & planning
/todayTimeBlocksomits the block↔category link (issue #65); this server recovers the mapping from thestrategySettings.plannerSmartListsprofile document.- Stopping time tracking via the API does not update the task's own
times/durationfields;/tracksis the source of truth. - Calendar events created via
/addEventsync onwards only while the Marvin app is running somewhere (client-side calendar sync).
UI behavior of API-set fields (verified in the app, 2026-08-29)
- Toggling a strategy requires an app restart before its fields render — without one, freshly enabled strategies show nothing and look broken.
backburneris only effective on unscheduled items: scheduling (day) trumps the flag in the UI. Setday: "unassigned"together withbackburner: true.startDatehides backburner items until their start date (the Start Dates strategy's actual mechanic) — it does not hide scheduled tasks.- Icon names are library-prefixed (
lucide-Rocket,huge-happy) or emoji. Projects never render an own icon — the app offers the picker but only the color is used. - A project's
timeEstimaterenders as its own estimate; the UI does not aggregate it with the children's estimates, despite the wiki's claim. - Snoozed tasks (
itemSnoozeTime) are hidden from the category view too — the wiki's "everywhere except the master list" doesn't hold there. timeBlockSectionis stored but shows no visible section link in Today.reviewDateshows in the Review view; the day-view banner additionally requires the "Review Alert" workflow snippet.- Auto-orbit (if enabled) pulls newly scheduled tasks into Orbit unless
noAutoOrbitis set. - Project-only fields written onto a category are silently accepted by the
server but make the category unrepairable from the app's UI — which is
why
update_category_or_projecttype-checks before writing them.
How this differs from existing alternatives
Several good Amazing Marvin MCP servers exist; this one was built fresh (no shared code) after studying them, with a different goal — complete coverage of the public API rather than a curated subset:
- bgheneti/Amazing-Marvin-MCP — the established Python server; broad but not complete coverage, no global rate limiting.
- Recon2026/marvin-mcp — smaller scope (19 tools), unusually careful research; chose to make reminders read-only over the two-write risk. This server ships reminder writes with explicit warnings instead.
- lucasoeth/marvin-mcp — a different philosophy: a handful of consolidated workflow tools (brief/ capture/…) rather than an API mirror, plus direct CouchDB reads for search and completed tasks (which the public API can't do at all). If you want opinionated workflows or search, use theirs; if you want raw, complete API access with the sharp edges documented, use this one.
- LucaDeLeo/amazing-marvin-mcp — a Limited-API subset.
Credits & sources
No code was copied from any of these — the build is fresh — but they materially shaped it:
- amazingmarvin/MarvinAPI (+ wiki) — the official API documentation, OpenAPI spec, data types, and issue tracker this server is built against.
- bgheneti/Amazing-Marvin-MCP — architecture inspiration, endpoint reference during the initial gap analysis, and the MIT-licensing precedent.
- Recon2026/marvin-mcp — the reminder two-write integrity risk and the groundwork on recurring-task instances, both verified and documented here.
- lucasoeth/marvin-mcp — the
#Categoryshortcut bug (reproduced here) and the insight that Marvin's sync database is a real CouchDB usable for reads. - LucaDeLeo/amazing-marvin-mcp
— the pointer that
/addTaskparses shortcut syntax server-side (partly confirmed, partly refuted — see the#Categoryfinding), and the idea of MCP tool annotations.
Built with Claude Code (Claude Fable 5).
License
MIT.
Metadata
Release files for amazing-marvin-complete-mcp 1.2.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| amazing_marvin_complete_mcp-1.2.1.tar.gz | 38.1 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| amazing_marvin_complete_mcp-1.2.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 69.9 kB
Release files / amazing_marvin_complete_mcp-1.2.1.tar.gz
| Download URL | amazing_marvin_complete_mcp-1.2.1.tar.gz |
|---|---|
| Size | 38.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
2ba4a912db3f3a303c8f95704ac8fe15a6510111796e2b9081a808614b598880
|
|
BLAKE2b-256 checksum How to use checksums |
9b753ae11a1ee0a3616e284a058de70f7d9c0cc034ea39ddbf1d5dc53f0fb29d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|
Release files / amazing_marvin_complete_mcp-1.2.1-py3-none-any.whl
| Download URL | amazing_marvin_complete_mcp-1.2.1-py3-none-any.whl |
|---|---|
| Size | 31.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
866a61197e463423f57839ece0971956efd69f6a269f42830fbb607db344a656
|
|
BLAKE2b-256 checksum How to use checksums |
f746b56a520639678a06be26f1864858436c0caf4a67acb489b24b38380fc97e
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/7.0.0 CPython/3.12.3
|