forkable-mcp

forkable-mcp

Enables ordering and managing Forkable corporate lunches from any MCP client, including viewing menus, setting/skipping/confirming meals, and getting personalized recommendations.

Category
Visit Server

README

forkable-mcp

npm CI License: MIT MCP Runtime: Bun

Order and manage your Forkable corporate lunches from Claude, Cursor, or any MCP client. See your week, browse and search menus, get personalized picks, and set / skip / confirm meals — all from chat.

[!WARNING] Unofficial, not affiliated with Forkable. It acts on your behalf using your own Forkable session. Use your own account, at your own risk.

Features

  • šŸ“… See upcoming deliveries — status, cutoff, copay, and what's already picked
  • 🚚 Track a delivery — courier ETA, when it actually landed, and the office access notes
  • šŸ± Browse and search menus, and get personalized meal recommendations
  • āœļø Set, batch-set, remove, skip, and confirm meals — every write is dry-run until you confirm it
  • šŸ¤– Runs over stdio (your client launches it); headless-friendly for agents

Quick start

Requires Bun 1.3+ (bunx runs it — no clone needed).

1. Authenticate (imports your logged-in browser session on macOS; see Auth for other options)

bunx forkable-mcp@latest --auth --chrome

2. Add it to your MCP client

Client Add it
Claude Code claude mcp add forkable -- bunx forkable-mcp@latest
Codex codex mcp add forkable -- bunx forkable-mcp@latest
Claude Desktop / Cursor add the JSON below to the config (under mcpServers)
VS Code add the JSON below to .vscode/mcp.json (under servers)
{
  "mcpServers": {
    "forkable": { "command": "bunx", "args": ["forkable-mcp@latest"] }
  }
}

Then ask your client things like "what's for lunch this week?" or "set Tuesday to the chicken bowl."

From source instead? git clone + bun install, authenticate with bun run auth --chrome, and point your client at bun run --cwd /path/to/forkable-mcp start.

Tools

