Leeway
MCP

MCP

Connect an AI assistant to Leeway with the Model Context Protocol (MCP). Your assistant can read your agenda, capture tasks, change plans, and manage repeating work using the same views and rules as the web app.

The remote server uses Streamable HTTP at:

POST https://leeway.sh/api/mcp

For another deployment, replace https://leeway.sh with that deployment’s origin.

The server provides eleven tools and two resources. It doesn’t provide MCP prompts.

Connect

Add the endpoint to your MCP client. For example, in Cursor’s mcp.json:

{
  "mcpServers": {
    "leeway": { "url": "https://leeway.sh/api/mcp" }
  }
}

Use the same URL in other clients that support remote Streamable HTTP, including Claude Code and MCP Inspector. Authenticate using one of the methods below, then try asking your assistant, “What needs my attention today?” The agenda tool is a good first call.

Auth

Choose the authentication method that suits your client:

  1. Browser sign-in: If your client supports OAuth, sign in to Leeway and approve access when prompted.
  2. Personal access token: For clients that run without a browser, send Authorization: Bearer lee_live_… with each request, not a session cookie.

Create or rotate a personal access token in Settings → API keys while signed in. Copy the lee_live_… value once. A PAT cannot create more keys.

Tokens can have an expiry date and read or write scopes; the default is both. A read-only token can read your tasks but can’t call write tools.

Tools

Start with agenda for a daily overview, or list_tasks to find specific tasks. To change existing tasks, pass their IDs to a write tool. Write tools accept up to 100 items per batch and don’t accept filters in place of IDs.

Read responses include today and tz, giving your assistant the date and timezone to use.

agenda

Get a daily overview: overdue deadlines, tasks due today, slipped plans, today’s plans, and upcoming work. The response also includes counts for Inbox, Anytime, and Someday.

Argument Type Notes
days integer 1–30 Upcoming window. Default 7.
area string Area name or ID.

This is a read-only tool. Use it when you want to plan the day; use list_tasks when you need a particular view or search.

Example: agenda { "days": 7, "area": "Work" }

list_tasks

Browse a view or search for tasks. Leeway applies the view’s date and status rules for you.

Argument Type Notes
view enum home, inbox, today, upcoming, anytime, someday, deadlines, logbook, area, project
area string Name or ID. Required when view is area.
project string Name or ID. Required when view is project.
q string Search within titles and notes. Maximum 500 characters.
limit integer 1–100 Default 50.
cursor string Task ID to page after.

Returns compact task objects plus { today, tz, total, cursor }. Task keys are: id, t (title), k (kind), s (status), optional on, by, a (area name), r (repeat), c (child progress), p (parent ID). Fields with null values are omitted.

To schedule or complete the results, pass their IDs to schedule_tasks or complete_tasks.

get_task

Read a task’s full details, including notes, sub-tasks, area and project, where it came from, and its repeat rule in plain English.

Argument Type Notes
id string Full ULID or unambiguous prefix (≥8 characters).

Use an ID returned by agenda or list_tasks.

create_tasks

Create 1–100 tasks in one call, with optional sub-tasks. The on and by fields accept YYYY-MM-DD or relative dates. Leeway resolves them in your timezone and returns the resulting dates so you can check them. Tasks created through this tool have source: "mcp".

Pass a tasks array containing these fields for each task:

Field Notes
title Required. 1–500 characters.
notes Optional. Maximum 20,000 characters.
area Name or ID.
project Name or ID.
kind inbox, anytime, scheduled, someday
on Planned date: YYYY-MM-DD or relative (friday, next friday, tomorrow).
by Deadline, same date language.
parent Parent ID or unique prefix.
subtasks Up to 100 { title } objects.
client_ref A unique reference for this task. Reuse it on retries to return the existing task. If omitted, Leeway derives a reference from the task content, batch position, and a 60-second time bucket. Supply your own reference for retries across time buckets.

Example:

{
  "tasks": [
    {
      "title": "Send Priya the report",
      "area": "Work",
      "by": "friday",
      "client_ref": "report-for-priya-2026-10"
    }
  ]
}

update_tasks

Edit the fields you supply and leave the rest unchanged. Pass ids with a shared patch, or an updates array for individual edits, for up to 100 tasks.

Use status: "trashed" to move a task to trash. Trashing more than 20 tasks requires human confirmation and confirm: true. MCP doesn’t permanently delete tasks.

For completion or skipping, use complete_tasks. For date-only changes, use schedule_tasks. The parent field accepts a parent task ID or unique prefix.

