Skip to main content

AI & MCP Server

Connect 2Do for Windows to Claude, Codex, ChatGPT, Gemini, or any other AI assistant that supports the Model Context Protocol (MCP). Ask your assistant to find overdue tasks, turn meeting notes into a project or checklist, organize sections, adjust dates and alarms, review attached images, or transcribe a voice note without writing a script.

2Do for Windows has 35 tools. Codex, Claude Code, and other clients that support Streamable HTTP can connect directly to 2Do on your PC. Claude Desktop and other clients that start a local MCP server can use the Windows desktop extension. For ChatGPT, see Connect from another device or a cloud client.

Ask Your Assistant to Set It Up​

If your AI assistant can read web pages and configure MCP servers on your PC, let it handle the setup for you. First, open 2Do, press Ctrl+, to open Settings, select Automation, and turn Automation on. Then paste this prompt into your assistant:

Connect this client to 2Do for Windows using the setup guide at:
https://www.2doapp.com/docs/windows/mcp.md

Use the local connection on this PC. Keep the access key out of the chat.
If a step needs my input, tell me what to do.
Then list my 2Do lists to check that the connection works.

Keep 2Do open and unlocked while testing. Once your assistant lists your 2Do lists, try the examples below.

Connect on This PC​

  1. Open 2Do, press Ctrl+, to open Settings, select Automation, and turn Automation on.
  2. Connect your AI client using one of the options below.
  3. Ask your assistant, “List my 2Do lists.” You should see the lists from 2Do.

Keep this PC awake and 2Do open and unlocked whenever an assistant connects.

Codex or Claude Code​

  1. In 2Do, open Settings > Automation.
  2. Under Set up an app, click Copy command beside Claude Code or Codex.
  3. Open PowerShell on the same PC, paste the command, and press Enter.
  4. Restart your client so it loads the new connection.

The setup command reads the saved key directly from 2Do's protected local settings and registers the 2do server for your user account, so the key does not appear in your chat or Windows Clipboard History. Re-running the command replaces an old port or revoked key.

Claude Desktop, the Claude Code Plugin, and Local STDIO Clients​

If your client launches a local STDIO MCP server instead of connecting to an HTTP URL, use the Windows desktop connector. It finds the running copy of 2Do on your PC and reads its saved access key automatically. If more than one copy of 2Do is running with automation turned on, select the one you want by its local URL.

  • Claude Desktop for Windows. Download the latest Windows .mcpb bundle from the Windows MCP releases. In Claude Desktop, open Settings > Extensions > Advanced settings, click Install Extension, and select the downloaded .mcpb file.
  • Claude Code plugin. In Claude Code, run /plugin marketplace add BeehiveInnovations/2dowinapp-mcpb, then run /plugin install 2do-windows@beehive-2do-windows. Choose this option if you prefer a plugin over the PowerShell setup command.
  • Other local stdio clients. Download the same Windows bundle and follow the standalone connector instructions. Your client starts the connector, which talks to 2Do on your PC.

Other Streamable HTTP Clients​

  1. In your client's MCP settings, add a new server named 2Do and choose Streamable HTTP.
  2. In 2Do (Settings > Automation > Set up an app > Other MCP apps), click Copy URL and paste it into the client's server URL field.
  3. Click Copy access key in 2Do and paste it into the client's bearer-token field. If your client asks for a raw HTTP header instead, use Authorization as the header name and Bearer <access key> as the value.
  4. Save your settings and restart or reconnect the client.

The local address starts with http://127.0.0.1: and ends in /mcp. Windows assigns a port when you first turn on Automation, and 2Do saves that port across launches. Every client connects with the same access key and saves it in its own connection settings.

For example, in Gemini CLI, set httpUrl to the copied URL and set headers.Authorization to Bearer <access key>. See the Gemini CLI MCP settings for details. If your client takes a command instead of a URL, use the local connector above.

What You Can Do​

Describe what you want in plain language and name the list, section, or task you are working with. For example:

  • “Show me the first ten unfinished tasks due this week, earliest first.”
  • “Create a Launch checklist in my Work list with tasks for testing, release notes, and support.”
  • “Create Bookings and Packing sections in my Travel list, then move my passport and charger tasks into Packing.”
  • “Move the Bookings section and its tasks into my Summer Trip list.”
  • “Pause my Waiting tag, then show me which tasks it hides.”
  • “Open the task I just created in 2Do.”
  • “Transcribe the voice note on my Planning task and show me the text before changing my notes.”

Your assistant works with the items available in your open 2Do window. Every change goes through 2Do's normal editing commands, so you can press Ctrl+Z (or use Undo) to step back from an edit, including batch changes. A shared list with read-only access keeps that restriction, and locked lists stay unavailable until you unlock them in 2Do. Your assistant may also ask you to confirm before making changes.

Voice Notes and Images​

