Skip to main content
Glama
amazing-marvin-mcp
by tsvikas

amazing-marvin-mcp

Tests uv Ruff codecov
Made Using tsvikas/python-template GitHub Discussion PRs Welcome

Overview

An unofficial MCP server for Amazing Marvin, so an assistant such as Claude can answer "what's in my inbox?", "what's due this week?", "I'm at the car, what can I do?", and act on it: rename, relabel, reschedule, move, split into projects, save research into a note.

This project is not affiliated with, endorsed by, or supported by Amazing Marvin; it uses their public API.

How it works

Claude ──MCP (stdio)──▶ amazing-marvin-mcp
                          ├─ local mirror ◀── CouchDB `_changes` (your sync database)
                          │    reads, search and filters run here: no rate-limit cost
                          └─ writes ──▶ Marvin REST API (addTask, doc/update, markDone)
                                        throttled to Marvin's limits (1 request / 3 s)

Marvin's REST API has no "list" or "search" endpoint and a budget of 1440 requests per day, so reads come from a local copy of your database kept fresh with an incremental _changes poll (at most once a minute). Writes go through the REST API, which handles Marvin's conflict-resolution bookkeeping (fieldUpdates) server-side.

What the assistant knows

  • Marvin semantics, in the UI's own words. Inbox = not filed anywhere; categories and projects nest arbitrarily (the Master List). The four dates are kept apart: Do date (the day you plan to do it, "scheduled"), Due date (hard external deadline), End date (self-imposed target; Planning Ahead's planned week/month is the softer form), Start date (hidden on the Backburner until then). Plus Duration estimates (minutes), Importance (P1–P3 stars), Eat-the-Frog, Backburner, labels and label groups.

  • Your structure (get_structure): the category/project tree with ids and open-task counts, labels by group, and which Marvin strategies you have enabled (by their names in the Strategies screen).

  • Your workflow (workflow.md or a workflow/ directory of sections): how you use Marvin: what labels mean, how you plan, your inbox-triage checklist, what "short win" means. Marvin is flexible, so this is what lets the assistant act the way you would. It is injected into the server instructions and exposed as marvin://workflow (and marvin://workflow/<section>).

Tools

Tool

What it does

get_structure

Category/project tree with ids, labels by group, strategies in use

list_inbox

Open inbox tasks, oldest first

list_today [day]

Do date that day, do date earlier but not done, due by then

list_due [by]

Open tasks with a due date by a date (week, month, YYYY-MM-DD)

search_tasks …

Any mix of text, parent, labels, do-date window, due/end by, estimate, flags

get_task id

Full detail of a task (note, subtasks, dates) or a project (its open children)

list_children parent

Direct tasks and sub-projects of a project/category

create_task / create_project

Names for parent/labels are resolved for you

create_category / create_label

New folder in the Master List; new label (in an existing or new group)

update_subtasks id …

Add, complete, reopen, rename, remove subtasks

update_task id …

Rename, move, relabel, do/due/end/start date, estimate, note, importance, clear…

mark_done id

Complete a task/project

sync_marvin

Force a mirror refresh

Prompts: triage_inbox, daily_review

Built from your workflow file

There is deliberately no delete tool: Marvin's trash is client-side, so API deletes are unrecoverable.

Related MCP server: Amazing Marvin MCP

Install and set up (using it)

  1. Install (needs uv):

    uv tool install git+https://github.com/tsvikas/amazing-marvin-mcp.git
  2. Credentials. In Marvin, enable the API strategy (Strategies → API → settings). Put its values in ~/.config/amazing-marvin-mcp/.env (Linux; amazing-marvin-mcp check prints the exact path on your OS):

    MARVIN_API_TOKEN=...           # create / mark done
    MARVIN_FULL_ACCESS_TOKEN=...   # edit existing items; omit for no edits
    MARVIN_SYNC_SERVER=...         # CouchDB: the read mirror
    MARVIN_SYNC_DATABASE=...
    MARVIN_SYNC_USER=...
    MARVIN_SYNC_PASSWORD=...

    Environment variables and a .env in the working directory also work (and override the per-user file). While trying things out, use a second, throwaway Marvin account: the full-access token can damage data.

  3. Check and first sync:

    amazing-marvin-mcp check     # verifies tokens, pulls the database, prints counts
  4. Describe your workflow:

    amazing-marvin-mcp init-workflow            # one workflow.md to edit, or
    amazing-marvin-mcp init-workflow --split    # a workflow/ directory: planning, labels, triage, daily…

    Everything in it goes into the model's instructions (and each section is also a marvin://workflow/<section> resource), so keep it short and concrete.

  5. Register with your MCP client.

    Claude Code:

    claude mcp add marvin -- amazing-marvin-mcp serve

    Claude Desktop (claude_desktop_config.json):

    {
      "mcpServers": {
        "marvin": { "command": "amazing-marvin-mcp", "args": ["serve"] }
      }
    }

    Both read the per-user .env, so no secrets go in the client config. Then ask: "what's in my Marvin inbox?"

Other settings (shown by check): MARVIN_WORKFLOW_FILE (file or directory), MARVIN_CACHE_DIR, MARVIN_MIN_REQUEST_INTERVAL (seconds between REST calls, default 3), MARVIN_MIRROR_MAX_AGE (seconds before a read re-polls, default 60).

