Skip to content

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.

ToolREST operationScope
list_meal_spacesGET /api/v1/meal-spacesread
get_meal_planGET /api/v1/meal-spaces/{groupId}/entriesread
add_mealPOST /api/v1/meal-spaces/{groupId}/entrieswrite
update_mealPATCH /api/v1/meal-spaces/{groupId}/entries/{entryId}write
move_mealPOST /api/v1/meal-spaces/{groupId}/entries/{entryId}/movewrite
replace_mealPOST /api/v1/meal-spaces/{groupId}/entries/{entryId}/replacewrite
get_mealGET /api/v1/meal-spaces/{groupId}/entries/{entryId}read
reorder_mealPOST /api/v1/meal-spaces/{groupId}/entries/{entryId}/reorderwrite
delete_mealDELETE /api/v1/meal-spaces/{groupId}/entries/{entryId}delete
list_recipesGET /api/v1/recipesread
search_recipesGET /api/v1/recipesread
get_recipeGET /api/v1/meal-spaces/{groupId}/recipes/{recipeId}read
create_recipePOST /api/v1/meal-spaces/{groupId}/recipeswrite
update_recipePATCH /api/v1/meal-spaces/{groupId}/recipes/{recipeId}write
preview_recipe_deletionGET /api/v1/meal-spaces/{groupId}/recipes/{recipeId}/deletion-previewread
delete_recipeDELETE /api/v1/meal-spaces/{groupId}/recipes/{recipeId}delete
copy_recipePOST /api/v1/meal-spaces/{groupId}/recipes/{recipeId}/copywrite
transfer_recipePOST /api/v1/meal-spaces/{groupId}/recipes/{recipeId}/transferdelete
set_recipe_favoritePUT /api/v1/meal-spaces/{groupId}/recipes/{recipeId}/favoritewrite
list_recipe_tagsGET /api/v1/meal-spaces/{groupId}/tagsread
import_recipe_from_urlPOST /api/v1/recipes/import-urlwrite
import_recipe_from_textPOST /api/v1/recipes/import-textwrite
create_variationPOST /api/v1/meal-spaces/{groupId}/recipes/{recipeId}/variationswrite
list_variationsGET /api/v1/meal-spaces/{groupId}/recipes/{recipeId}/variationsread
update_variationPATCH /api/v1/meal-spaces/{groupId}/variations/{variationId}write
duplicate_variationPOST /api/v1/meal-spaces/{groupId}/variations/{variationId}/duplicatewrite
preview_variation_removalGET /api/v1/meal-spaces/{groupId}/variations/{variationId}/removal-previewread
delete_variationPOST /api/v1/meal-spaces/{groupId}/variations/{variationId}/removedelete
restore_variationPOST /api/v1/meal-spaces/{groupId}/variations/{variationId}/restorewrite
promote_variationPOST /api/v1/meal-spaces/{groupId}/variations/{variationId}/promotewrite
set_preferred_variationPUT /api/v1/meal-spaces/{groupId}/recipes/{recipeId}/preferred-variationwrite
add_recipe_notePOST /api/v1/meal-spaces/{groupId}/recipes/{recipeId}/noteswrite
list_recipe_notesGET /api/v1/meal-spaces/{groupId}/recipes/{recipeId}/notesread
update_recipe_notePATCH /api/v1/meal-spaces/{groupId}/notes/{noteId}write
delete_recipe_noteDELETE /api/v1/meal-spaces/{groupId}/notes/{noteId}delete
preview_recipe_tag_changeGET /api/v1/meal-spaces/{groupId}/tags/{tagId}/change-previewread
rename_recipe_tagPATCH /api/v1/meal-spaces/{groupId}/tags/{tagId}write
delete_recipe_tagDELETE /api/v1/meal-spaces/{groupId}/tags/{tagId}delete
list_ideasGET /api/v1/meal-spaces/{groupId}/ideasread
add_ideaPOST /api/v1/meal-spaces/{groupId}/ideaswrite
schedule_ideaPOST /api/v1/meal-spaces/{groupId}/ideas/{ideaId}/schedulewrite
get_ideaGET /api/v1/meal-spaces/{groupId}/ideas/{ideaId}read
update_ideaPATCH /api/v1/meal-spaces/{groupId}/ideas/{ideaId}write
delete_ideaDELETE /api/v1/meal-spaces/{groupId}/ideas/{ideaId}delete
archive_ideaPOST /api/v1/meal-spaces/{groupId}/ideas/{ideaId}/archivewrite
restore_ideaPOST /api/v1/meal-spaces/{groupId}/ideas/{ideaId}/restorewrite
reorder_ideaPOST /api/v1/meal-spaces/{groupId}/ideas/{ideaId}/reorderwrite
link_idea_recipePUT /api/v1/meal-spaces/{groupId}/ideas/{ideaId}/recipewrite
convert_idea_to_recipePOST /api/v1/meal-spaces/{groupId}/ideas/{ideaId}/convertwrite
copy_ideaPOST /api/v1/meal-spaces/{groupId}/ideas/{ideaId}/copywrite
suggest_mealsPOST /api/v1/suggestionsread
send_ingredients_to_togetherdonePOST /api/v1/integrations/togetherdone/sendwrite

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:

OwnerEndpoints
API origin, https://api.togethermeals.appAuthorization-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.