TodoMode for developers: REST API, MCP server and CLI

Your tasks, scriptable. One personal token works for all three: the REST API, the hosted MCP server for AI assistants, and the todomode command line.

/api/v1

REST API

JSON over HTTPS: projects, tasks, notes, the agenda, search, the trash and import. Read more

/mcp

MCP server

Claude Code, Claude Desktop, Cursor and other MCP clients can read and update your tasks. Set it up

$ todomode

Command line

One Python file, no dependencies: add, list, complete, edit notes in $EDITOR, pipe lists in. Install it

First, a token

In TodoMode, open Settings → API, give a token a name, choose its access and an expiry, and press Create token.

  • Access: read only (GET requests only) or read and write. Choose read only for anything that only looks: a dashboard, an export, an assistant that summarises your day.
  • Expiry: 30 days, 90 days, a year, or never.
  • Shown once. TodoMode keeps only a one-way hash, so copy it when it appears. Right below it, TodoMode shows the MCP setup commands from this page with your token already filled in.
  • Revoke a token in Settings → API and it stops working on the next request. Up to 10 live tokens per account.

A token acts as you, with exactly your access: your own projects and the ones shared with you, and a project shared with you read-only stays read-only. Tokens look like tm_ followed by 43 characters, so secret scanners can match tm_[A-Za-z0-9_-]{43}.

REST API v1

All endpoints live under one base URL, and every request carries the token as a Bearer header:

https://app.todomode.com/api/v1
Authorization: Bearer tm_…

Who am I, add a task, and what is due

export TODOMODE_TOKEN="tm_…"            # the token you copied

curl -s https://app.todomode.com/api/v1/me \
  -H "Authorization: Bearer $TODOMODE_TOKEN"

# Add a task with the same shorthand the app's input box understands
curl -s https://app.todomode.com/api/v1/tasks \
  -H "Authorization: Bearer $TODOMODE_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"project_id": "proj_6ac7b898efa547.08938441", "text": "Fix login due:fri at:9am #work !high"}'

# Open tasks due this week, across every project
curl -s "https://app.todomode.com/api/v1/tasks?completed=false&due=thisweek" -H "Authorization: Bearer $TODOMODE_TOKEN"

What it covers:

  • Projects and tasks: list, create, update, complete, move, and delete to the trash (restorable). New tasks understand the app's shorthand: due:fri, at:9am, #tag, !high, @weekly.
  • Notes with an optimistic lock, so a script never overwrites a note someone changed in the app meanwhile.
  • Search with the app's syntax, the agenda (overdue, today, tomorrow, this week, next week, later), backlinks between tasks, and import of a whole outline in one request.
  • Sync helpers: updated_since with tombstones for deleted tasks, cursor pagination, and idempotent creates with client_request_id.
  • Rate limit: 120 requests a minute per token, of which up to 60 may be writes. Every authenticated response carries rate-limit headers.

Not in v1 yet: deleting projects, reordering within a project, attachments, sharing, timers and webhooks. The full list of endpoints, objects and error codes is in the API reference.

MCP server for AI assistants

TodoMode runs a hosted MCP (Model Context Protocol) server. An assistant connected to it can see your projects and agenda, search, and, with a read-and-write token, add, update, complete and move tasks. The server speaks the Streamable HTTP transport and authenticates with your API token as a Bearer header:

https://app.todomode.com/mcp

Claude Code

One command (add --scope user to have TodoMode in every project):

claude mcp add --transport http todomode https://app.todomode.com/mcp \
  --header "Authorization: Bearer tm_…"

To keep the token out of your shell history, put it in an environment variable and the server in the project's .mcp.json:

{
  "mcpServers": {
    "todomode": {
      "type": "http",
      "url": "https://app.todomode.com/mcp",
      "headers": { "Authorization": "Bearer ${TODOMODE_TOKEN}" }
    }
  }
}

Cursor

Add this to ~/.cursor/mcp.json (every workspace) or .cursor/mcp.json (one project):

{
  "mcpServers": {
    "todomode": {
      "url": "https://app.todomode.com/mcp",
      "headers": { "Authorization": "Bearer ${env:TODOMODE_TOKEN}" }
    }
  }
}

Claude Desktop

Claude Desktop adds remote servers as connectors: Settings → Connectors → Add custom connector, with the URL https://app.todomode.com/mcp. If the dialog has a request headers section, add a header named Authorization with the value Bearer tm_….

If it does not, use the TodoMode command line as a local bridge: it speaks MCP to Claude Desktop on your computer and forwards to TodoMode with the token you logged in with.

todomode login
todomode mcp --print-config

Paste the printed todomode entry into claude_desktop_config.json (Claude Desktop → Settings → Developer → Edit Config) and restart Claude Desktop. It looks like this, with your own paths:

{
  "mcpServers": {
    "todomode": {
      "command": "/usr/bin/python3",
      "args": ["/Users/you/.local/bin/todomode", "mcp"]
    }
  }
}

Other clients, and what cannot connect yet

Any MCP client that supports Streamable HTTP and lets you set a request header works: give it the URL and the header Authorization: Bearer tm_…. A client that only starts local (stdio) servers can run todomode mcp as the server command.

No OAuth yet. TodoMode's MCP server signs in with an API token, not OAuth. Custom connectors that can only sign in with OAuth, such as those on claude.ai on the web and in ChatGPT, cannot connect to it yet.

What the assistant can do

TokenTools
Readlist_projects, list_tasks, get_task, get_backlinks, search_tasks, agenda, list_trash
Read and writeAll of the above, plus add_task, update_task, append_to_note, complete_task, move_task, delete_task, restore_from_trash, import_outline, create_project

With a read-only token the assistant is only offered the read tools. Deleting a task moves it to the trash, where it can be restored for 30 days, and projects cannot be deleted at all. Write tools are marked as such, and delete_task and update_task as destructive, so your client can ask you before it runs them. Full setup and troubleshooting: Connect AI assistants.

The todomode command line

One file with no dependencies beyond Python 3.8 or newer, which macOS (with the Command Line Tools) and almost every Linux already have. Every command can print JSON with --json.

Install and log in

mkdir -p ~/.local/bin
curl -fsSL https://app.todomode.com/cli/todomode -o ~/.local/bin/todomode && chmod +x ~/.local/bin/todomode
todomode --version

todomode login            # paste the token when asked; it is not echoed
todomode whoami           # check

Make sure ~/.local/bin is on your PATH. The CLI guide shows how to check the download against its published SHA-256. Instead of logging in you can set TODOMODE_TOKEN in the environment, which is handy in CI.

Everyday use

todomode add "Fix login due:fri at:9am #work !high"       # to your Inbox
todomode ls Work               # one project, as an outline
todomode today                 # overdue and due today
todomode done 3                # complete #3 from the last listing
todomode note 3                # edit the note in $EDITOR
printf -- "- Groceries\n  - milk\n  - bread\n- Call the bank !high\n" | todomode import -

# Everything due today as plain titles
todomode today --json | jq -r '.sections[].tasks[].text'

Listings number their rows, and the next command can use those numbers. todomode note opens the note in $VISUAL or $EDITOR (vi if neither is set), and refuses to overwrite a note that changed in the app while you were editing; your text is kept so you can merge it.

Who can use it

The API, the MCP server and the CLI are part of TodoMode Pro and of the 7-day free trial; there is no separate developer plan. If a trial or subscription ends, reading keeps working and changes are refused until it is renewed. See pricing.

Make a token in two minutes

Start the 7-day trial, no credit card, and create a token in Settings → API. Or try the app itself in the demo first.

The demo is the real app, in your browser. The trial needs no credit card.