settings.json with a key
Use Forkmate in Zed
Zed connects to remote MCP servers. Give it Forkmate’s URL and your key in the Authorization header, and Zed skips its own sign-in.
Needs a key. Zed runs on your computer, so it connects with a personal key instead of a sign-in. Make a key in Forkmate · How keys work
No Forkmate account yet? Create one free first. It takes under a minute. You make your key there.
I had two eggs and toast for breakfast.
Logged. Want me to total today so far?
Set up Forkmate in Zed
https://mcp.forkmate.ai/- Make a keyIn Forkmate, open Settings → Keys for local apps (
https://app.forkmate.ai/#keys), name the key after Zed, pick when it expires and click Make key. Copy it: Forkmate shows it once. How keys work: forkmate.ai/connect/keys/. - Add a remote serverAdd the JSON below to your user settings.json (Zed: Open Settings), not a project’s .zed/settings.json, which gets committed. Put your key in place of fmk_your_key_here.
- Give your OK onceThe first time you log, Forkmate asks once for your OK to store your food diary. Agree the way it asks, in the chat or through the link it gives you to agree on the web, then log the meal again if it wasn’t saved.
- Log your first mealIn Zed’s agent panel, say “I had two eggs and toast for breakfast.” It logs the meal with calories and macros to your Forkmate diary.
settings.json
{
"context_servers": {
"forkmate": {
"url": "https://mcp.forkmate.ai/",
"headers": {
"Authorization": "Bearer fmk_your_key_here"
}
}
}
}What you need
- A free Forkmate account (sign up). There is no paid plan.
- A recent Zed. With an Authorization header set, Zed doesn’t start its own OAuth sign-in.
Checked against the vendor’s documentation: Zed docs: MCP. Zed changes its menus often; if yours looks different, trust what it shows.
What to say first
Talk to Zed the way you’d tell a friend:
- “I had two eggs and toast for breakfast.”
- “How many calories have I had today?”
- “Make the toast two slices.”
- “What did I eat this week?”
It logs the meal with calories, protein, carbs and fat to your diary at app.forkmate.ai.
Good to know in Zed
- In Settings → AI → MCP Servers, a green dot whose tooltip says “Server is active” means Forkmate is connected.
- Zed asks before every tool call by default, Forkmate’s included.
- If Forkmate adds tools, Zed reloads the list without restarting the server.
If something goes wrong in Zed
- A Forkmate tool fails in the agent panel
- The error from Forkmate is shown in the agent’s reply; send it to hello@forkmate.ai.
Checked against Zed docs: MCP.
Forkmate shortcuts
Forkmate comes with ready-made requests for the everyday jobs: log a meal, fix the last entry, see what’s left today, log your usual, hit your protein, a weekly check-in. We haven’t found MCP shortcuts (prompts) in Zed’s menus or documentation, so type or paste the request instead.
- Log a meal (log-meal)
“Log this to my Forkmate diary: two eggs and toast with butter” - Fix my last entry (fix-last-entry)
“Fix the last thing I logged in Forkmate: it was 2 eggs, not 3” - What's left today (today-so-far)
“Show me today so far in Forkmate: my calories, protein, carbs and fat.” - Log my usual (log-my-usual)
“Log my usual breakfast to Forkmate.” - Hit my protein today (hit-protein)
“How much protein have I had today in Forkmate, and how far am I from my target of 120 g? Suggest a few foods for my remaining meals and snacks that would close the gap, using my food profile and the foods I usually eat.” - Weekly check-in (week-review)
“Give me a check-in on my last 7 days in Forkmate (get_range): calories, protein, carbs and fat per day and on average, how many days I logged, and the foods I ate most.” - Move my MyFitnessPal history (import-myfitnesspal)
“How do I move my food diary history from MyFitnessPal to Forkmate? Walk me through exporting my data for free and importing it with the guided importer described at https://forkmate.ai/migrate-from-myfitnesspal/. Don't log anything yet.” - Give Forkmate feedback (give-feedback)
“I'd like to send feedback to Forkmate. Here is what I want to say, in my own words: "the oatmeal said 900 calories for one bowl" 1. If it isn't clear yet, ask me what it is about: a bug, a feature I'd like, a food or nutrition figure that looked wrong (or a food that was matched wrongly), or something else. 2. If something important is missing (for a wrong figure: which food and what looked wrong), ask me, and add my answer in my own words. 3. Show me the note exactly as it will be sent, with its category, and wait for me to confirm. Use my words, not a summary or a rewrite. Leave out health details I didn't ask to include. 4. Once I confirm, send it with send_feedback: `message` is my words (at most 4000 characters) and `category` is one of `bug`, `feature_request`, `food_data`, `other` (`food_data` for a wrong food or figure). 5. Then just tell me it was sent. Sending it changes nothing in my diary; if I also want a logged meal fixed, help me with that separately.”
Shortcut or not, Forkmate sends Zed the same logging rules when it connects: log your own words, keep your amounts, and look foods up before estimating.
Start logging from Zed
Create your free account, connect once, and your next meal is one sentence away. No card, no paid plan.