Connect an AI assistant to HabitStack
Your AI assistant can read your HabitStack data and plan your meals for you, using your own foods, recipes and targets. Each assistant gets its own access that you control. It takes about two minutes.
What an assistant can do
- Read your calorie, protein, carb and fat targets
- Search your foods and recipes, including your household's
- Read your food log, planned meals, habits and synced Strava activities
- Save meal plans to your planner, if you allow it
- Log foods for you, if you allow it, including a meal it estimates from a photo you send it, and fix or remove log entries
- Add foods to My Foods and fix or delete your own, if you allow it
- Mark a habit done, missed or slipped for a day, if you allow it
- Add workouts to your planner with a step-by-step plan, if you allow it
- Read your PDF documents, and save new ones (such as a training plan) if you allow it
- Create new recipes and edit your own, if you allow it, with nutrition worked out from the ingredients
- Read your shopping lists, and make or edit them if you allow it, including one built from your planned meals
What it can't do
- See anyone else's account, apart from what your household already shares
- See private meals of other household members
- Change your settings, targets or password, or create, edit or delete habits
- Reach admin tools or delete your account
- See the names of habits you've hidden
1. Create a connection in HabitStack
- Open your profile (your initials, top right) and choose AI assistants under Integrations. It's also in the More menu.
- Under Connect an assistant, pick your assistant and, if you like, give the connection a name, such as "Muse on my phone".
- Choose what it may change: save meal plans and/or log food. Reading is always included.
- Press Connect and create token, then copy the token straight away: it's only shown once.
- Copy the MCP server URL too. It's
https://habitstack.co.uk/mcp.
2. Add HabitStack in your assistant
Muse
- In Muse, open the settings for connectors (also called MCP servers or tools) and add a new remote MCP server.
- Paste the server URL.
- For authentication, choose an API key or Bearer token and paste your HabitStack token.
- Save. Muse should list HabitStack's tools, such as
get_targetsandsearch_foods.
The exact menu names depend on your version of Muse.
More assistants are coming. Back in HabitStack, Test connection on a connection checks your side of the setup.
3. Ask for a plan, or send a photo
Try something like: "Using my HabitStack foods and recipes, plan my meals for next Monday to Friday so I hit my targets, then show me the plan before saving it."
Or send it a photo of your meal: "Estimate the calories and macros in this and log it as my lunch in HabitStack." This needs the log food permission.
Your assistant should ask you to approve each plan before it's saved. Saved meals appear on your planner, marked as planned by your assistant, and go into your shopping lists like any other planned meal. Ask it to replace a day's plan and it swaps out only the meals an assistant added, never the ones you planned yourself.
Switching it off
Each connection has its own controls, so changing one never affects the others.
- Pause: turn the connection's switch off. That assistant is blocked straight away; switch it back on to carry on.
- Remove: press Remove. Its token stops working straight away and can't be used again.
- Lost the token, or worried someone has it? Press Regenerate. The old token stops working, and you paste the new one into your assistant.
A token is like a password for your HabitStack data. Don't share it or paste it anywhere except your assistant. HabitStack only stores a scrambled (hashed) copy, so we can't show it to you again.