amazing-marvin-complete-mcp
An MCP server that exposes the full Amazing Marvin public API (34 tools across ~31 endpoints) so assistants can manage tasks, habits, time blocks, reminders, and reward points through natural language.
README
amazing-marvin-complete-mcp
An MCP (Model Context Protocol) server for Amazing Marvin with complete coverage of the public API: 34 tools over all ~31 documented endpoints, a global rate limiter that respects Marvin's documented limits, least-privilege token routing, and MCP tool annotations. 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.
Provided as-is. This project is not actively maintained and comes with no support. Issues are disabled on purpose. Fork freely — it's MIT.
Tools (34)
| 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 |
| 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.
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) — limited access; enough for reading and creating tasks. - 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+.
git clone <this repo> && cd amazing-marvin-complete-mcp
python -m venv .venv && .venv/bin/pip install .
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": "/path/to/.venv/bin/marvin-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=… -- /path/to/.venv/bin/marvin-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. The built-in bearer check (MCP_AUTH_TOKEN)
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 on 2026-08-19. 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"./addTaskparses Marvin's quick-add shortcut syntax server-side:~15becomes a 15-minutetimeEstimateand+YYYY-MM-DDsetsday(scheduling — not the deadline). Both are stripped from the title. But never use#Categorythrough the API: the server stores the string literally asparentId(greedy up to the first hyphen, e.g.#MCP-TEST→parentId: "#MCP"and a corrupted title) without resolving any ID. The task then lives outside every category and outside the Inbox — effectively invisible. (First reported by lucasoeth/marvin-mcp; independently reproduced here.)- 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/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).
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.
推荐服务器
Baidu Map
百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。
Playwright MCP Server
一个模型上下文协议服务器,它使大型语言模型能够通过结构化的可访问性快照与网页进行交互,而无需视觉模型或屏幕截图。
Audiense Insights MCP Server
通过模型上下文协议启用与 Audiense Insights 账户的交互,从而促进营销洞察和受众数据的提取和分析,包括人口统计信息、行为和影响者互动。
Magic Component Platform (MCP)
一个由人工智能驱动的工具,可以从自然语言描述生成现代化的用户界面组件,并与流行的集成开发环境(IDE)集成,从而简化用户界面开发流程。
VeyraX
一个单一的 MCP 工具,连接你所有喜爱的工具:Gmail、日历以及其他 40 多个工具。
Kagi MCP Server
一个 MCP 服务器,集成了 Kagi 搜索功能和 Claude AI,使 Claude 能够在回答需要最新信息的问题时执行实时网络搜索。
graphlit-mcp-server
模型上下文协议 (MCP) 服务器实现了 MCP 客户端与 Graphlit 服务之间的集成。 除了网络爬取之外,还可以将任何内容(从 Slack 到 Gmail 再到播客订阅源)导入到 Graphlit 项目中,然后从 MCP 客户端检索相关内容。
e2b-mcp-server
使用 MCP 通过 e2b 运行代码。
Neon MCP Server
用于与 Neon 管理 API 和数据库交互的 MCP 服务器
Exa MCP Server
模型上下文协议(MCP)服务器允许像 Claude 这样的 AI 助手使用 Exa AI 搜索 API 进行网络搜索。这种设置允许 AI 模型以安全和受控的方式获取实时的网络信息。