Things Cloud MCP — Convex edition
by daviz00
README.md
# Things Cloud MCP — Convex edition
A self-hostable MCP server that lets AI assistants (Claude, ChatGPT, or any MCP client) read and manage your **Things 3** to-dos through **Things Cloud**. No Mac needs to be running.
This is a port of [wbopan/things-cloud-mcp](https://github.com/wbopan/things-cloud-mcp) (MIT) from Cloudflare Workers to [Convex](https://convex.dev). The Things Cloud client, sync engine and all 23 tools in `src/` are unchanged from upstream; only the hosting layer was rewritten.
## How it runs on Convex
| Cloudflare original | Convex port |
| --- | --- |
| Worker router + OAuth 2.1 server | HTTP actions (`convex/http.ts`) |
| D1 tables (clients, codes, tokens, credentials, diagnoses) | Convex tables (`convex/schema.ts`, `convex/db.ts`) |
| One Durable Object per account (serialized ops, SQLite graph) | Lease lock row per account + task-graph JSON snapshot in file storage, guarded by a version compare-and-swap (`convex/account.ts`) |
| Things sync / tools | Same code in `src/`, run in a Node action |
Every operation on an account still runs alone, which preserves the upstream fail-closed sync guarantees (see `AGENTS.md`).
## Deploy your own
```bash
npm install
npx convex deploy # creates/uses your Convex project
npx convex env set --prod JWT_SECRET "$(openssl rand -base64 48)"
npx convex env set --prod CREDENTIALS_KEY "$(openssl rand 32 | base64 | tr '+/' '-_' | tr -d '=\n')"
```
Your MCP URL is `https://<your-deployment>.convex.site/mcp`.
## Connect a client
- **Claude.ai / Claude desktop:** Settings → Connectors → Add custom connector → paste the MCP URL. Sign in with your Things Cloud email and password on the page that opens.
- **Claude Code:** `claude mcp add --transport http things https://<your-deployment>.convex.site/mcp`, then `/mcp` to sign in.
- **Other MCP clients:** use the URL with OAuth, or send `Authorization: Basic base64(email:password)`.
## Caveats
This writes through a reverse-engineered, unofficial Things Cloud protocol. Keep a Things backup. Your Things password is stored AES-GCM encrypted in your own Convex deployment; refresh tokens are stored only as hashes.
## Development
```bash
npm run dev # convex dev against your dev deployment
npm run check # typecheck + upstream session tests against a fake Things Cloud
```
This server cannot be deployed
Maintenance
ActivityMaintained
ResponsivenessNo recent community issues