ManaWG MCP
<h1 align="center">ManaWG MCP</h1>
<p align="center">
Your shared flat, for your AI assistant: expenses, balances, cleaning rota, shopping list,
supplies, noticeboard, chat and calendar of <a href="https://manawg.com">ManaWG</a>, as tools for
Claude, ChatGPT, Cursor and other MCP clients.
</p>
<p align="center">
<a href="#connect-an-agent"><strong>Connect an agent</strong></a> ·
<a href="docs/tools.md">Tools</a> ·
<a href="docs/self-hosting.md">Self-host</a> ·
<a href="#how-it-works">How it works</a> ·
<a href="CONTRIBUTING.md">Contribute</a>
</p>
<p align="center">
<a href="https://github.com/Abuarchiv/manawg-mcp/actions/workflows/ci.yml"><img src="https://github.com/Abuarchiv/manawg-mcp/actions/workflows/ci.yml/badge.svg" alt="CI"></a>
<a href="https://github.com/Abuarchiv/manawg-mcp/releases/latest"><img src="https://img.shields.io/github/v/release/Abuarchiv/manawg-mcp?label=release" alt="Latest release"></a>
<a href="https://registry.modelcontextprotocol.io/v0/servers?search=com.manawg/mcp"><img src="https://img.shields.io/badge/MCP_Registry-com.manawg%2Fmcp-black" alt="MCP Registry: com.manawg/mcp"></a>
<a href="https://github.com/Abuarchiv/manawg-mcp/pkgs/container/manawg-mcp"><img src="https://img.shields.io/badge/image-ghcr.io-2496ED?logo=docker&logoColor=white" alt="Container image on GHCR"></a>
<a href="LICENSE"><img src="https://img.shields.io/badge/license-Apache--2.0-blue.svg" alt="License: Apache-2.0"></a>
</p>
[ManaWG](https://github.com/Abuarchiv/manawg) is the free, open-source app for shared flats
(*WG*, from the German *Wohngemeinschaft*). This server lets an assistant work with your flat the
way you do in the app: it reads what is due, books what you just paid, puts milk on the list, and
tells you who owes whom.
## Connect an agent
Use the hosted server at **`https://mcp.manawg.com/mcp`**. Your client opens the browser, you
sign in to ManaWG and allow the assistant. There is no key to copy and nothing to install.
| Client | How to add it |
| --- | --- |
| **Claude Code** | `claude mcp add --transport http manawg https://mcp.manawg.com/mcp` |
| **Claude** (web, desktop) | Settings → Connectors → Add custom connector, URL `https://mcp.manawg.com/mcp` |
| **ChatGPT** | Settings → Apps & Connectors → Advanced settings → Developer mode, then Create with the URL and OAuth |
| **Cursor, VS Code, others** | Add a streamable HTTP server with the URL `https://mcp.manawg.com/mcp` |
No ManaWG account yet? Create one and a flat at [app.manawg.com](https://app.manawg.com), or let
the assistant call `wg_create` once you are signed in.
### Things to ask
- *"What is due in the flat this week?"*
- *"I paid 42.80 € for groceries, split it between everyone except Jonas."*
- *"Who owes whom, and what is the smallest number of payments to settle up?"*
- *"Put oat milk and dish soap on the shopping list."*
- *"I'm away from the 12th to the 19th, take me off the cleaning rota."*
- *"Write a friendly reminder for the open balances, but don't send it."*
## What the assistant can do
The assistant acts as your account, in all your flats, with the same rights you have in the app.
- **It can** read everything you can see, create and edit expenses, fixed costs, shopping items,
supplies, chores, posts, chat messages, events and absences, and settle debts the way the app
does.
- **It cannot** delete a flat, change your account or sign-in, or move money. ManaWG never moves
money; settling up only records what you paid each other.
- **The hosted server leaves out all 22 destructive tools**: deleting expenses, posts or items,
changing flat or member settings, sending reminders, committing or undoing imports, emailing or
revoking invites and rotating or revoking the calendar feed. Read tools carry
`readOnlyHint`, so clients can ask before every other call.
- **You stay in control.** Every assistant you connected is listed in the app under
Settings → Access, and you can disconnect each one there.
The full list of 87 tools, 13 resources and 4 prompts is in [docs/tools.md](docs/tools.md).
| Area | Examples |
| --- | --- |
| Overview | `wg_overview`, `dashboard_get`, `activity_get`, `export_get` |
| Money | `expense_create`, `balances_get`, `settlement_preview`, `cash_payment_record` |
| Fixed costs | `recurring_list`, `recurring_create`, `recurring_advance` |
| Shopping and supplies | `shopping_add`, `shopping_set_bought`, `shopping_update`, `inventory_consume` |
| Cleaning rota | `chores_list`, `chore_get`, `chore_complete`, `chore_complete_undo` |
| Noticeboard and chat | `note_create`, `chore_swap_request`, `note_comment`, `chat_send`, `chat_unread` |
| Calendar and absences | `events_list`, `event_create`, `event_occurrence_change`, `absence_create` |
| Flatmates and imports | `invite_create`, `invite_email`, `import_preview`, `import_undo` |
| Prompts | `daily_brief`, `shopping_run`, `payment_reminder`, `settlement_plan` |
## How it works
```mermaid
sequenceDiagram
autonumber
participant C as MCP client
participant M as mcp.manawg.com
participant S as Supabase Auth
participant A as app.manawg.com
C->>M: POST /mcp
M-->>C: 401 + protected resource metadata
C->>S: register client, start sign-in (PKCE)
S->>A: consent page
A-->>S: user signs in and allows
S-->>C: access token
C->>M: POST /mcp with bearer token
M->>M: verify token against the JWKS
M->>A: same call to the app API, with the token
A-->>M: data, checked against your membership
M-->>C: tool result
```
The server is an OAuth 2.1 resource server as the
[MCP authorization spec](https://modelcontextprotocol.io/specification/2025-11-25/basic/authorization)
describes it. Supabase Auth, which already runs the app's sign-in, is the authorization server.
The MCP server stores nothing: it checks each token and forwards it, and the app applies the same
membership checks as for your phone.
Each tool calls exactly one route of the app API. Money is in integer cents, every write carries
an idempotency key so a retried request is never booked twice, and writes that could race with a
flatmate fail instead of overwriting (`chore_occurrence_changed`, `shopping_item_changed`). Errors
come back as a code from a fixed allowlist, such as `ManaWG request failed: splits_sum_mismatch`.
Only validation errors add a truncated field-level detail. Upstream messages, URLs and credentials
are never forwarded.
## Self-host
Run it on your own machine for a local agent over stdio, behind an API key over HTTP, or as your
own OAuth server in front of your own ManaWG instance.
```bash
git clone https://github.com/Abuarchiv/manawg-mcp.git && cd manawg-mcp
pnpm install && pnpm build
mkdir -p ~/.config/manawg-mcp && cp .env.example ~/.config/manawg-mcp/env
chmod 600 ~/.config/manawg-mcp/env # then fill in your instance and account
claude mcp add manawg -- node --env-file="$HOME/.config/manawg-mcp/env" "$(pwd)/dist/index.js"
```
Or with Docker: `ghcr.io/abuarchiv/manawg-mcp` (`linux/amd64`, `linux/arm64`).
The [self-hosting guide](docs/self-hosting.md) covers both auth modes, every environment variable,
the HTTP transport, Docker and the Vercel deployment behind `mcp.manawg.com`.
## Develop
You need Node.js 22 and pnpm 9. Tests, lint and typecheck need no credentials.
```bash
pnpm lint # Biome
pnpm typecheck # tsc --noEmit
pnpm test # Vitest: flows against a stateful stub app, API surface, OAuth
pnpm build # compile to dist/
pnpm smoke # stdio handshake against dist/
pnpm live-check # read-only probes against a real instance (credentials required)
```
The tests run the real server, client and session code against a stub of the app that enforces
its rules (Origin, cookies, idempotency keys, optimistic locking, strict bodies), and an API
surface check keeps every tool mapped to a route the app actually has.
## Contributing
Issues and pull requests are welcome. Read [CONTRIBUTING.md](CONTRIBUTING.md) and the
[Code of Conduct](CODE_OF_CONDUCT.md) first. Problems with the app itself belong in the
[app repository](https://github.com/Abuarchiv/manawg/issues/new/choose). Report security problems
privately, see [SECURITY.md](SECURITY.md). Changes are listed in [CHANGELOG.md](CHANGELOG.md).
## License
[Apache License 2.0](LICENSE), like the [ManaWG app](https://github.com/Abuarchiv/manawg). The
licence does not grant rights to the name ManaWG or its logo.
TDQS
Scored across 65 tools
Descriptions carefully distinguish many pairs, but the large set still has several close boundaries: settlement_preview/settlement_commit/cash_payment_record/expense_split_settle, chat_messages/chat_unread/chat_mark_read, notes_list/note_comments, and inventory_consume/inventory_update. An agent can usually choose correctly after reading the long descriptions, but the names alone do not make the choices obvious.
Most tools follow a snake_case verb_noun style, but resource naming varies between plural list tools and singular get/update tools, such as chores_list vs chore_get and events_list vs event_create. A few names are not verb-first, like cash_payment_record and expense_split_settle, but the overall pattern remains readable.
With 65 tools, the server is far beyond the recommended 3-15 range and crosses the 50+ threshold where tool discovery and selection become unwieldy. Flat management is broad, but this surface should be split into smaller domain-focused servers.
Core read/create/update workflows are covered across many domains, but several described lifecycle operations are missing from the actual tool surface: shopping_remove, expense_delete, event_delete, note_delete/comment delete, absence_delete, invite_revoke, recurring_delete, member_update/wg_update, inventory_remove, and reminder_send. These gaps will block common delete, revoke, admin, and reminder workflows.