Skip to main content
Glama
README.md
# things-applescript-mcp

<!-- mcp-name: io.github.runeb/things-applescript-mcp -->

A small local [MCP](https://modelcontextprotocol.io) server for [Things 3](https://culturedcode.com/things/) that talks to Things only through `osascript` (JXA and AppleScript).

It never reads the Things SQLite database, so it doesn't need Full Disk Access. It needs only **Automation** permission to control Things3.

> This is an unofficial project. It isn't made, endorsed or supported by Cultured Code. Things is a trademark of Cultured Code GmbH & Co. KG.

## Tools

Every tool that acts on one to-do takes its id as `id`. Each tool's MCP description lists its exact parameters and accepted values.

### Reading

| Tool | Parameters | Returns |
| --- | --- | --- |
| `list_todos` | `list_name`: `Inbox`, `Today`, `Anytime`, `Upcoming` or `Someday` | Open to-dos: `id`, `title`, `notes`, `deadline`, `start_date`, `tags`, `project`, `area` |
| `get_todo` | `id` | One to-do: the `list_todos` fields plus `status` and `list` |
| `search_todos` | `query`, `include_completed` (default `false`), `limit` (default 50, max 500) | `{results, truncated}`; each result has the `get_todo` fields |
| `list_projects` | none | Open projects: `id`, `title`, `area` |
| `list_areas` | none | Areas: `id`, `title` |

### Changing

| Tool | Parameters | What it does |
| --- | --- | --- |
| `add_todo` | `title`; optional `notes`, `list_name` (default `Inbox`), `deadline`, `when`, `tags` | Creates a to-do and returns it as `get_todo` would |
| `update_todo` | `id`; optional `title`, `notes`, `append_notes`, `when`, `deadline`, `tags` | Changes only the fields you pass and returns the updated to-do |
| `move_todo` | `id`, `destination`: `Inbox`, `Today`, `Anytime`, `Someday` or a project name | Moves a to-do |
| `complete_todo` | `id` | Marks a to-do completed |
| `delete_todo` | `id` | Moves a to-do to the Things Trash |

Accepted values:

- **`when`:** `today`, `tomorrow`, `anytime`, `someday`, or a date as `YYYY-MM-DD` (today or later). A future date puts the to-do in Upcoming.
- **`deadline`:** `YYYY-MM-DD`. In `update_todo`, `none` removes the deadline.
- **`tags`:** a list of existing tag names, matched without regard to case. It replaces all of the to-do's tags; `[]` removes them all.
- **`list_name`** (in `add_todo`): `Inbox`, `Today`, `Anytime`, `Someday` or a project name. Combine `when` with a project or the default Inbox; with `Today`, `Anytime` or `Someday` the two conflict and the call is rejected.
- **`notes` / `append_notes`:** `notes` replaces the notes; `append_notes` adds a new line at the end. Pass one or the other, not both.

### How the tools behave

- **List and project names:** list names ignore case. Project names ignore case and leading or trailing spaces. If more than one open project has the same name, the tool returns an error listing their ids.
- **Upcoming:** you can list it, but you can't move a to-do there. Use `update_todo` with a future `when` date instead.
- **Projects and lists:** moving a to-do to **Inbox** takes it out of its project. Moving it to **Today**, **Anytime** or **Someday**, or scheduling it with `when`, keeps it in its project. This is how Things itself works.
- **Open to-dos only:** `list_todos` skips completed and canceled to-dos. Things leaves them in Today until it logs them.
- **Search:** case-insensitive substring match on title and notes. It looks in Inbox, Today, Upcoming, Anytime and Someday, plus the Logbook when `include_completed` is true. Trashed to-dos are never returned. Use it to check for duplicates before `add_todo`.
- **`list` field:** the first of Inbox, Today, Upcoming, Anytime, Someday, Logbook or Trash that contains the to-do. It's `null` when Things shows the to-do only inside its project, for example a project's to-do set to Someday.
- **Projects aren't to-dos:** in Things' scripting model a project is a kind of to-do. The to-do tools reject project ids so you can't complete or trash a whole project by mistake.
- **Area:** a to-do inside a project shows that project's area.
- **Dates:** `deadline` and `start_date` are local dates as `YYYY-MM-DD`, or `null`.

### Limits of Things' AppleScript

- **No This Evening.** Things' AppleScript has no way to set or read This Evening, so `when: "evening"` returns an error rather than pretending.
- **No moving into Tomorrow.** Things refuses to `move` a to-do into its Tomorrow list (error 301). `when: "tomorrow"` and future dates use Things' `schedule` command instead, which puts the to-do in Upcoming with that start date.
- **Unknown tags are rejected.** Setting a tag that doesn't exist makes Things create it silently, so a typo would leave a stray tag. The tools return an error listing the existing tags instead.
- **Past dates are rejected for `when`.** Things would put the to-do in Today but keep the old start date.

## Setup

Requires macOS, Things 3 and [uv](https://docs.astral.sh/uv/).

Add the server to `~/Library/Application Support/Claude/claude_desktop_config.json`, under `mcpServers`:

```json
"things": {
  "command": "/Users/<you>/.local/bin/uvx",
  "args": ["things-applescript-mcp"]
}
```

`uvx` downloads the package from PyPI and runs it. Use the absolute path to `uvx` (`which uvx` shows it): Claude Desktop doesn't use your shell's `PATH`. Restart Claude afterwards.

Other MCP clients work the same way: run `uvx things-applescript-mcp` as a stdio server.

### Running from a checkout

```sh
git clone https://github.com/runeb/things-applescript-mcp.git
cd things-applescript-mcp
uv sync
```

Then point the client at `uv` with `"args": ["--directory", "/absolute/path/to/things-applescript-mcp", "run", "things-applescript-mcp"]`.

### Automation permission

The first time a tool runs, macOS asks whether the app running the server (for example Claude) may control Things3. Allow it.

If you declined, or the tools return a permission error, open **System Settings → Privacy & Security → Automation**, find that app, and turn on **Things3**.

## Errors

Failures come back as MCP tool errors with a readable message, for example:

- Automation permission is missing (macOS error `-1743`), with steps to fix it
- Things isn't installed, isn't running, or didn't respond in time
- No to-do with that id, a project id where a to-do id is expected, or no list or project with that name
- An invalid `when`, `deadline` or tag, or conflicting arguments
- `osascript` timed out after 90 seconds, often because a permission prompt is waiting for an answer

## How it works

- **No user data in script text.** Every script is a fixed string. JXA scripts get their arguments as a single JSON-encoded argv entry. AppleScript scripts get positional argv entries. Both are passed after `--`, so a value like `-e` can't be read as an `osascript` option.
- **Bulk reads.** `list_todos` and `search_todos` fetch each property for a whole list in one Apple Event (`toDos.name()`, `toDos.id()` and so on) instead of looping over to-dos. `list_todos` takes about 0.25s; a search that includes the Logbook takes under a second.
- **JXA and AppleScript.** JXA handles reads and most writes, including Things' `schedule` command and removing a deadline. Moving a to-do to a list uses a small fixed AppleScript, because JXA's `move` command fails against Things with error `-1700`. Moving into a project sets the to-do's `project` property.
- **Validate, then write.** `update_todo` and `add_todo` check every argument (dates, tags, destination) before changing anything, so a bad value doesn't leave a to-do half-updated.
- **Logged and trashed to-dos.** Things' general to-do list only holds open to-dos. A logged to-do can still be read through it but can't be deleted that way, so the server addresses logged and trashed to-dos through the Logbook or Trash list instead.
- **Adding to a list other than Inbox.** `add_todo` checks the destination first, creates the to-do in the Inbox, then schedules or moves it. If that fails, it moves the new to-do to the Trash so nothing half-done is left in the Inbox.
- **Locale-independent lists.** Built-in lists are looked up by their internal ids (`TMInboxListSource`, `TMTodayListSource`, `TMNextListSource`, `TMCalendarListSource`, `TMSomedayListSource`), not by their names, which change with the UI language.

## Development

See [CLAUDE.md](CLAUDE.md) for how the code is organised, the Things scripting quirks it works around, the live test script and the release process.

## License

[MIT](LICENSE)

TDQS

A3.7/5.0

Scored across 10 tools

Disambiguation4/5

Most tools target clearly distinct actions and resources: add/get/update/delete/complete/move_todo are separable, and list_projects/list_areas are unambiguous. There is some overlap between update_todo and move_todo for scheduling/moving to built-in lists, and list_todos vs. search_todos for finding to-dos, but the descriptions clarify the boundaries reasonably well.

Naming Consistency5/5

All tool names follow a consistent snake_case verb_noun pattern: add_todo, get_todo, list_todos, complete_todo, search_todos, move_todo, list_projects, list_areas, update_todo, delete_todo. There are no mixed conventions or vague names.

Tool Count5/5

Ten tools is a well-scoped set for a Things.app integration focused on to-do management. Each tool covers a meaningful operation without obvious redundancy or missing basic actions.

Completeness4/5

The to-do surface is strong: create, read, update, delete, complete, move, list, and search are all covered. Minor gaps remain around project/area lifecycle operations (only list is supported) and there is no explicit cancel operation despite status including 'canceled'.

Maintenance

ActivityMaintained
ResponsivenessNo recent community issues