Tool Does
šŸ“… list_deliveries Your week: date, status, what's picked, whether it's still editable, copay
🚚 get_delivery_status Where lunch is: scheduled window, courier ETA, arrival time, tracking link, access notes
šŸ± get_menus Items for a delivery (pass itemId for one item's modifiers/options)
šŸ”Ž search_items Keyword search across a delivery's menus
✨ recommend_meals / explain_pick Personalized picks, and why the current meal was chosen
šŸ‘¤ get_profile The authenticated user
āœ… set_meal / set_meal_all Set the meal for a day (or several days at once)
āž– remove_meal / skip_delivery Remove one meal by id, or decline a whole day
šŸ”’ confirm_delivery Confirm (or unconfirm) a delivery

Auth

There's no API key: the server reuses a real Forkable web session. Pick one of the four below. From a clone, use bun run auth … in place of bunx forkable-mcp@latest --auth ….

Email + password

bunx forkable-mcp@latest --auth --login --email you@co.com --password '…'
# or set FORKABLE_EMAIL / FORKABLE_PASSWORD (+ FORKABLE_MFA), then: bunx forkable-mcp@latest --auth --login

The only method that survives expiry: on a 401 the server logs back in and retries. SSO-only accounts can't use it and fail fast with a message saying so. The cookie methods below cover those, but you have to re-run them whenever the session expires.

Import from your browser (macOS)

Log in at forkable.com, then pull the cookie out of the browser. Decrypting it needs your login Keychain, so approve the macOS prompt when it appears.

bunx forkable-mcp@latest --auth --chrome
bunx forkable-mcp@latest --auth --chrome --browser arc    # brave, edge, vivaldi, opera, chromium,
                                                          # chrome-beta, chrome-dev, chrome-canary

Every profile is searched and the most recently used Forkable session wins; the CLI prints which one it picked. Pin a specific profile with its directory name, not its display name: --profile "Profile 1".

Copy as cURL

"Copy as cURL" is a DevTools command: right-click a request in the Network tab, pick Copy → Copy as cURL, and DevTools puts that entire request on your clipboard as a runnable curl — URL, body, and every header, cookie included. Paste the whole thing; only the cookie: header is read.

  1. forkable.com → DevTools (<kbd>⌄⌘I</kbd> / <kbd>F12</kbd>) → Network, reload the page.
  2. Filter for graphql, right-click a POST https://forkable.com/api/v2/graphql row → Copy → Copy as cURL. Use a GraphQL request, since those are authenticated calls and always carry the session. (Windows: Copy as cURL (bash). Firefox: Copy Value → Copy as cURL.)
  3. pbpaste | bunx forkable-mcp@latest --auth, or save it and use --file ./forkable.curl.

What lands on your clipboard, truncated:

curl 'https://forkable.com/api/v2/graphql' \
  -H 'accept: application/json' \
  -H 'x-csrf-token: …' \
  -H 'cookie: _easyorder_session=abc123…; _ga=GA1.2…' \
  --data-raw '{"query":"…"}'

Paste the cookie header

Same idea, one header instead of the whole blob. Useful on Linux/Windows, or when the browser import can't find your profile. Follow steps 1–2 above, but click the request instead of right-clicking it, then copy the whole cookie: value under Headers → Request Headers. It's a long name=value; name=value; … string and must contain _easyorder_session.

FORKABLE_COOKIE='_easyorder_session=…; other=…' bunx forkable-mcp@latest --auth

The session is stored at ~/.forkable-mcp/session.json (mode 0600) and is never logged.

Configuration

All settings are environment variables (.env is auto-loaded by Bun — see .env.example). Everything is optional; with none set you authenticate interactively and there's no spend cap.

Variable Default Description
FORKABLE_EMAIL — Email for headless password login. With FORKABLE_PASSWORD, also enables auto-relogin when the session expires.
FORKABLE_PASSWORD — Password for headless login (pair with FORKABLE_EMAIL).
FORKABLE_MFA — MFA code, if your account requires one for password login.
FORKABLE_COOKIE — Headless auth for SSO-only accounts: a full forkable.com Cookie header (see Auth). Provisioned on startup if no session exists.
FORKABLE_CSRF — Pin a CSRF token instead of the auto-fetched one (rarely needed).
FORKABLE_MAX_TOTAL — Hard spend cap in dollars: a write whose total exceeds it is refused (no confirm-token). Unset = no cap; the preview just notes when a meal is over your company's daily coverage.
FORKABLE_WRITE_SECRET per-install HMAC key for write confirm-tokens. Auto-generated and stored in the session file if unset; set it to pin one across machines.
FORKABLE_MCP_HOME ~/.forkable-mcp Directory for the on-disk session (mode 0600).

Development

bun test          # unit tests
bun run test:tz   # same suite under a non-UTC zone (date formatting must be host-independent)
bun run check     # lint + format + typecheck + both test runs

License

MIT Ā© Colin D'Souza

Recommended Servers

playwright-mcp

playwright-mcp

A Model Context Protocol server that enables LLMs to interact with web pages through structured accessibility snapshots without requiring vision models or screenshots.

Official
Featured
TypeScript
Magic Component Platform (MCP)

Magic Component Platform (MCP)

An AI-powered tool that generates modern UI components from natural language descriptions, integrating with popular IDEs to streamline UI development workflow.

Official
Featured
Local
TypeScript
Audiense Insights MCP Server

Audiense Insights MCP Server

Enables interaction with Audiense Insights accounts via the Model Context Protocol, facilitating the extraction and analysis of marketing insights and audience data including demographics, behavior, and influencer engagement.

Official
Featured
Local
TypeScript
VeyraX MCP

VeyraX MCP

Single MCP tool to connect all your favorite tools: Gmail, Calendar and 40 more.

Official
Featured
Local
graphlit-mcp-server

graphlit-mcp-server

The Model Context Protocol (MCP) Server enables integration between MCP clients and the Graphlit service. Ingest anything from Slack to Gmail to podcast feeds, in addition to web crawling, into a Graphlit project - and then retrieve relevant contents from the MCP client.

Official
Featured
TypeScript
Kagi MCP Server

Kagi MCP Server

An MCP server that integrates Kagi search capabilities with Claude AI, enabling Claude to perform real-time web searches when answering questions that require up-to-date information.

Official
Featured
Python
Neon Database

Neon Database

MCP server for interacting with Neon Management API and databases

Official
Featured
E2B

E2B

Using MCP to run code via e2b.

Official
Featured
Exa Search

Exa Search

A Model Context Protocol (MCP) server lets AI assistants like Claude use the Exa AI Search API for web searches. This setup allows AI models to get real-time web information in a safe and controlled way.

Official
Featured
Qdrant Server

Qdrant Server

This repository is an example of how to create a MCP server for Qdrant, a vector search engine.

Official
Featured