Patch fields: title, notes, area, project, kind, on, by, status (open or trashed), parent. area / project / on / by / parent may be null to clear.

schedule_tasks

Set, move, or clear planned dates and deadlines. Use on for when you plan to work and by for when the task is due.

Argument Notes
ids 1–100 explicit IDs.
kind inbox, anytime, scheduled, someday. Setting any kind other than scheduled clears the planned date.
on / by Relative dates or YYYY-MM-DD. The response includes the resolved dates.
clear_scheduled / clear_deadline Unset that date. on / by of clear or none also unset.

complete_tasks

Complete the tasks identified by ids. To act on a group, first find the tasks with list_tasks, then pass the IDs you want to complete.

Argument Notes
ids 1–100 explicit IDs.
cascade Complete open children. Default true.
skip Mark the occurrence skipped and still advance the series.
confirm Required when more than 20 IDs.

For repeating tasks, any new instances appear in next[]. Set skip: true to skip the current occurrence and advance the series without marking it completed.

set_repeat

Add, change, or turn off a repeat rule. Use the supported fields below; the tool doesn’t accept arbitrary RRULE strings.

Argument Notes
ids 1–100 explicit IDs.
freq daily, weekly, monthly_day, monthly_weekday, yearly
interval 1–366
byweekday Array of weekdays, using 1–7 for Monday–Sunday. For example, [1, 5] for Monday and Friday.
bymonthday Day of month; -1 is last day of the month
bysetpos Nth weekday; -1 is last
bymonth 1–12
anchor schedule or completion
rule_drives scheduled or deadline
deadline_offset_days Number of days from the planned date to the deadline. Use null for no deadline, or when rule_drives is deadline.
ends_on / max_occurrences End date (YYYY-MM-DD) or maximum number of occurrences.
lead_days How many days ahead the next instance can be created
subtasks Array of title strings to copy onto each instance.
scope future (default): this occurrence and later; forks a new series when history exists. all: rewrite the template from original starts_on. Completed instances remain unchanged.
off End the series (ended_reason=user_off). Keeps history. You cannot delete a series over MCP.

The response describes the rule in plain English and shows the next three dates. For a completion-based rule, it describes the interval after completion instead.

capture

Turn a list of text into tasks. Pass text with 1–50,000 characters; each non-empty line becomes an Inbox task. You can also pass an area name or ID.

Use this for a pasted list or a quick capture. Use create_tasks when you want to specify dates, projects, or other details.

list_areas

Get your areas and their projects as a compact tree, including open-task counts. This tool takes no arguments and is useful for checking names before filing tasks.

manage_areas

Create, rename, or archive areas and projects. Archiving keeps their history; this tool doesn’t permanently delete them.

op Other fields
create_area name, optional color (#rrggbb)
rename_area id, name
archive_area id
create_project name, area (name or ID)
rename_project id, name
archive_project id

When creating an area, color accepts a hex colour such as #16705C. Projects don’t have a colour field.

Resources

Both resources return read-only JSON with a private cache lifetime of about 60 seconds:

URI What it is
leeway://agenda/today Cached digest of overdue, due today, slipped, and scheduled today (agenda with days: 1). Prefer the agenda tool when you also need the next N days.
leeway://areas Compact area/project tree with open counts. Same data as list_areas.

Limits and safeguards

The server applies these rules to MCP tool calls:

  • No hard delete. Trash with update_tasks (status: "trashed"). manage_areas archives. set_repeat { off: true } ends a series and keeps history.
  • Explicit IDs. To change existing tasks, list them first, then pass their IDs to a write tool.
  • Confirmation for larger changes. More than 20 IDs on complete_tasks (including skip), or more than 20 update_tasks rows that set status: "trashed", return input_required until a person confirms (confirm: true). The client should ask for approval before retrying with confirmation.
  • Rate limit. 60 write calls per minute per token, or per user when no token ID is available. All write tools share this limit. Further calls return rate_limited until capacity is available.
  • Retries. Reuse client_ref on create_tasks to avoid duplicates. Automatically generated references only deduplicate matching requests within the same 60-second time bucket.
  • Write scope. A read-only token cannot call write tools.

The tool catalogue marks complete_tasks, update_tasks, and manage_areas with destructive hints. It marks create_tasks and update_tasks as idempotent.

  • HTTP API for HTTP endpoints. Create keys in Settings → API keys.
  • Concepts for planned vs deadline, views, and recurrence.