Ask your assistant to inspect an image attached to a task or transcribe a voice note and turn the ideas into tasks.

  1. Find the task with query_tasks or get_task to get its task_id.
  2. Call list_attachments with that task_id to retrieve each attachment's attachment_id, kind, and local available status in saved order.
  3. Call read_attachment with both IDs to read an image or audio recording up to 8 MiB. Your client receives a native MCP image or audio block and decides which formats it can display.

To get text from a voice note, call transcribe_attachment with task_id and attachment_id:

{
"name": "transcribe_attachment",
"arguments": {"task_id": "task-uid", "attachment_id": "attachment-uid"}
}

Transcription runs locally on your PC using the Windows speech recognizer for your current language. The recording must be stored locally, no larger than 64 MiB, and in a format 2Do can decode. If 2Do asks for speech recognition support for your language, install it in Windows Settings. The tool returns the recognized text without modifying the recording or the task's notes; ask your assistant to save the text or create tasks from it when that is what you want.

Sorting, Focus Mode, and Sections​

Your assistant can adjust how tasks are ordered and grouped in 2Do:

  • List sorting and Focus Mode. Use get_list_settings to read a list's saved sorting and Focus Mode state, and update_list_settings to change them. Pass exactly one target: list_id, smart_list_id, or focus (all, today, starred, scheduled, or done). focus_enabled turns the list's existing Focus Filter on or off without changing its saved conditions. Done does not support Focus Mode updates.
  • Project and checklist sorting. Read a project or checklist's sorting with get_task, and set it with sorting (field and direction) in create_task or update_task. Note that sort on query_tasks and list_subtasks only orders returned results; use sorting to change the saved order in 2Do.
  • Task sections. Use list_sections and create_section with a list_id, then pass section_id to create_task or move_task (do not also pass list_id or parent_task_id). In update_task, pass section_id to assign a top-level task to a section in its current list, or section_id: null to remove it from its section. Use reorder_sections with every section_id in the list to change section order, and move_section to move a section and all of its tasks to another list.

Available Tools​

You do not need to memorize tool names to chat with your assistant. These tables help you review what your assistant can do or call tools directly. Clients can call tools/list to inspect the full argument names, allowed values, and descriptions for every tool.

Read and Discovery​

ToolWhat it does
list_listsList normal lists. Set include_archived: true to include archived lists.
list_sectionsList saved sections in a normal list, in manual order. Requires list_id.
list_list_groupsList List Groups.
list_smart_listsList saved Smart Lists.
get_list_settingsRead saved sorting and Focus Mode state for a normal list, Smart List, or built-in Focus list.
list_tagsList tags and their paused state. Optionally filter by tag_group_id.
list_tag_groupsList tag groups.
list_locationsList saved task locations.
get_default_task_destinationReturn the default editable list for new tasks (destination_id, list_id, and title).
get_taskGet one task, project, checklist, or subtask by task_id.
list_attachmentsList a task's active attachments in saved order. Requires task_id.
read_attachmentRead a local image or audio attachment up to 8 MiB. Requires task_id and attachment_id.
transcribe_attachmentTranscribe a local voice note up to 64 MiB using Windows speech recognition. Requires task_id and attachment_id.
query_tasksFind tasks in a section, list, List Group, Smart List, or Focus view (defaults to All). Supports search, date bounds, sorting, and pagination.
list_subtasksList a project or checklist's children. Supports paused_filter, sort, and include_completed.
selected_tasksReturn the tasks currently selected in 2Do.

For example, to find the first ten unfinished tasks in Today, call query_tasks with:

{
"focus": "today",
"include_completed": false,
"limit": 10
}

Changes​

ToolWhat it does
update_list_settingsChange a list's saved sorting, Focus Mode state, or both.
create_sectionCreate a section at the end of a normal list. Requires list_id and title; accepts description.
move_sectionMove a section and all its tasks to another list. Requires section_id and destination list_id.
reorder_sectionsSet a list's section order. Requires list_id and all of its section_ids in the desired order.
create_taskCreate a task, project, checklist, or subtask in a list, section, or parent task.
update_taskChange task fields, including section membership within the current list.
update_task_actionSet, replace, or clear a task's action.
delete_taskDelete a task or a batch of tasks.
duplicate_taskDuplicate a task.
move_taskMove a task or batch to a list, section, or parent task. Use the returned task IDs for later calls.
complete_taskMark a task or batch complete.
uncomplete_taskMark a completed task or batch incomplete.
pause_tagPause a tag so matching tasks are hidden by default.
unpause_tagUnpause a tag to show matching tasks again.
ToolWhat it does
select_listSelect a normal list in 2Do.
select_list_groupSelect a List Group in 2Do.
select_smart_listSelect a saved Smart List in 2Do.
select_focusSelect All, Today, Starred, Scheduled, or Done.
open_taskOpen or focus a task in 2Do.

Quick Reference for AI Clients​

If you are an AI assistant or building an MCP client for 2Do for Windows, follow these rules:

