In this tutorial we connect Planbiene to an AI assistant (OpenCode) and ask the questions “What's on today?” and “Put milk on the shopping list.”. The whole thing takes only a few minutes – you need a Planbiene account, OpenCode and a terminal.

OpenCode · Planbiene MCP
You
What's on today?
🤖
Today, Nov 13.
📅 Appointments: parents' evening 19:00
✅ Open tasks: take out rubbish, pay invoice
🛒 Shopping list: milk, bread, eggs (3 items)
🗑️ Waste: residual waste tomorrow, yellow bag Friday
🎂 Birthdays: Grandma (in 4 days, 72)
📆 No holidays recorded
You
Put milk on the shopping list.
🤖
✅ Ok, Planbiene has now put milk on the shopping list.

Example: “What's on today?” and “Put milk on the shopping list” in the chat with OpenCode

Step 1 – Create a token in the app

  1. Open Planbiene and go to Settings → 🤖 AI assistant.
  2. Enter a label (e.g. “OpenCode on laptop”) and click Create token.
  3. Copy the token immediately – it is shown only once (format pb_mcp_…).

The token belongs to you personally. Whoever shares it shares your rights – not those of the household.

Step 2 – Configure OpenCode

Add to ~/.config/opencode/opencode.json (or opencode.jsonc):

{
  "mcp": {
    "servers": {
      "planbiene": {
        "type": "remote",
        "url": "https://app.planbiene.de/mcp.php",
        "oauth": false,
        "headers": {
          "Authorization": "Bearer {env:PLANBIENE_MCP_TOKEN}"
        }
      }
    }
  }
}

And set the environment variable (permanently in ~/.bashrc or ~/.zshrc):

export PLANBIENE_MCP_TOKEN='pb_mcp_…'

oauth: false is important – Planbiene offers no OAuth flow. If you do not reload the environment variable, restart the shell.

Step 3 – Check the connection

opencode mcp list

Expected: planbiene connected. Then you can get started.

Step 4 – Ask questions

Start OpenCode and ask:

  • “What's on today?” – appointments, tasks, shopping list, waste collection, birthdays, holidays, weekly plan.
  • “Put milk on the shopping list.” – the item lands in the family list.
  • “Put 500 grams of flour on the list.” – with quantity and unit.
  • “Which tasks are still open?”
  • “What are we cooking this week?”

The assistant queries Planbiene when needed and answers in natural language. Business errors (e.g. missing rights, demo limit) are shown as a hint, not as a crash.

Good to know

  • Tokens always belong to a person – child tokens see no parent modules.
  • In inactive families writing is blocked (reading stays allowed).
  • Revocation takes effect immediately – the table is read on every request.
  • MCP and Alexa share the same business logic – entries land in the same list.

More details are in the Handbook: AI assistant (MCP).