Skip to main content
Glama
amazing-marvin-complete-mcp

amazing-marvin-complete-mcp

amazing-marvin-complete-mcp

一个用于 Amazing Marvin 的 MCP(Model Context Protocol)服务器,完整覆盖公共 API:34 个工具覆盖全部 ~31 个已记录端点,一个尊重 Marvin 文档限制的全局速率限制器,最小权限令牌路由,以及 MCP 工具注解。工具描述中每一个不明显的非平凡行为声明都已针对实时 API 验证——相关发现记录在下面的 Marvin API 怪癖与发现 中,即使你从不运行此服务器,这些内容也可能有用。

按原样提供。 此项目未积极维护,也不提供支持。Issue 被有意禁用。欢迎 fork——它是 MIT 许可的。

工具(34)

分组

工具

核心

test_connection, create_task, mark_done, unmark_done, update_task, set_priority, delete_task

读取

get_today_items, get_due_items, get_children, get_categories

结构

create_category_or_project

习惯

list_habits, get_habit, record_habit

时间块

get_today_time_blocks, create_time_block(实验性)

时间追踪

get_tracked_item, start_tracking, stop_tracking, get_time_tracks

声望/奖励

get_kudos, claim_reward_points, unclaim_reward_points, spend_reward_points, reset_reward_points

其他

get_labels, get_goals, get_reminders, set_reminder, delete_reminder, create_event(实验性), get_account_info, get_rate_limit_status

有意不包含:智能列表 / 任务挑选逻辑。Marvin 自己的 Spotlight 负责挑选;服务器为你的助手提供双手,而不是观点。

每个工具都带有 MCP 工具注解(readOnlyHint、destructiveHint、idempotentHint、openWorldHint),以便有能力的客户端能够以应有的谨慎对待 delete_task 和 reset_reward_points。

Related MCP server: Super-Productivity-MCP

获取你的 Marvin 令牌

两个令牌都位于 Amazing Marvin 的 设置 → API(app.amazingmarvin.com/pre?api)下:

  • API 令牌(MARVIN_API_TOKEN,必需)——受限访问;足以读取和创建任务。

  • 完全访问令牌(MARVIN_FULL_ACCESS_TOKEN,可选但推荐)——所有基于 /doc* 的工具都需要:update_task、set_priority、unmark_done、delete_task、类别创建、时间块、list_habits、提醒、reset_reward_points。

像对待密码一样对待它们;参见 SECURITY.md。

安装与运行

需要 Python 3.12+。

git clone <this repo> && cd amazing-marvin-complete-mcp
python -m venv .venv && .venv/bin/pip install .

本地(stdio)——Claude Desktop、Claude Code、任何 MCP 客户端

默认传输是 stdio,因此客户端自行启动服务器:

{
  "mcpServers": {
    "amazing-marvin": {
      "command": "/path/to/.venv/bin/marvin-mcp",
      "env": {
        "MARVIN_API_TOKEN": "…",
        "MARVIN_FULL_ACCESS_TOKEN": "…",
        "MARVIN_TIMEZONE": "Europe/Stockholm"
      }
    }
  }
}

(对于 Claude Code:claude mcp add amazing-marvin -e MARVIN_API_TOKEN=… -- /path/to/.venv/bin/marvin-mcp。)

