MCP access and tools
MCP lets an AI client call TogetherMeals on your behalf. Both servers use the same contract catalog and forward to REST. They inherit your current permissions and require your own Pro plan or active Pro trial. The catalog contains 52 tools, a subset of the full REST API.
Connect a remote client
In a client that supports remote MCP over Streamable HTTP, add this server URL:
https://mcp.togethermeals.app/mcp
Start its connection flow, sign in to TogetherMeals, and review the app and scopes on the consent page. Approval gives that client OAuth access to your account. The server supports client discovery through metadata documents or Dynamic Client Registration, with PKCE S256. You do not need to create a personal API key for this flow.
Setup steps for specific assistants are in Connect Claude, Connect ChatGPT and Connect Grok. Grok Bot is confirmed; other Grok products are not yet.
Remote MCP accepts tm_mcp_ OAuth access tokens. API keys, refresh tokens, and client
secrets are not remote MCP bearers. A client that supports only API-key headers cannot
use this remote server. Use the local stdio option below instead.
Disconnect an authorized client in the web app at /settings/connections. Revocation
stops its tokens. Changing a Meal Space role or ending your own Pro/trial access can also
stop its tools from working. The client must still have the exact scopes each tool needs;
write does not imply read.
Run the local stdio server
The stdio server uses a personal tm_live_ or tm_test_ key. Create one through
/settings/api-keys, then build the private workspace package from a repository checkout:
pnpm --filter @togethermeals/mcp-server build
Configure your local MCP client to run the resulting entry point. Replace the absolute path and key placeholder for your environment:
{
"mcpServers": {
"togethermeals": {
"command": "node",
"args": ["/absolute/path/togethermeals/packages/mcp-server/dist/bin.js"],
"env": {
"TOGETHERMEALS_API_URL": "https://api.togethermeals.app",
"TOGETHERMEALS_API_KEY": "<your personal API key>"
}
}
}
}
Use your client's secret settings where available. TOGETHERMEALS_API_URL is an origin,
without /api/v1. It defaults to the production API origin; a local API runs at
http://localhost:3701 and needs a key created in that local instance. The stdio package
is not currently published for npx installation.
Available tools
Parameters come from the REST contract, with path, query, and JSON-body fields combined
into one tool input. For example, get_meal_plan takes groupId, from, to, and an
optional after. Writes often need the originating membership_id and other conflict
metadata. The client should inspect the tool's input schema rather than guess field names.
| Tool | REST operation | Scope |
|---|---|---|
list_meal_spaces | GET /api/v1/meal-spaces | read |
get_meal_plan | GET /api/v1/meal-spaces/{groupId}/entries | read |
add_meal | POST /api/v1/meal-spaces/{groupId}/entries | write |
update_meal | PATCH /api/v1/meal-spaces/{groupId}/entries/{entryId} | write |
move_meal | POST /api/v1/meal-spaces/{groupId}/entries/{entryId}/move | write |
replace_meal | POST /api/v1/meal-spaces/{groupId}/entries/{entryId}/replace | write |
get_meal | GET /api/v1/meal-spaces/{groupId}/entries/{entryId} | read |
reorder_meal | POST /api/v1/meal-spaces/{groupId}/entries/{entryId}/reorder | write |
delete_meal | DELETE /api/v1/meal-spaces/{groupId}/entries/{entryId} | delete |
list_recipes | GET /api/v1/recipes | read |
search_recipes | GET /api/v1/recipes | read |
get_recipe | GET /api/v1/meal-spaces/{groupId}/recipes/{recipeId} | read |
create_recipe | POST /api/v1/meal-spaces/{groupId}/recipes | write |
update_recipe | PATCH /api/v1/meal-spaces/{groupId}/recipes/{recipeId} | write |
preview_recipe_deletion | GET /api/v1/meal-spaces/{groupId}/recipes/{recipeId}/deletion-preview | read |
delete_recipe | DELETE /api/v1/meal-spaces/{groupId}/recipes/{recipeId} | delete |
copy_recipe | POST /api/v1/meal-spaces/{groupId}/recipes/{recipeId}/copy | write |
transfer_recipe | POST /api/v1/meal-spaces/{groupId}/recipes/{recipeId}/transfer | delete |
set_recipe_favorite | PUT /api/v1/meal-spaces/{groupId}/recipes/{recipeId}/favorite | write |
list_recipe_tags | GET /api/v1/meal-spaces/{groupId}/tags | read |
import_recipe_from_url | POST /api/v1/recipes/import-url | write |
import_recipe_from_text | POST /api/v1/recipes/import-text | write |
create_variation | POST /api/v1/meal-spaces/{groupId}/recipes/{recipeId}/variations | write |
list_variations | GET /api/v1/meal-spaces/{groupId}/recipes/{recipeId}/variations | read |
update_variation | PATCH /api/v1/meal-spaces/{groupId}/variations/{variationId} | write |
duplicate_variation | POST /api/v1/meal-spaces/{groupId}/variations/{variationId}/duplicate | write |
preview_variation_removal | GET /api/v1/meal-spaces/{groupId}/variations/{variationId}/removal-preview | read |
delete_variation | POST /api/v1/meal-spaces/{groupId}/variations/{variationId}/remove | delete |
restore_variation | POST /api/v1/meal-spaces/{groupId}/variations/{variationId}/restore | write |
promote_variation | POST /api/v1/meal-spaces/{groupId}/variations/{variationId}/promote | write |
set_preferred_variation | PUT /api/v1/meal-spaces/{groupId}/recipes/{recipeId}/preferred-variation | write |
add_recipe_note | POST /api/v1/meal-spaces/{groupId}/recipes/{recipeId}/notes | write |
list_recipe_notes | GET /api/v1/meal-spaces/{groupId}/recipes/{recipeId}/notes | read |
update_recipe_note | PATCH /api/v1/meal-spaces/{groupId}/notes/{noteId} | write |
delete_recipe_note | DELETE /api/v1/meal-spaces/{groupId}/notes/{noteId} | delete |
preview_recipe_tag_change | GET /api/v1/meal-spaces/{groupId}/tags/{tagId}/change-preview | read |
rename_recipe_tag | PATCH /api/v1/meal-spaces/{groupId}/tags/{tagId} | write |
delete_recipe_tag | DELETE /api/v1/meal-spaces/{groupId}/tags/{tagId} | delete |
list_ideas | GET /api/v1/meal-spaces/{groupId}/ideas | read |
add_idea | POST /api/v1/meal-spaces/{groupId}/ideas | write |
schedule_idea | POST /api/v1/meal-spaces/{groupId}/ideas/{ideaId}/schedule | write |
get_idea | GET /api/v1/meal-spaces/{groupId}/ideas/{ideaId} | read |
update_idea | PATCH /api/v1/meal-spaces/{groupId}/ideas/{ideaId} | write |
delete_idea | DELETE /api/v1/meal-spaces/{groupId}/ideas/{ideaId} | delete |
archive_idea | POST /api/v1/meal-spaces/{groupId}/ideas/{ideaId}/archive | write |
restore_idea | POST /api/v1/meal-spaces/{groupId}/ideas/{ideaId}/restore | write |
reorder_idea | POST /api/v1/meal-spaces/{groupId}/ideas/{ideaId}/reorder | write |
link_idea_recipe | PUT /api/v1/meal-spaces/{groupId}/ideas/{ideaId}/recipe | write |
convert_idea_to_recipe | POST /api/v1/meal-spaces/{groupId}/ideas/{ideaId}/convert | write |
copy_idea | POST /api/v1/meal-spaces/{groupId}/ideas/{ideaId}/copy | write |
suggest_meals | POST /api/v1/suggestions | read |
send_ingredients_to_togetherdone | POST /api/v1/integrations/togetherdone/send | write |
get_meal_plan reads one space, with an inclusive from and exclusive to date. Follow
next_after using after; it does not merge all spaces. get_recipe has no Variation
parameter. schedule_idea creates a meal while retaining the Idea. The app shows a Meal Space's
Ideas as its Rotation, so a member asking about their rotation means these tools.
list_meal_spaces is the discovery step. Each readable space has a meal_space_id, which
other tools take as groupId or meal_space_id, and your membership_id in it, which
writes take. It also returns your role, the space's availability, Planning timezone and
enabled slots, and whether it is your primary Meal Space. Follow next_cursor using
after. get_profile is not registered because there is no /api/v1/me. Recurrence,
nutrition, history and statistics queries, media uploads, recipe sharing, account and
Meal Space administration, and the grocery list/preview/retry steps remain outside
this catalog. First-party-only routes cannot be exposed to MCP credentials.
Recipe and variation removal
Use list_variations to find a variation ID and its current content. Call
preview_variation_removal before delete_variation. Removal permanently deletes an
unused variation, archives one with references, and refuses removal while a live recurring
meal uses it. The preview includes those recurring meals. Set move_notes_to_recipe=true
to preserve its notes on the recipe. Check the returned outcome; an archived variation
can be restored with restore_variation. promote_variation folds its effective content
into the recipe, moves its notes, and removes the variation with revision checks.
Use preview_recipe_deletion before delete_recipe or transfer_recipe to inspect
affected future meals and choose their resolution. Read current content before updates
and pass the REST conflict metadata. Deletion tools require the separate delete scope,
including delete_variation, whose REST operation uses POST. An existing connection
without that scope must be authorized for it before deletion can succeed. Shared-space
roles and note authorship rules still apply.
Retries and results
Tools return the REST envelope. Check its command outcome or error, not just whether the MCP call returned. A content-free receipt may require a separate read of current content.
Replayable writes offer an optional UUID idempotency_key. It becomes the REST header,
not a body field. Without one, the server reuses a key for ten minutes when the same
credential retries the same command. Supplying a stable explicit key makes an uncertain
write retry identifiable across process restarts.
Recipe imports and suggest_meals use fresh keys and offer no idempotency_key; successful
AI outputs cannot be replayed. Do not automatically call them again after a timeout.
Imports return unsaved drafts, and suggestions never write the meal plan. Saving a result
requires a separate write under the user's instruction. Although suggest_meals requires
only read scope, it also checks content-write permission and the owner's AI allowance.
Sending groceries requires an existing TogetherDone connection and reviewed ingredient lines for a selected destination. The tool does not establish the connection or expose all REST steps needed for grocery review. See the integration.
Authentication failures and hosting
The remote server checks bearer format and forwards the same access token to REST; it
never reads the database directly. Missing credentials receive an HTTP 401 challenge
pointing to protected-resource metadata. An API 401 becomes HTTP 401 with
error="invalid_token", allowing the MCP client to refresh. Other API failures stay tool
errors. GET /mcp returns 405 because this stateless server does not open a GET stream.
The public owners are:
| Owner | Endpoints |
|---|---|
API origin, https://api.togethermeals.app | Authorization-server metadata, /oauth/register, /oauth/token, /oauth/revoke |
| Web origin | /oauth/authorize consent, /settings/api-keys, /settings/connections |
MCP origin, https://mcp.togethermeals.app | /mcp, /health, /.well-known/oauth-protected-resource, and its /mcp metadata alias |
The authorization server's issuer is the API origin; its advertised consent endpoint is
on the web origin. services/mcp-remote uses the shared remote handler and is fronted by
workers/mcp-proxy. The proxy also forwards registration to the API and requires its DCR
limiter configuration. Deployment, proxy limits, credential rotation, and post-deploy
checks are in the OAuth/MCP runbook.