Skip to main content
Glama
README.md
# Things Cloud MCP

A self-hosted Go server for connecting Things 3 to MCP clients. It syncs Things Cloud into a local SQLite mirror and exposes task reads and optional writes over Streamable HTTP. This is an unofficial integration using a private protocol.

## Quickstart: read your sandbox Inbox

Clone this repository and use the Go toolchain specified in [go.mod](go.mod). Use a separate Things Cloud test account. In Bash, enter its credentials when prompted and start the server from the repository root:

```bash
(
  read -r -p 'Sandbox email: ' THINGS_USERNAME
  read -r -s -p 'Sandbox password: ' THINGS_PASSWORD
  printf '\n'
  export THINGS_USERNAME THINGS_PASSWORD
  DATA_DIR=$(mktemp -d)
  trap 'rm -rf -- "$DATA_DIR"' EXIT
  export DATA_DIR PORT=8080 ENABLE_WRITES=false INSECURE_NO_AUTH_LOCAL_ONLY=true
  go run ./server
)
```

After the initial sync, run this from a second terminal on the same machine:

```bash
curl --fail-with-body --silent --show-error http://127.0.0.1:8080/mcp \
  -H 'Content-Type: application/json' \
  -H 'Accept: application/json, text/event-stream' \
  --data '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"things_list_inbox","arguments":{"limit":5}}}'
```

The MCP result wraps the page as JSON text in a content block. For example, an empty Inbox page has `"items":[]`, `"returned":0`, and `"total":0`. An HTTP 200 can still contain a tool error, so check the response for `error` or `isError: true`. Stop the server with Ctrl+C when done.

The read-only [sandbox smoke test](https://github.com/pachamaker/things-cloud-mcp/actions/runs/46122026623) verified the Inbox call via a local Streamable HTTP MCP client on a Linux runner. It returned 5 of 18 test tasks with zero commit attempts. The hosted-client path is covered separately below.

## Try Inbox with Docker Compose

From the repository root, create `secrets/sandbox.env` with
`THINGS_USERNAME` and `THINGS_PASSWORD` for a dedicated test account.
Keep this file private and out of Git. Then run:

```bash
docker compose -f compose.quickstart.yaml run --build --rm inbox
```

The curl container shares the MCP container's loopback. No host port is
published. The command prints the MCP response from the test account.
Check the response for `error` or `isError: true`.

Stop the local stack with:

```bash
docker compose -f compose.quickstart.yaml down
```

This keeps the test SQLite volume for the next run. Compose configuration
is validated separately from the sandbox runtime check above.

## Connect a remote client

For ChatGPT web or another compatible remote MCP client, follow the [VPS setup and verification matrix](docs/deployment/vps.md#client-and-proxy-verification). Remote access requires HTTPS and owner-scoped OAuth 2.1. The local quickstart listens on loopback.

## Capabilities and limits

- Read Inbox, Today, projects, tags, completed tasks, and other Things views. See the [tool and pagination reference](docs/mcp-tools.md).
- Writes are off by default. Recurrence rules can be read, but recurring templates and instances cannot be modified. Check the [release notes](https://github.com/pachamaker/things-cloud-mcp/releases) for the version you run.
- Project reads and heading assignment are separate capabilities. See [KI-45](docs/known-issues.md) for the evidence and limits around writing heading assignments.
- This project is not affiliated with Cultured Code. A bad write through the private sync protocol can affect Things data on every device. Start with a separate account and read the [risks](docs/legal-and-risk.md) before enabling writes.

For development and verification, see the [maintainer notes](docs/maintainer-notes.md), [SDK docs](docs/sdk.md), and [project instructions](AGENTS.md). Built on [things-cloud-sdk](https://github.com/arthursoares/things-cloud-sdk).