Connect Grok
Grok Bot connects to TogetherMeals: it runs the TogetherMeals sign-in for a server added by URL (confirmed on 2026-11-18). Other Grok products can add custom MCP servers too, but the TogetherMeals server accepts only an OAuth sign-in, and those haven't been confirmed yet. xAI documents that sign-in for Grok Build, its coding agent, and not for the Grok chat app. The xAI API can't connect with a TogetherMeals API key.
This page covers what to try in each Grok product, and how to tell whether it worked.
Which Grok products can connect
| Grok product | Adds a custom MCP server | Status with TogetherMeals |
|---|---|---|
| Grok on grok.com, iOS and Android | Yes, as a custom connector | Not confirmed. xAI doesn't say which sign-in methods custom connectors support. |
| Grok Build | Yes | Likely. xAI says it handles OAuth sign-in for remote servers. Not yet tested with TogetherMeals. |
| Grok Bot | Yes, by URL | Works. Confirmed on 2026-11-18: the Bot runs the TogetherMeals sign-in. |
| xAI API | Yes, as a remote MCP tool | Doesn't work with an API key. The API sends a fixed token and has no OAuth sign-in. |
What you need
- Your own TogetherMeals Pro plan or an active Pro trial. A Sponsor's Pro plan on a shared Meal Space doesn't give your account this access.
- For Grok, a Grok account. xAI says connectors are available to all Grok users. On Grok Business and Enterprise, a team admin adds a connector before members can use it.
- For Grok Bot, a plan that includes it. xAI lists Premium, Super and Ultra on The X Subscription, and paid Cursor plans.
How TogetherMeals signs you in
The server at https://mcp.togethermeals.app/mcp accepts only access tokens from its own
OAuth sign-in. The client registers itself, sends you to TogetherMeals to sign in, and you
approve access on a consent page. The server doesn't accept TogetherMeals API keys
(tm_live_ or tm_test_) or any other fixed header. A Grok product can connect only if it
runs this sign-in. See MCP setup.
Try Grok on the web
-
Go to grok.com/connectors.
-
Choose New Connector, then Custom.
-
Enter this server URL:
https://mcp.togethermeals.app/mcp -
Complete the sign-in Grok asks for.
If Grok sends you to a TogetherMeals sign-in and consent page, the connector can work. Approve access as described below. If Grok asks for an API key, a token or a header instead, stop there. TogetherMeals can't connect that way, and a TogetherMeals API key won't work.
On Grok Business and Enterprise, a team admin adds the server first. In console.x.ai, they select the team, go to Grok Business > Connectors, choose + Add Connector, select Other, enter the server URL, and complete any required authentication. Members can then connect it at grok.com/connectors.
xAI says connectors are also available in the Grok apps for iOS and Android, under Settings > Connectors. xAI documents adding a custom connector only on grok.com.
Use Grok Build
Grok Build is xAI's coding agent. xAI says it runs the OAuth sign-in for remote servers in your browser the first time you use them. Add the server from a terminal:
grok mcp add --transport http togethermeals https://mcp.togethermeals.app/mcp
Approve access when TogetherMeals opens in your browser. In Grok Build, /mcps lists your
servers. Press i there to sign in to a server again. grok mcp remove togethermeals
removes it.
Grok Build also runs local stdio servers. If you have a repository checkout, you can use
the local stdio server with a personal API key
instead. Build it, then add it to ~/.grok/config.toml:
[mcp_servers.togethermeals]
command = "node"
args = ["/absolute/path/togethermeals/packages/mcp-server/dist/bin.js"]
env = { TOGETHERMEALS_API_URL = "https://api.togethermeals.app", TOGETHERMEALS_API_KEY = "${TOGETHERMEALS_API_KEY}" }
Grok Build reads ${TOGETHERMEALS_API_KEY} from your environment, so the key stays out of
the file.
Use Grok Bot
A Bot can add an MCP server that isn't in its app catalog by URL. Ask your Bot to add
https://mcp.togethermeals.app/mcp. It shows a Connect card or asks you to
authenticate; finish the TogetherMeals sign-in in your browser and approve access as
described below.
The xAI API
Developers can give the xAI API a remote MCP server as an mcp tool. The API sends the
authorization value and headers you supply. It doesn't run an OAuth sign-in, so a
TogetherMeals API key in that field fails. An app could run the TogetherMeals
OAuth flow itself and pass the access token.
Access tokens last an hour, so the app would have to refresh them.
Approve access
When Grok sends you to TogetherMeals, sign in and read the consent page before you approve.
- If Grok registered itself, the page warns that TogetherMeals hasn't verified the app. Approve only if you just started this connection.
- The page lists what Grok will be able to do. Grok needs Read and Write. Every
TogetherMeals tool uses one of the two, and
writedoesn't includeread. The page may also list Delete. No tool uses it today. - Choose Approve. If the page says you need Pro, it offers a free trial when you're eligible.
Tell Grok which Meal Space to use
Most tools work on one Meal Space. Grok finds yours with the list_meal_spaces tool,
which also returns the Membership ID that planning a meal, adding a recipe or adding to
your Rotation needs. If you have more than one Meal Space, say which one you mean:
Use my Family Meal Space in TogetherMeals.
The list also marks your primary Meal Space, so you can ask Grok to use that one. Searching your recipe library doesn't need a Meal Space.
Example requests
- "Which Meal Spaces do I have in TogetherMeals?"
- "What's planned for dinner this week?"
- "Find my recipes that use chickpeas."
- "Add vegetable tacos to Thursday's dinner."
- "What's in our Rotation? Schedule one of them for Sunday."
Disconnect
In TogetherMeals, open the web app and go to Settings > Connected apps. Choose Disconnect next to the Grok connection. This revokes its access at once, whatever Grok's own settings say. xAI doesn't document how to remove a custom connector from Grok.
Troubleshooting
- Grok asks for an API key or a header. That Grok product can't connect to TogetherMeals. Use Grok Bot, or try Grok Build or the local stdio server.
- Grok asks you to reconnect, or a tool fails with 401. The connection's access ended.
You disconnected it in TogetherMeals, it went unused for 30 days, or your Pro access
ended. Sign in again from the connector in Grok, or press
iunder/mcpsin Grok Build. - Your Pro plan or trial ended. Tools stop working on the next request. The consent page offers Approve only to an account with Pro or an active trial. Subscribe again, then reconnect.
- A tool fails with 403. The connection is missing a scope, or your role in that Meal Space doesn't allow the change. Disconnect, connect again, and check that the consent page lists Read and Write.