远程(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

MCP 端点是 /mcp。内置的 bearer 检查(MCP_AUTH_TOKEN)保护每个路径,但这只是内部屏障,并非完整的身份验证方案:请在前面放置带 TLS 的反向代理,对于 Claude 自定义连接器,请使用支持 OAuth 2.1 的 MCP 身份验证代理。包含用于 HTTP 模式的 Dockerfile(以非 root 用户运行;将卷挂载到 /data 以在重启后保留每日速率限制计数器)。

配置

所有设置均通过环境变量进行——参见 .env.example 获取完整的带注释列表。重点:每个机密都支持 *_FILE 变体(推荐);MARVIN_TIMEZONE 应与你的 Marvin 账户所在的时区匹配(默认为系统时区,在大多数容器中为 UTC)。

速率限制

Marvin 的文档限制——1 次写入/秒、1 次读取/3 秒、1440 次调用/天——由所有工具和会话共享的单个进程级队列强制执行,并留有裕量(1.1 秒 / 3.1 秒)。每日计数器在重启后保留(STATE_DIR),并在配置时区的午夜重置。get_rate_limit_status 显示今天的用量。

Marvin API 怪癖与发现

以下所有内容均于 2026-08-19 针对实时 API 验证。这是本仓库中你无需运行即可使用的一半内容。

习惯

  • 非原始 GET /habits 不会读取你的习惯文档。它读取的是服务器端跟踪注册表,该注册表是在首次记录时惰性创建的——从未被记录的习惯会完全从响应中缺失,且条目不包含标题(只有 habitId + 历史记录)。使用 ?raw=1(完全访问令牌)列出实际的习惯文档。GET /habit?id=… 返回跟踪记录——有历史记录但没有标题。

  • POST /updateHabit 拒绝序列化为浮点数的整数:"value": 1.0 → 400 错误请求,"value": 1 → 200。请以整数形式发送整数。

任务与项目

  • POST /markDone 仅适用于任务——项目会收到 400 "Can only mark Tasks done with this API"。

  • /addTask 在服务器端解析 Marvin 的快速添加快捷语法:~15 变为 15 分钟的 timeEstimate,+YYYY-MM-DD 设置 day(计划——不是截止日期)。两者都会从标题中剥离。但切勿通过 API 使用 #Category:服务器会将字符串按字面存储为 parentId(贪婪匹配到第一个连字符,例如 #MCP-TEST → parentId: "#MCP" 和损坏的标题),而不会解析任何 ID。该任务随后会存在于每个类别和收件箱之外——实际上不可见。(首次由 lucasoeth/marvin-mcp 报告;此处独立复现。)

  • 重复任务的生成实例具有确定性的 ID(YYYY-MM-DD_<recurringTaskId>),这就是为什么通过 API 将它们标记为完成/未完成不会产生重复项。实例由 Marvin 客户端生成,因此在应用运行之前,今天的重复任务可能会从 /todayItems 中缺失。

  • /doc/update 偶尔会返回瞬时 500;写入是原子的(无部分状态)——只需重试。项目重命名、移动、标签更改等都可以通过它完成。

  • /doc/create 不会回显服务器生成的 _id——如果你之后需要引用该文档,请自行提供。

  • 通过 /doc/delete 删除是永久性的;Marvin 的回收站是客户端行为。

奖励积分与声望

  • 声望(XP/等级,通过 /kudos 读取)和奖励积分(领取/取消领取/花费/重置)是两个独立的系统。/kudos 缺少 nextMultiplier(MarvinAPI issue #5)——它在 /me 中。

  • /markDone 不会奖励任务的奖励积分(关于声望请参见 issue #6)——claimRewardPoints 是单独的调用。

  • MANUAL 领取(itemId: "MANUAL")无法撤销:服务器不会为其存储任何条目,因此 /unclaimRewardPoints 返回 404 "No such entry"(无论是否带有 points 字段),而领取负积分会被 400 拒绝。Marvin Web 应用从不使用 MANUAL——它是仅限 API 的功能。唯一的补偿是花费相同金额,但这会夸大已花费统计。

  • 如果余额将为负,/spendRewardPoints 会返回 500。

提醒

  • Marvin 中的任务提醒是两次写入,只有应用才能保持同步:任务文档上的提醒字段(taskTime、reminderTime、reminderOffset、snooze、autoSnooze)以及通过 /reminder/set 的服务器端条目。只写入一侧(API 让你轻松做到的)会产生应用 UI 不会在任务上显示的条目,或服务器端孤立条目。独立提醒(类型 M)是 API 的安全用法。(风险首先由 Recon2026/marvin-mcp 记录;官方 wiki 自己的警告也证实了这一点。)

时间与计划

  • /todayTimeBlocks 省略了块↔类别链接(issue #65);此服务器从 strategySettings.plannerSmartLists 配置文档中恢复映射。

  • 通过 API 停止时间跟踪不会更新任务自身的 times/duration 字段;/tracks 是事实来源。

  • 通过 /addEvent 创建的日历事件仅在 Marvin 应用在某个地方运行时才会继续同步(客户端日历同步)。

与现有替代方案的区别

存在几个不错的 Amazing Marvin MCP 服务器;本服务器是在研究它们之后全新构建的(无共享代码),目标不同——完整覆盖公共 API,而不是精选子集:

  • bgheneti/Amazing-Marvin-MCP——成熟的 Python 服务器;覆盖广泛但不完整,没有全局速率限制。

  • Recon2026/marvin-mcp——范围较小(19 个工具),研究异常仔细;选择将提醒设为只读以避免两次写入风险。此服务器改为在明确警告的情况下提供提醒写入。

  • lucasoeth/marvin-mcp——不同的理念:少量整合的工作流工具(brief/capture/…)而不是 API 镜像,外加直接 CouchDB 读取以支持搜索和已完成任务(公共 API 完全无法做到)。如果你想要有主见的工作流或搜索,请使用他们的;如果你想要原始、完整且记录了尖锐边缘的 API 访问,请使用本服务器。

  • LucaDeLeo/amazing-marvin-mcp——Limited-API 子集。

致谢与来源

没有从这些项目中复制任何代码——构建是全新的——但它们对项目产生了实质性影响:

  • amazingmarvin/MarvinAPI(+ wiki)——本服务器所依据的官方 API 文档、OpenAPI 规范、数据类型和问题跟踪器。

  • bgheneti/Amazing-Marvin-MCP——架构灵感、初始差距分析期间的端点参考,以及 MIT 许可先例。

  • Recon2026/marvin-mcp——提醒两次写入完整性风险以及重复任务实例的基础工作,均已在此验证和记录。

  • lucasoeth/marvin-mcp——#Category 快捷方式错误(此处已复现)以及 Marvin 的同步数据库是可用于读取的真实 CouchDB 的见解。

  • LucaDeLeo/amazing-marvin-mcp——/addTask 在服务器端解析快捷方式语法的提示(部分确认,部分反驳——参见 #Category 发现),以及 MCP 工具注解的想法。

使用 Claude Code(Claude Fable 5)构建。

许可证

MIT。

Available Tools

50 tools
claim_reward_pointsA

Award reward points manually (MANUAL) or tied to a task. mark_done already awards the task's rewardPoints (live-tested 2026-12-01). Marvin keeps one award per task: a claim for the same task after mark_done does nothing (200, balance unchanged; verified twice). Whether a claim before mark_done makes it skip the field is untested. An item_id that does not exist is accepted without an error (verified 2026-12-01). The app's rules (default points, frog bonus) do not apply through the API. WARNING: a MANUAL award CANNOT be undone through the API (verified live 2026-08-19: unclaim returns 404, negative points are rejected with 400). The only compensation is spend_reward_points for the same amount (which however inflates the spent statistics) — award MANUAL points thoughtfully.

Inputs: points (required), item_id (required), date. Returns: object

convert_category_or_projectA
Idempotent

Convert a project to a category or back, in place and losslessly. EXPERIMENTAL: Convert project→category or category→project IN PLACE via /doc/update (Full Access Token; there is no official conversion endpoint, and this relies on undocumented server behavior that Marvin could change). Same _id, createdAt and children remain — conversion is a pure type change (verified against the live API 2026-08-29: the server accepts and persists the change in both directions, and the app renders correctly after an API-set change). LOSSLESS BY DEFAULT (since 1.5.0): only type is changed — the same semantics as the app's correct conversion path (the right-click/hover menu, verified as a lossless round trip 2026-08-30: all project fields incl. firstScheduled preserved through project→category→project). Project fields remaining on the category are then intentional round-trip data; the type guard in update_category_or_project only prevents NEW project fields from being written to it. If you want a clean category for a permanent conversion: set clear_project_fields=True (mimics the app's Edit Settings path — a bug in their tracker; also clears firstScheduled, which that path otherwise leaves behind) and receive the values in removed_project_fields. Note: the app's correct path (right-click/hover) is not in the menu by default — it is added via the gear icon directly in the right-click menu → Add action (app-verified 2026-08-31), so unmodified apps only show the buggy path. Do NOT convert a category that contains subcategories into a project — projects cannot contain categories (risk of orphans/cycles; check get_children first).

Inputs: to (required), item_id (required), clear_project_fields. Returns: object

create_category_or_projectA

Create a category or project with color, icon, labels and note. Create a category (via /doc/create, Full Access Token) or a project (via /addProject). Categories can contain categories; projects cannot. day/due_date/priority/frog are rejected for kind='category' for a structural reason, not a technical one: a category can never be completed or checked off, and deadline, scheduling, priority and frog belong to things that can be finished — projects and tasks. The API accepts the fields on categories (live-tested 2026-09-11) but they are not meaningful there (rule 2026-09-11). label_ids applies to both categories and projects. startDate/endDate cannot be set at creation (/addProject ignores them, verified live 2026-08-29) — use update_category_or_project afterwards.

Note: project titles must not contain '#word' — /addProject has the same corruption bug as /addTask (the string is stored unresolved as parentId and the project becomes invisible) but ignores the X-Auto-Complete header (verified against the live API 2026-08-20), so the client blocks it locally before any API call. Category titles are unaffected (/doc/create parses nothing).

Inputs: kind (required), title (required), day, frog, +11 more. Returns: object

create_eventA

Create a calendar event (experimental), synced by the app. EXPERIMENTAL: Create a calendar event. Calendar sync happens in the client — the Marvin app must be running on some device for the event to sync onwards to an external calendar.

Inputs: title (required), start_iso (required), length_minutes (required), note. Returns: object

create_notebookA

Create a standalone notebook, optionally with sections. A notebook for a project or category is not created here: it comes into being when a page is moved there (update_notebook_page move_to_parent_id) or when a second page is added in the app. Relies on undocumented writes (/doc/create and /doc/update, marked experimental by Marvin); the shape is matched against app 1.71.

Inputs: title (required), sections. Returns: object

create_notebook_pageA

Create a page at the end of a notebook, optionally in a section. Own pg_ id, rank after the existing pages. '- ' at the start of a line is written as '* ' (code protection against the app deleting lists). Relies on undocumented writes (/doc/create and /doc/update, marked experimental by Marvin); the shape is matched against app 1.71.

Inputs: title (required), notebook_id (required), text, section_id. Returns: object

create_recurring_taskA

Create a recurring task of any of the repeat dialog's eleven types. Written via /doc/create in the app's own shape, so every type shows correctly in the app's repeat dialog. Occurrences are created the first time a Marvin client opens after midnight, in the window today to today + Create occurrences — not immediately. Without create_occurrences the account's default applies. After completion: the tool writes the first occurrence on the start day, also when the start day is in the future. Custom accepts only an RRULE string (e.g. 'RRULE:FREQ=WEEKLY;INTERVAL=2;BYDAY=FR'). New occurrences inherit label, priority, size, note, subtasks, sections and hard deadline (verified against the live API). Only on weekdays: a month day on a weekend is moved to Friday (documented for monthly, verified); every_x_days then counts in weekdays (inferred from a series; the documentation does not mention the type).

Inputs: title (required), repeat (required), note, size, +20 more. Returns: object

create_taskA

Create a task with category, day, priority, size, time and reminders. The title is stored verbatim: the server's shortcut parsing is disabled (X-Auto-Complete: false), so '#Category', '~15', '*m' and '*p2' are NOT parsed — '#' in titles is safe. Use the parameters instead. startDate/endDate are set with update_task afterwards (/addTask ignores them). Size, subtasks, clock time and reminders are written in a second step with /doc/update and /reminder/set in the app's form; if a step fails the response says which ones were done (the task then already exists). A clock time requires day. Strategy-dependent fields (planned_week/month, review_date, backburner, reward_points, the sections) are stored even when the strategy is off in the app.

Inputs: title (required), day, frog, note, +19 more. Returns: object

create_time_blockA

Create a time block (experimental) and get its id back. EXPERIMENTAL: Create a time block via /doc/create (db='PlannerItems', Full Access Token). No official endpoint exists. Verify in the app that the block looks right.

The response carries time_block_id (the id is set client-side because /doc/create does not echo the server-generated id) and can be used directly as time_block_section in create_task/update_task — no extra get_today_time_blocks call needed. Client-set id live-tested 2026-09-13: accepted, listed in /todayTimeBlocks with the same id, and the block renders in the app like one created there (verified in the app 2026-09-13, app 1.70.0.0, PWA + desktop).

Inputs: date (required), title (required), start_time (required), duration_minutes (required). Returns: object

delete_notebookA
DestructiveIdempotent

Delete a notebook and its pages permanently, in two steps if text. No trash via the API. The pages are deleted first and then the notebook, as the app does. Two steps: a notebook with a parent and more than one page, and a standalone notebook where any page has text, are only deleted with confirm=true — the first call shows the pages (title, size, first line). Notebook with a parent: page 1's text is written back as the project's/category's note after the deletion; the text is always included in the response, so it is not lost if a step fails. Relies on undocumented writes (/doc/create and /doc/update, marked experimental by Marvin); the shape is matched against app 1.71.

Inputs: notebook_id (required), confirm. Returns: object

delete_notebook_pageA
DestructiveIdempotent

Delete a notebook page permanently, with confirmation if it has text. No trash via the API. A page with text is only deleted with confirm=true; the first call shows title, size and first line. The last page of a notebook with a parent is not deleted here — use delete_notebook. If the parent's first page is deleted, the note then points to whichever page is first. Relies on undocumented writes (/doc/create and /doc/update, marked experimental by Marvin); the shape is matched against app 1.71.

Inputs: page_id (required), confirm. Returns: object

delete_reminderA
DestructiveIdempotent

Delete reminders, also from the task's list when task_id is given. With task_id the entries are removed from the task's reminders list and from the server (both are needed; an entry left in the list makes an open client notify). Without task_id only the server entries are removed — use it for standalone reminders or orphaned entries from get_reminders. The clock time's reminder (type T) is removed with update_task(time='').

Inputs: reminder_ids (required), task_id. Returns: object

delete_taskA
DestructiveIdempotent

Delete a task permanently, with no trash and no undo. Deletion via the API bypasses the app's trash and cannot be undone — use only when the user explicitly wants a deletion. If the task has reminders they are cleared and the server entries removed before the deletion, so that no notification arrives. An occurrence of a recurring task follows the app's two choices: 'this' adds the occurrence's day to the recurring task's deletedDates and deletes the occurrence; 'all' deletes all open occurrences and then the recurring task, completed occurrences are kept. If the recurring task is already deleted, only the occurrence is deleted. If a step fails the response says which were done. The app's view: the web app (2026-12-01) and the desktop app (2026-12-02) removed the row within seconds without a reload, and it did not come back (verified). Older clients could keep showing the row; then reload before touching it. Occurrence of a recurring task with a reminder (reminderTimes): the occurrence's rt_ server reminders are removed too. A 404 on deletion counts as already deleted (already_absent) and the chain goes on. A recurring task (db RecurringTasks) is deleted with scope 'all', on an occurrence or on the recurring task's own id — also before it has any occurrences (they are created only when a client opens after the day rolls over). Habit recurrences are not deleted here. Projects and categories: deleted only without open children — the tool reads /children first (one more call) and otherwise refuses, with the list, so that no children are left with a parent that does not exist. Completed children do not show in /children and are left behind with the parent gone. The project's notebook is not deleted (as in the app); the response gives its id for delete_notebook.

Inputs: item_id (required), scope. Returns: object

get_account_infoA
Read-only

Get account info (/me): email, tracking status and points balance.

Inputs: no named parameters. Returns: object

get_categoriesA
Read-only

Get all categories and projects as a hierarchy with id and parentId. Get all categories and projects (the whole hierarchy; parentId='root' is the top level). Use to find the right parent_id when creating/moving.

Inputs: no named parameters. Returns: object

get_childrenA
Read-only

Get open tasks and subprojects in a category or project. Returns direct children only — call again for deeper levels. Note: orphans (tasks whose parentId points to a deleted/non-existent document) do NOT show up under 'unassigned' — only in get_today_items/get_due_items if they have a day/dueDate (live-tested 2026-08-29). Orphans are repaired by running FIX_CYCLES() in the app's console (a documented troubleshooting path).

Inputs: parent_id (required). Returns: object

get_done_itemsA
Read-only

Get tasks completed on a given date. Tasks completed on a given date (doneAt within that day, configured timezone) — regardless of priority and deadline. Built on the endpoint GET /doneItems?date= (documented in the help center since 2026-10-04; live-tested 2026-08-30): the endpoint filters on the task's day, not on doneAt; this tool filters on doneAt itself, midnight to midnight. A past day is kept on completion both in the app and via the API (the app sets day = today only on unscheduled and future-dated tasks) — hence the date plus lookback_days earlier are fetched and everything is filtered on doneAt. The response always states its coverage: covers_from (= date − lookback) and days_fetched. On a 429/error the fetch stops: incomplete=true, days_missing lists the days not fetched and warning explains; the date's own completions are always included because it is fetched first. Complete results are cached for 30 minutes (cached=true) — repeated calls then cost no API calls; mark_done inserts its task into the cache, delete_task and unmark_done remove theirs. Completions or deletions made in the app show up only once the cache expires. Not covered: a task with a FUTURE day completed via the API (it sits under its day). Tasks only — completed projects are not listed. Items without doneAt (older data) are excluded and counted in skipped_without_done_at. Completion time, not day: the app's Logbook follows day, so a task whose day was moved after completion (in the app, or by mark_done before Day Starts At) shows in the Logbook under its day but here under its completion time (verified 2026-12-02). Without date: today with Day Starts At counted in; the doneAt window is still the calendar day, midnight to midnight. Sorted by doneAt. Cost: one read call per day (~3.1 s each in the queue).

Inputs: date, lookback_days. Returns: object

get_due_itemsA
Read-only

Get open tasks and projects with a deadline today or earlier. Filters Keep just one (carry) as the app does: only the oldest open occurrence per recurring task is shown. Only the current one (skip) is not filtered here. The mode is read only for recurring tasks with an open occurrence before today and cached until local midnight. Snoozed tasks (itemSnoozeTime after now) are left out by default: counted in snoozed_count and listed under snoozed (the server does not filter, the app hides them). The response gives hidden_count; include_hidden and include_snoozed include all.

Inputs: by, include_hidden, include_snoozed. Returns: object

get_goalsA
Read-only

Get all goals with status, check-ins and tracker progress. A goal's tracker is named by the key trackerProgress_ on the goal (true = the tracker counts toward progress, documented in the data types). With include_trackers each tracker is read with /doc?id= (Full Access Token, verified 2026-12-01) and the response shows its latest value = the last pair in the tracker's history. Cost: one call for the goals plus one per tracker, at most 10 (tracker_reads; the rest are listed in trackers_not_read). Tasks are linked to goals with g_in_ on the task; tasks created through the API get no such link (verified 2026-12-01), and progress from tasks is computed by the app when shown, not on the server.

Inputs: include_trackers. Returns: object

get_habitA
Read-only

Get a habit's server tracking record with its full history. Get the server's tracking record for a single habit (habitId + full history — the source of truth for recordings). Note: the response lacks title and settings; those are in list_habits.

Inputs: habit_id (required). Returns: object

get_kudosA
Read-only

Get kudos, level and kudosRemaining from Marvin's XP system. Note: kudos is separate from reward points (the reward currency) — the point balance is in get_account_info. nextMultiplier only exists in /me, not here (known limitation, MarvinAPI issue #5).

Inputs: no named parameters. Returns: object

get_labelsA
Read-only

Get all labels with ids, for label_ids and filtering.

Inputs: no named parameters. Returns: object

get_notebookA
Read-only

Read a notebook including the text of its pages, or a single page. Give exactly one of notebook_id, parent_id (project/category) and page_id. Pages come in rank order; the first page of a notebook with a parent is the one the parent shows as its note. If the text exceeds max_chars the rest is omitted and the response says which pages.

Inputs: page_id, max_chars, parent_id, notebook_id. Returns: object

get_notebooksA
Read-only

List all notebooks with page titles, order and sections, without text. Standalone notebooks have parent_id null; a notebook that belongs to a project or category has parent_id and parent_type. A page's updated_at changes when the page is edited in the app. For text: get_notebook. A notebook whose parent has been deleted gets parent_missing, one on a done project gets parent_done. Costs 2 calls (1 when no notebook has a parent) plus one per distinct parent missing from /categories (deleted or done projects).

Inputs: no named parameters. Returns: object

get_rate_limit_statusA
Read-only

Show today's Marvin calls against the budget and the last call time. Show how many Marvin API calls have been made today (budget 1440/day, shared by all tools) and when the latest one went out. The counter is shared by every client that goes through this server. If a call went out within the last minute, another client is active. This tool costs no Marvin call.

Inputs: no named parameters. Returns: object

get_remindersA
Read-only

Get all server-side reminders, push notifications to the phone. Requires the Full Access Token.

Inputs: no named parameters. Returns: object

get_time_tracksB
Read-only

Get time-tracking history for up to 100 tasks. Get time-tracking history for the given tasks (the source of truth, max 100 per call).

Inputs: task_ids (required). Returns: object

get_today_itemsA
Read-only

Get open tasks and projects for a day (rollover: earlier days too). The selection depends on the account's rollover (strategies.rollover, verified 2026-12-01): on = open items with day <= the date, off = only day = the date. The response says which mode applies (rollover, selection). A time of day does not affect the selection. Deadline-only items: get_due_items. Today = the local calendar day, but before the account's Day Starts At (dayStartTime 00:00-06:00) the previous day; the response shows day_start. Filters as the app does: If you miss one = Keep just one (carry) shows only the oldest open occurrence, Only the current one (skip) only the date's own; Keep them all and the account default show all. The mode is read (/doc) only for recurring tasks with an open occurrence before today, cached until local midnight. Snoozed tasks (itemSnoozeTime after now) are returned by the server but hidden by the app (verified 2026-12-02): they are counted in snoozed_count and listed under snoozed. hidden_count and include_hidden are about hidden occurrences. Cost: one call, plus one read per hour of rollover and day start (cached). Occurrences exist once a Marvin client has generated them (normally after the day rolls over); read before that, today's occurrences are missing.

Inputs: date, include_hidden, include_snoozed. Returns: object

get_today_time_blocksA
Read-only

Get today's time blocks with their category or smart-list mapping. The API response lacks the category link (known limitation, MarvinAPI issue #65); the mapping is therefore fetched separately from the profile setting plannerSmartLists (key = normalized block title).

Inputs: date, include_category_mapping. Returns: object

get_tracked_itemA
Read-only

Show which task is being time-tracked right now.

Inputs: no named parameters. Returns: object

list_capabilitiesA
Read-only

List every Marvin tool by area, with what it can and cannot do. Costs no Marvin API call. Call it before assuming something is impossible via MCP or requires manual work in the app; field conditions and live-tested details live in each tool's own description.

Inputs: no named parameters. Returns: object

list_habitsA
Read-only

Get all habits with title, settings and history. Get all habits as full documents incl. title, settings and history ([time1, value1, time2, value2, ...], unix ms). Requires the Full Access Token (the raw variant of /habits). Important (verified live 2026-08-19): non-raw /habits would be wrong here — it reads the server's tracking registry, which is created lazily on the first recording, so never-recorded habits are missing entirely, and the responses lack titles.

Inputs: no named parameters. Returns: object

mark_doneA
Idempotent

Mark a task as done and clean up its reminders as the app does. Reads the task, runs /markDone (configured timezone) and then does what the app does: the server entries T and M are removed and reminderTime is cleared; the reminders list remains. Projects: /markDone responds 400 (tasks only); projects are closed with mark_project_done. 404 = does not exist, 400 = already done or a project. Habit task (field habitId): the habit is also recorded with /updateHabit at 12:00 on the task's day, and habitRepAt is set. Habit with a count (recordType number): value is recorded with the current time; the task is checked off only once the day's total reaches the target — otherwise it stays open and the response shows the total. Recurring occurrence: safe (deterministic id). After completion: the next occurrence is created +N days later. With a future day the tool does what the app does: the occurrence is moved to today before it is checked off, and the next one is counted from today. If a step fails the response says which steps were done. Running time tracking is stopped and written to task.times. /markDone does not set workedOnAt and does not stamp fieldUpdates, which the app does. Reward points: /markDone awards the task's rewardPoints automatically, whatever the strategy settings (live-tested 2026-12-01). claim_reward_points for the same task afterwards does nothing: one award per task (verified twice). Without rewardPoints the completion awards 0: the app's rules (default points, frog bonus) are computed only in the app. Day Starts At: /markDone sets day to the calendar date. Before the account's day start (dayStartTime 00:00-06:00) a day the server set is moved to the user's day with one extra /doc/update (day_corrected); points and doneAt stay and the app's Logbook follows day.

Inputs: item_id (required), value. Returns: object

mark_project_doneA
Idempotent

Close a project and its open tasks, in two steps. Step 1 (without confirm_code): reads the project and its open children, lists them with the warning that they too will be marked done, and returns a code. Nothing is written. Step 2 (confirm_code from step 1): reads the children again; if the code no longer matches, nothing is closed and the response gives the new list and code. Otherwise each open task is checked off like mark_done (/markDone and reminder cleanup) and the project is closed last with a /doc/update of the app's five fields: done, doneAt and workedOnAt (now), day (the project's day, or today if it has none) and doneDate (same as day) — as the app does. The deadline (dueDate) is not touched. The app itself refuses to close a project with open children; this tool closes them on purpose. The children are checked off with /markDone, which does not set workedOnAt and does not stamp fieldUpdates — the app sets workedOnAt on the children. Stops in step 1 without a code if an open child is a sub-project, a habit task or an occurrence of a recurring task — close those first (the app's behavior there is untested). Completed projects do not show in get_categories. Undo in the app; unmark_done refuses projects. If a step fails the response says which were done; the project then stays open. Cost: step 1 two calls; step 2 three, plus one per task and two more per task with reminders.

Inputs: project_id (required), confirm_code. Returns: object

record_habitA

Record or undo a habit check-in, synced to the app. Also updates the sync database (updateDB=true) so the Marvin app shows the change immediately.

Inputs: habit_id (required), undo, value. Returns: object

reset_reward_pointsA
DestructiveIdempotent

Reset reward points permanently, balance and history. Reset reward points PERMANENTLY: deletes the whole earn/spend history and sets the balance to 0 (Full Access Token). CANNOT be undone — only use when the user explicitly asks for it.

Inputs: no named parameters. Returns: object

search_notebooksA
Read-only

Search notebooks: notebook names, page titles and page text. The list is fetched with one call; page text is cached in memory and fetched only for notebooks with pages changed since the previous search (updated_at), at most 20 notebooks per call. Notebooks whose text has not been fetched yet are listed in not_searched — search again to continue. Hits in a notebook whose parent has been deleted get parent_missing, on a done project parent_done (as in get_notebooks).

Inputs: query (required). Returns: object

set_priorityA
Idempotent

Set priority (P1-P3 or low) or the dread level on a task. Set or change priority (isStarred) and/or the frog/dread level (isFrogged 1-4, read in the app 2026-10) on an existing TASK. Requires the Full Access Token. The app's four priority levels are stored as isStarred 3/2/1/-1; Low priority is shown only with 'Enable low priority' on. Does not apply to projects: they use the string field priority ('high'/'mid'/'low'); set it via update_category_or_project. A permanent 500 = the task does not exist (deleted or wrong ID).

Inputs: item_id (required), frog, priority. Returns: object

set_reminderA

Set an own reminder on a task, or a standalone reminder. With task_id the reminder is written in the app's form: an entry in the task's reminders list (reminderId of 13 characters, time in seconds) and a server entry of type M with taskId — the app shows it under Reminders and the notification arrives, and mark_done/delete_task clean it up. A clock time on a task is set with update_task(time=...). Without task_id a standalone server entry of type M is written (requires Marvin's mobile app for the notification).

Inputs: time_unix_seconds (required), title, task_id. Returns: object

spend_reward_pointsA

Spend reward points on a reward. Only deducts points from the balance: the app's store (Rewards documents, where a purchase in the app writes earned[]) is not touched, so the purchase does not show there. If the balance is too low Marvin responds 400 "Not enough reward points" and nothing is deducted (verified 2026-12-01; it used to be 500); the response says so clearly. Check the balance (get_account_info) before large purchases.

Inputs: points (required), date. Returns: object

start_trackingB
Idempotent

Start time tracking on a task.

Inputs: task_id (required). Returns: object

stop_trackingA
Idempotent

Stop time tracking on a task; the time lands in get_time_tracks. Stop time tracking for a task. Note (documented API limitation, confirmed live 2026-09-02): the task's own times/duration fields are not updated by /track STOP — the tracking only lands in /tracks (get_time_tracks). Exception: mark_done during active tracking now writes task.times (see mark_done).

Inputs: task_id (required). Returns: object

test_connectionA
Read-only

Check that the API token works against Marvin's API. Returns OK if the apiToken works.

Inputs: no named parameters. Returns: object

unclaim_reward_pointsA
Idempotent

Undo a reward-point award tied to a task. Undoes an award made with claim_reward_points (e.g. after a misclick). Not a follow-up to unmark_done: it already takes back the task's rewardPoints, and unclaim afterwards gets 404 "No such entry" (verified twice). Unclaim on a completed task takes the field's points and the task stays completed without points (verified 2026-12-01). Only works for awards tied to a real task ID: Marvin's server stores no entry for MANUAL awards (verified live 2026-08-19, /unclaimRewardPoints responds 404 'No such entry'). Compensate a MANUAL award with spend_reward_points for the same amount instead.

Inputs: item_id (required), date. Returns: object

unmark_doneA
Idempotent

Undo a task's completion, and the habit's record. Projects and categories: refuses without writing — a closed project is reopened in the app. Sets done=false and clears doneAt via /doc/update (Full Access Token); the app's own undo leaves doneAt in place. A task that never had a day (firstScheduled 'unassigned' and no fieldUpdates.day stamp) got its day from /markDone: the day that mark_done set is removed (stored as 'unassigned'; the app's own undo writes null — both mean no day). Otherwise the day stays. As in the app: the clock time's reminder (T) is not restored — the time does not remind until it is set again — but own reminders in the reminders list still apply. Habit task: the habit's latest record is undone with /updateHabit undo and habitRepAt is cleared, but only if the history's last entry is the task's habitRepAt; otherwise the response says so and the habit is left untouched (undo always takes the latest entry). Open habit task (a partial record on a habit with a count): nothing is written — undo the record with record_habit undo=true, as the app's undo does. Kudos are not adjusted. The task's rewardPoints are taken back by the server (live-tested 2026-12-01); unclaim_reward_points afterwards gets 404 "No such entry" (verified twice). A permanent 500 = the document does not exist.

Inputs: item_id (required). Returns: object

update_category_or_projectA
Idempotent

Update a category or project: labels, color, icon, note, project fields. Update fields on an existing CATEGORY or PROJECT via /doc/update (Full Access Token). For tasks, use update_task. Fields marked 'Projects ONLY' (day/due_date/priority/frog/size) are blocked for categories: if any of them is given, the tool first reads the document (1 extra API call) and refuses if it is a category. The reason is structural, not technical: a category can never be completed or checked off, and deadline, scheduling, priority and frog belong to things that can be finished — projects and tasks. The API accepts the fields on categories (live-tested 2026-09-11) but they are not meaningful there (rule 2026-09-11). label_ids applies to both categories and projects. Strategy-dependent fields (start/end date, planned_week/month, review_date, orbit) can be set even when the strategy is disabled in the app. Do not complete projects here (done via /doc/update skips the app's side effects) — that is done in the Marvin app. Note: Marvin's server can sporadically respond 500 on /doc/update (transient and atomic); just retry. But a PERMANENT 500 (persists across retries) means the document does not exist — deleted, or a wrong/never-existing ID (the server responds 500 instead of 404 for missing IDs, verified live 2026-08-29). Fetch a fresh ID via get_categories/get_children.

Inputs: item_id (required), day, frog, icon, +18 more. Returns: object

update_notebookA
Idempotent

Rename a standalone notebook or change its sections. Renaming is refused on a notebook that belongs to a project or category (the app would otherwise show the notebook's name instead of the project's). The section list is read just before the write and is rewritten in full. On removal, sectionId is first set to null on the pages in that section, so that no page points to a missing section. Relies on undocumented writes (/doc/create and /doc/update, marked experimental by Marvin); the shape is matched against app 1.71.

Inputs: notebook_id (required), title, sections_add, sections_delete, +1 more. Returns: object

update_notebook_pageA
Idempotent

Change a page's text, title, order or section, or move it. text replaces, append adds at the end; '- ' at the start of a line is written as '* '. New text shows up immediately in an open client. Move: the section does not follow (sectionId null). The first page of a notebook with a parent is not moved out — it is the parent's note. Moving to a project or category without a notebook creates one in the app's shape. The response says when an order change switches which page the parent's note points to. Relies on undocumented writes (/doc/create and /doc/update, marked experimental by Marvin); the shape is matched against app 1.71.

Inputs: page_id (required), rank, text, title, +4 more. Returns: object

update_recurring_taskA
Idempotent

Change a recurring task: rule, window, place, end date, properties. Existing occurrences are not corrected when the rule changes via the API, and a later save in the app does not correct them either; they keep their old shape. When the rule is changed in the app's dialog, the app itself removes those that no longer match. When type, interval or Create occurrences change, the tool then works out which open, untouched occurrences from today on do not match the new rule or window. Mode 'list' (default): they are listed and removed only with confirm=true (without deletedDates: they do not come back if they do not match the rule, and outside the window they should come back). Changed occurrences, occurrences before today, custom rules that are not RRULEs and Only on weekdays are listed only. "Untouched" = no stamp more than 10 s after generatedAt (except masterRank, dueDate, updatedAt), the day unchanged and no tracked time (times/duration), as the app's "Ones you edited or tracked time on stay" (verified 2026-12-01/02). A stamp on reminders alone counts as untouched when the reminders match the recurring task's reminderTimes. Removed occurrences' reminders (the reminders list and rt_ entries from reminderTimes) are deleted on the server. New occurrences follow a rule and properties changed via the API, counted from the start day. Custom accepts only an RRULE string. Lowering Create occurrences via the API removes nothing, not even at the next generation; the app's dialog removes untouched upcoming occurrences when the lowering is saved there. confirm=true does what the dialog does.

Inputs: recurring_task_id (required), note, size, title, +20 more. Returns: object

update_taskA
Idempotent

Update a task: title, day, time, reminders, size, subtasks. /doc/update (Full Access Token). Categories/projects: update_category_or_project; priority and frog: set_priority; completion: mark_done. Changing the day does what the app does: reminderTime and the server entry T move to the new day, own reminders (M) stay and are listed in the response. New clock time: new T, own reminders (including 'X min before') keep their time. time='' removes the clock time in the app's form. If the day is removed (day='unassigned') the clock time and T are removed as in the app; own reminders stay. Subtasks are written with dotted keys. parent_id or subtasks on a recurring occurrence give a warning: the recurring task stays as it is, so future occurrences follow it — change it with update_recurring_task. Strategy-dependent fields are stored even when the strategy is off in the app. A sporadic 500 on /doc/update is transient (retried once); a permanent 500 = the document does not exist.

Inputs: item_id (required), day, note, size, +25 more. Returns: object

Tool Schema Changelog

Recent tool additions, removals, and schema changes observed during successful MCP inspections.

Loading tool schema changelog…

    TDQS

    A3.6/5.0

    Scored across 50 tools

    Disambiguation4/5

    Most tools target a clearly distinct resource+action (create_task, update_task, mark_done, unmark_done, record_habit, create_time_block), and the descriptions actively cross-reference where boundaries are close (set_priority vs update_task, update_task vs update_category_or_project). A few clusters remain confusable at a glance — get_notebook / get_notebooks / search_notebooks, set_reminder vs the clock time in update_task, and delete_task vs the notebook/reminder deleters — but the naming plus notes make the right choice recoverable.

    Naming Consistency4/5

    Nearly everything is snake_case verb_noun (create_task, update_notebook_page, delete_reminder, get_due_items), with a small set of get/list prefixes used sensibly for reads. Minor deviations like test_connection, list_capabilities and get_tracked_item break the resource_verb pattern slightly but are still predictable and readable.

    Tool Count2/5

    50 tools is well above the 15-25 band and the surface is spread across many sub-domains (tasks, projects, notebooks, habits, rewards, tracking, time blocks, goals, reminders). Each tool does earn some place, but the sheer volume makes discovery and selection costly for an agent, and several areas are thin while others are dense.

    Completeness3/5

    Tasks, projects/categories and notebooks have near-full lifecycle coverage (create/read/update/delete/complete/undo), but other domains are read-only or partial: goals have no create/update/delete, habits cannot be created or deleted, events have only create, and labels are read-only. These are real gaps an agent will hit, though most have documented workarounds in the app.

    Maintenance

    ActivityNo data
    ResponsivenessOutdated data

    Related MCP Connectors

    Related MCP Servers