TopicContract
Transport & endpointBuilt-in Streamable HTTP at http://127.0.0.1:<port>/mcp (loopback only; port is saved across launches). Optional local STDIO connector available via 2dowinapp-mcpb. 2Do must be open and unlocked.
AuthenticationAuthorization: Bearer <access key>. The key is shared across connected clients; replacing it or turning off Automation revokes it immediately. Requests with an unrecognized Host or browser Origin receive HTTP 403; invalid credentials receive HTTP 401.
Tool schemasCall tools/list for authoritative JSON schemas. Requests are validated against those schemas before any read or write.
Dates & timesFloating local values only: dates yyyy-MM-dd, times HH:mm, absolute alarm triggers yyyy-MM-dd HH:mm. Never send timezone names, Z suffixes, or UTC offsets.
Clearing fields with nullOnly due_date, due_time, start_date, start_time, and section_id (in update_task) accept null. Omit other optional fields to leave them unchanged. Clear recurrence with {"frequency": "none"} and alarms with [].
Exclusive targetsquery_tasks accepts at most one of section_id, list_id, list_group_id, smart_list_id, or focus. When passing section_id to create_task or move_task, do not also pass list_id or parent_task_id.
IDs after cross-list movesmove_task and move_section can assign new task_id values when moving tasks between lists. Always use the returned IDs or re-query with query_tasks and list_subtasks.
Batch operationscomplete_task, uncomplete_task, delete_task, and move_task accept either one task_id or 1 through 100 unique task_ids (never both). The full batch is validated before applying changes in order.
Recursive flagsdelete_task, complete_task, and uncomplete_task default to recursive: true. uncomplete_task accepts update_parent: true only when recursive: true.
Recurring completioncomplete_task on a recurring task advances it to its next occurrence and is not idempotent. Never retry it automatically.
Query defaultsquery_tasks and list_subtasks default to paused_filter: "hide" (hide, include, or only) and include_completed: true. search is a literal case- and accent-insensitive phrase (1–256 characters), not a Boolean query.
Inline subtaskscreate_task accepts 1 through 100 inline subtasks when creating a project or checklist in a list_id or section_id. Checklist children cannot set dates, duration, recurrence, or relative alarms.
Attachment limitsread_attachment supports local images and audio up to 8 MiB. transcribe_attachment supports local audio up to 64 MiB and returns text without editing the task.

Connect from Another Device or a Cloud Client​

A cloud client or an app on another device cannot reach 127.0.0.1 on your PC. To give it access, run your own HTTPS reverse proxy on the same PC as 2Do. Keep the PC awake and 2Do open and unlocked while you use it. 2Do never opens your firewall.

  1. Give your reverse proxy a public HTTPS address ending in /mcp, and configure it to forward HTTP POST and streaming responses to the local URL shown in 2Do, including the client's Authorization header.
  2. In 2Do, open Settings > Automation, expand Advanced, enter your public HTTPS address under Your HTTPS address, and click Save.
  3. Add your HTTPS URL to the remote client. If it accepts bearer tokens, use the access key from 2Do. For ChatGPT custom MCP servers or Claude custom connectors, configure your proxy to authenticate the client with MCP-compatible OAuth. Keep the 2Do key in the proxy’s secret store and send it to 2Do only after the proxy authorizes the request. OpenAI’s custom MCP setup · Claude’s custom connector setup

For example, if 2Do shows http://127.0.0.1:53689/mcp, this Caddy configuration forwards requests with the client’s bearer token to 2Do. Use your own hostname and port. Clients that need OAuth also need the authentication step above.

tasks.example.com {
reverse_proxy /mcp 127.0.0.1:53689
}

Once saved, Other MCP apps displays your HTTPS address so Copy URL copies the remote URL for other devices.

Privacy and Security​

The MCP server listens only on this PC (127.0.0.1) and protects its saved access key using Windows encryption tied to your Windows user account. It returns requested tasks, notes, and attachments directly to the client you connect; your assistant provider handles any data it receives under its own terms and privacy policy.

Automation uses 2Do's current unlocked session. When 2Do or a password-protected list is locked, automation cannot read or change its data. Credentials and proxy settings stay on this PC and are excluded from backups and sync.

Troubleshooting​

The client cannot connect​

Check that 2Do is open and unlocked on the right PC, and that Automation is turned on in Settings > Automation. Compare the URL in your client with the URL shown in 2Do. Restart your client after changing its MCP configuration.

The client reports an unauthorized request​

Under Settings > Automation > Advanced, clicking Replace key… revokes the previous access key right away. Run the PowerShell setup command again for Claude Code or Codex, or update the bearer token in your client's settings. If you use a reverse proxy that stores the key, update it there as well.

The client cannot find a list, section, or task​

Ask your assistant to list your lists or sections first and use the returned IDs, especially when several items share a name. If a task was recently moved to another list, its task_id may have changed; ask your assistant to find it again. Unlock any password-protected list you want your assistant to access.

You want to stop access​

Turn off Automation in Settings > Automation. 2Do stops the local server and removes the access key immediately. If you turn Automation on again later, 2Do creates a new key and may choose a new port, so copy the updated connection details to your clients and any reverse proxy.