The mirror file holds all your tasks; it is written with owner-only permissions under the cache directory.

Developing

git clone https://github.com/tsvikas/amazing-marvin-mcp && cd amazing-marvin-mcp
uv sync && just prepare                     # deps + pre-commit hooks
just test && just lint

Run the server from the checkout (a .env in the repo root is git-ignored and is picked up when the client starts from this directory; otherwise use -e VAR=value or the per-user file):

claude mcp add marvin-dev -- uv run --directory "$PWD" amazing-marvin-mcp serve

tests/test_live.py runs every tool end to end and replays a recorded cassette by default (tests/cassettes/), which doubles as a fixture of real Marvin documents. To re-record against a throwaway account (it creates and then deletes a few [live] items):

MARVIN_API_TOKEN=... MARVIN_FULL_ACCESS_TOKEN=... MARVIN_SYNC_SERVER=... \
MARVIN_SYNC_DATABASE=... MARVIN_SYNC_USER=... MARVIN_SYNC_PASSWORD=... \
uv run pytest tests/test_live.py --record-mode=rewrite

Design rules for contributions are in CLAUDE.md.

Contributing

Interested in contributing? See CONTRIBUTING.md for development setup and guidelines.

Available Tools

15 tools
create_categoryB

Create a category (a folder in the Master List). Categories can only live under categories.

Inputs: title (required), color, parent. Returns: A newly created item.

create_labelA

Create a label (optionally inside an existing or new label group).

Requires the Task Labels strategy to be enabled in Marvin.

Inputs: title (required), color, group, new_group, +1 more. Returns: A newly created item.

create_projectC

Create a project (container for tasks). Convert an inbox item into one with this + update_task(parent=…).

Inputs: title (required), note, labels, parent, +3 more. Returns: A newly created item.

create_taskC

Create a task. Names for parent/labels are resolved here; don't use #/@ shortcuts.

Inputs: title (required), frog, note, labels, +10 more. Returns: A newly created item.

get_structureA

Category/project tree with ids and open-task counts, labels by group, strategies in use.

Call this once at the start of a session; it is how you map names to ids.

Inputs: no named parameters. Returns: The user's Marvin layout: tree, labels, enabled strategies.

get_taskB

Full details of one task (note, subtasks, dates, tracking) or project (its open children).

Inputs: task_id (required). Returns: Everything about one task or project, raw unmodelled fields included. Task-only…

list_childrenB

Open tasks and sub-projects directly inside a project/category (by id or name).

Inputs: parent (required), limit. Returns: Direct contents of a project or category.

list_dueA

Open tasks with a Due date on or before a day (default: end of this week).

Args: by: YYYY-MM-DD, today, tomorrow, week, next-week, month. limit: Maximum number of tasks to return.

Inputs: by, limit. Returns: Tasks due on or before ``by``.

list_inboxA

Open tasks in the Inbox (not filed in any category/project), oldest first.

Inputs: limit. Returns: A page of matching tasks.

list_todayB

What's on for a day: do date that day, do date earlier but not done, due by then.

Args: day: YYYY-MM-DD or today/tomorrow/yesterday.

Inputs: day. Returns: What a given day looks like.

mark_doneB

Mark a task or project done (handles recurring/echo tasks and stops tracking).

Inputs: item_id (required). Returns: An item marked done.

search_tasksA

Find tasks by any combination of filters (all ANDead). Unset filters are ignored.

This is the tool for "what can I do in 5 minutes", "everything tagged X", "what's scheduled this week in project Y", etc.

Inputs: done, text, limit, due_by, +14 more. Returns: A page of matching tasks.

sync_marvinA

Force-refresh the local mirror from Marvin (normally automatic).

Inputs: no named parameters. Returns: Outcome of a mirror refresh.

update_subtasksA

Add, complete, reopen, rename or remove subtasks of a task. Requires full access.

Inputs: task_id (required), add, remove, rename, +2 more. Returns: Everything about one task or project, raw unmodelled fields included. Task-only…

update_taskA

Edit a task or project: rename, move, relabel, (re)schedule, deadlines, estimate, note.

Only the arguments you pass are changed. Requires the full-access token.

Inputs: item_id (required), frog, note, clear, +16 more. Returns: The item after an edit, plus which Marvin fields changed.

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 15 tools

    Disambiguation4/5

    The list tools (list_inbox, list_today, list_due, search_tasks, list_children) all return tasks but with distinct scopes, and descriptions clarify when to use each. get_task and list_children overlap slightly for project children, but get_task provides full details while list_children is a focused listing.

    Naming Consistency5/5

    All tools use snake_case with a consistent verb_noun pattern (get_*, list_*, create_*, update_*, search_tasks, mark_done, sync_marvin). No mixed conventions or vague names.

    Tool Count5/5

    15 tools fit the task-management domain well, covering listing, search, CRUD, and subtask operations. Each tool has a clear, non-redundant purpose, staying within the typical 3-15 range.

    Completeness3/5

    Core CRUD is mostly covered (create, read, update, list, search, mark done), but there is no delete operation for tasks, projects, categories, or labels, and no way to reopen a completed task. These notable gaps could force workarounds or cause failures for cleanup/undo workflows.

    Maintenance

    ActivityMaintained
    ResponsivenessLimited data

    Related MCP Connectors

    Related MCP Servers