Kitchen MCP Server
Provides tools for managing tasks, documents, clients, companies, invoices, conversations, messages, boards, lists, folders, milestones, labels, webhooks, files, and members in Kitchen.co workspaces.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Kitchen MCP Server
A hosted, multi-tenant Model Context Protocol server that exposes the Kitchen.co client-portal API to MCP-compatible AI clients (Claude, ChatGPT, Cursor, etc.) over secure Streamable HTTP.
Per-request Kitchen credentials passed via HTTP headers — one deployment can serve many tenants without ever storing their API keys.
Dedicated typed tools for tasks, docs, clients, companies, invoices, conversations, messages, boards, lists, folders, milestones, labels, webhooks, files, and members.
kitchen_requestescape hatch for any endpoint not yet wrapped.Defence-in-depth: helmet, CORS allow-list, DNS-rebinding protection, per-tenant rate-limit, payload caps, log redaction, optional gate token.
Quick start (local)
npm install
cp .env.example .env # configure as needed
npm run build
npm start
# server is now listening on http://127.0.0.1:3000/mcpRelated MCP server: k8scortex-mcp
Quick start (Docker)
docker build -t kitchen-mcp .
docker run --rm -p 3000:3000 \
-e ALLOWED_ORIGINS=https://claude.ai \
-e MCP_GATE_TOKEN=$(openssl rand -hex 32) \
kitchen-mcpHow clients connect
Point any MCP client at https://<your-host>/mcp (Streamable HTTP transport). Send the following headers on every request:
Header | Required | Description |
| yes (per-tenant) | Kitchen bearer token from Settings → API & Webhooks → API Tokens |
| yes (per-tenant) | Workspace subdomain (e.g. |
| required if | Optional shared bearer that gates access to the MCP endpoint itself |
| no | Only meaningful when |
Both Kitchen headers may instead be supplied via the KITCHEN_API_KEY / KITCHEN_WORKSPACE env vars for single-tenant deployments.
Sessions are off by default
The server answers every request on its own, without needing to have
seen an initialize from that client first. This is deliberate.
MCP session state lives in the serving process's memory. On a serverless host — Vercel, Lambda, Cloud Run scaled to zero — the next request lands in different memory, so a session id minted by one request 404s on the next, and the client reports the connector as randomly broken. Nothing this server does needs session affinity: there are no subscriptions, no sampling, no server-initiated messages.
Consequences worth knowing:
initializereturns noMcp-Session-Id, and a stale one from before a redeploy is ignored rather than refused.GET /mcpanswers405— there is no standalone SSE stream to open. Clients treat this as "no server-initiated messages", which is true.Responses are plain JSON, not a one-message SSE stream. More proxies and hosted clients handle that correctly.
Replies tolerate
Accept: application/jsonalone, which several real clients send despite the spec asking for both media types.
Set MCP_SESSIONS=1 only on a single long-lived process (Fly.io,
a container, a VM).
Claude Desktop example
{
"mcpServers": {
"kitchen": {
"transport": {
"type": "http",
"url": "https://kitchen-mcp.example.com/mcp",
"headers": {
"Authorization": "Bearer YOUR_MCP_GATE_TOKEN",
"X-Kitchen-API-Key": "kc_live_xxxxxxxxxxxxxxxx",
"X-Kitchen-Workspace": "acme"
}
}
}
}
}Grok (xAI)
Two different routes, depending on what "Grok" means here.
The Grok app (grok.com) — Connectors → New Connector → Custom,
then paste https://<your-host>/mcp. Grok's servers call the URL from
the public internet, so the host must be publicly reachable; a localhost
server needs a tunnel. Authentication is whatever the server asks for,
which for this one is the OAuth flow at /oauth/authorize (so
MCP_GATE_TOKEN must be set — it doubles as the login password).
The xAI API — Grok connects to MCP servers itself when you pass one
in the tools array. No OAuth needed: authorization sets the
Authorization header and extra_headers carries the rest, so the
static-token path works directly.
from xai_sdk import Client
from xai_sdk.chat import user
from xai_sdk.tools import mcp
client = Client(api_key=os.environ["XAI_API_KEY"])
chat = client.chat.create(
model="grok-4.7",
tools=[
mcp(
server_url="https://<your-host>/mcp",
server_label="kitchen",
server_description="Kitchen.co client portal and the deliverable workflow.",
authorization=os.environ["MCP_GATE_TOKEN"],
extra_headers={
"X-Kitchen-API-Key": os.environ["KITCHEN_API_KEY"],
"X-Kitchen-Workspace": "acme",
},
# Omit to expose all ~120 tools. Naming them keeps the model
# focused and, for a read-only subset, keeps it harmless.
allowed_tool_names=[
"workflow_board_status",
"workflow_get_deliverable",
"workflow_compliance_preview",
"kitchen_list_boards",
"kitchen_list_tasks",
],
)
],
)
chat.append(user("What is sitting in compliance review?"))
print(chat.sample().content)On the OpenAI-compatible Responses API the same thing is
{"type": "mcp", "server_url": ..., "server_label": ..., "authorization": ..., "headers": {...}, "allowed_tools": [...]}. require_approval and
connector_id are not supported there.
Note that ALLOWED_ORIGINS does not gate either route: a
server-to-server caller sends no Origin header and is allowed through
by design. Endpoint access is MCP_GATE_TOKEN's job.
Security model
Layer | Control |
Transport | HTTPS terminated upstream; the server speaks plain HTTP behind your load balancer. |
Endpoint access | Optional shared bearer gate ( |
Tenancy | Kitchen API key + workspace are per request; never persisted; redacted from logs. |
Origin | DNS-rebinding protection enforced by the MCP SDK transport; CORS allow-list configurable. |
Rate limiting | 60 req/min default (matches Kitchen's published limit); per-tenant fingerprint to keep tenants isolated. |
Payload | JSON body capped at 1 MiB; Kitchen response bodies capped at 2 MiB before parsing. |
Path safety |
|
Process | Container runs as non-root with healthcheck. |
Note: You still need to terminate TLS upstream (Cloud Run, Fly.io, Vercel, nginx, ALB, etc.). The server is designed to sit behind a proxy.
Available tools
147 kitchen_* tools covering the API surface. Call tools/list for the
schema-rich catalogue.
The 19 workflow_* tools are disabled. They are a layer on top of the
API — deliverable state machine, approval gates, political-ad compliance
engine, evidence register — built against a brief that is now closed. The
code is still in src/workflow/ and is inert: nothing registers the tools
and nothing in the webhook path calls it. Set WORKFLOW_TOOLS=1 to turn
them back on.
Tasks: list/get/create/update/delete, toggle completion, move
Subtask lists and subtasks: full CRUD. A subtask needs a subtask list, so create or pick one first
Task comments, notes, labels, members, custom field values: full CRUD
Custom fields: definitions per board, values per task
Boards, lists, folders, milestones: CRUD + move/archive/restore
Labels: CRUD, per board
Docs: CRUD + move/archive/restore, plus memberships
Conversations, messages, conversation notes: CRUD + move/archive/restore
Clients and companies: full CRUD
Invoices and recurring invoices: CRUD + move/archive/restore
Templates, members, files, webhooks: CRUD
Low-level:
kitchen_request— any/api/...path
The deprecated Cards API (/api/cards and its card-labels, card-members
and card-custom-fields siblings) is deliberately not exposed; Kitchen
documents it as scheduled for removal in favour of Tasks.
Shape of the API, which is not the obvious one
Worth knowing before adding a tool, because none of these produce a type error — they produce a 404, a 422, or a 200 that silently ignored the field you sent:
Expectation | Reality |
| Every update is |
Labels are workspace-wide | Board-scoped: |
Custom fields are workspace-wide | Defined per board; values set per task |
|
|
|
|
|
|
| Required on create for every container |
Everything has a | Folders, subtask lists and templates take |
A task has | One |
A task has |
|
Comments just need content |
|
An invoice has a | Neither. Due is |
A file upload takes name/size/type | Only |
A doc membership's role is optional | Required, and it takes |
scripts/test-api-contract.mjs asserts all of this from the tool
definitions, with no network calls, so the next slip fails the build
instead of a request.
Webhook sink
Every verified event is written to a Vercel Blob store, private access, one JSON object per event:
kitchen/2026-11-07/1794033900123-evt_c68457a659fe0eb1b45f0fb2.jsonWhy this is not optional. Parts of Kitchen have no read API.
/api/files/{id}/threads, /api/files/{id}/comments and
/api/file-threads all 404, and the file object refuses to expand
threads — the docs describe file-threads/thread-object and
file-comments/comment-object and list no endpoints for either. So when
a client comments on a piece of creative, the webhook payload is the
only copy of what they said that exists outside the Kitchen UI. Verify
it, log its id, drop the body, and the comment is gone.
Logs are not a substitute: they expire on the host's schedule, they are searchable only as text, and the payload log truncates at 8 KiB.
The key is derived from the event id with no random suffix, so a Kitchen retry rewrites the same object with the same bytes. That makes capture idempotent across instances, which the in-memory dedupe store cannot be on a serverless host.
Read it back with kitchen_events_list, kitchen_events_get and
kitchen_events_search — the last takes type, category and a
contains text match over the payload.
Setup
Attach a Blob store to the project: Vercel → Storage → Create → Blob,
private, then connect it to this project. That injects
BLOB_READ_WRITE_TOKEN automatically, so there is no env var to set by
hand. Redeploy and GET /healthz shows webhookSink.enabled: true.
With no store attached the sink is a no-op and the server behaves as it did before, rather than failing every delivery.
Webhook receiver
This server also runs a verified Kitchen-webhook ingress at POST /webhooks/kitchen. It is off by default — enable it by setting KITCHEN_WEBHOOK_SECRETS.
Set up
In Kitchen, create a webhook (Settings → API & Webhooks → Webhooks) pointed at
https://<your-host>/webhooks/kitchen, subscribe to the events you want, and copy the generatedsecret.Set
KITCHEN_WEBHOOK_SECRETS=<secret>on the server. Multiple secrets (comma-separated) are supported so you can run several Kitchen workspaces or rotate without downtime — the receiver tries each in constant time.(Optional) Set
KITCHEN_WEBHOOK_FORWARD_URLif your actual handler lives elsewhere. The verifier POSTs the verified event JSON to that URL with an optionalX-Forward-Tokenheader (KITCHEN_WEBHOOK_FORWARD_TOKEN).
Guarantees
Signature verification. HMAC-SHA256 over the raw request bytes as received, compared in constant time. Matches Kitchen's best-practices doc exactly. Re-encoding the body is not used — that would be fragile across JSON serializers.
Idempotency. Each
event.idis processed at most once in a 24-hour window (Kitchen retries up to 3 times with backoff). Duplicates ack 200 so Kitchen stops retrying.Asynchronous dispatch. The receiver acks Kitchen as soon as the signature and shape are verified; downstream forwarding is fire-and-forget so a slow consumer can't time out the webhook.
Body cap. 1 MiB hard cap.
No rate-limit on the webhook path. Kitchen's retries should never be dropped at the edge.
Response codes
Code | Meaning |
| Verified, accepted, dispatching now. |
| Replay of an event we already processed. |
| Missing or wrong |
| Malformed payload. |
|
|
Extending the dispatcher
By default the dispatcher just logs the event and (optionally) forwards it. To wire in your own handler, edit src/webhooks/dispatcher.ts — WebhookDispatcher.dispatch(event) is the single integration point. Switch on event.type (e.g. task.created, invoice.paid, client.updated) and call your code from there.
async dispatch(event: KitchenWebhookEvent): Promise<void> {
switch (event.type) {
case "invoice.paid": await onInvoicePaid(event.data); break;
case "task.created": await onTaskCreated(event.data); break;
case "client.updated": await onClientUpdated(event.data, event.previous_attributes); break;
default: logger.debug({ type: event.type }, "unhandled webhook");
}
}Verifying locally
SECRET='whsec_...your_secret...'
PAYLOAD='{"id":"evt_test","type":"task.created","created":1719322973,"data":{}}'
SIG=$(node -e "const c=require('crypto');process.stdout.write(c.createHmac('sha256','$SECRET').update('$PAYLOAD').digest('hex'))")
curl -X POST http://127.0.0.1:3000/webhooks/kitchen \
-H "Content-Type: application/json" \
-H "Signature: $SIG" \
--data "$PAYLOAD"Deployment recipes
Fly.io
fly launch --no-deploy --copy-config --name kitchen-mcp
fly secrets set MCP_GATE_TOKEN=$(openssl rand -hex 32) \
ALLOWED_ORIGINS=https://claude.ai
# One long-lived process, so stateful sessions are safe here.
fly secrets set MCP_SESSIONS=1
fly deployGoogle Cloud Run
gcloud run deploy kitchen-mcp \
--source . \
--region us-central1 \
--port 3000 \
--set-env-vars=ALLOWED_ORIGINS=https://claude.ai \
--set-env-vars=TRUST_PROXY=1 \
--set-secrets=MCP_GATE_TOKEN=kitchen-mcp-gate:latestRender / Railway / Heroku
Standard Node web service — set PORT, ALLOWED_ORIGINS, MCP_GATE_TOKEN, run npm start.
Vercel
src/server.ts is the entrypoint. It imports buildApp from the
pre-built dist/http.js rather than from src/, because @vercel/node
runs its own tsc pass with different compiler options and will not
build the TypeScript sources correctly.
Leave MCP_SESSIONS unset. Serverless functions do not share memory
between invocations, so stateful MCP sessions break on the first cold
start. GET /healthz reports mcp.sessions and mcp.gated so you can
confirm what the deployed function actually has.
Development
npm install
npm run dev # tsx watch
npm run typecheck
npm test # workflow logic + HTTP transportscripts/test-workflow.mjs covers the state machine, gates, compliance
rules, the metadata and evidence codecs, and the AU state regimes.
scripts/test-api-contract.mjs asserts every tool's method, path and
payload keys against what developer.kitchen.co documents — see the table
above — and carries a manifest of all 51 documented resource families
with a disposition for each, so the gap is recorded in the repo rather
than in somebody's memory. It reads the declared request specs rather
than issuing requests, so it is fast and offline.
What it does not prove. It checks the code against our reading of the documentation. It does not check the documentation against the live API, and it issues no requests.
That distinction is not theoretical. A smoke test against a real workspace on 2026-11-07 found three places where the documentation is simply wrong, one of which the doc-driven audit had actively broken:
Documented | Actual |
| The API rejects it and requires |
Subtask list ids look like | They are |
|
|
The label one matters most: the original code sent color and was
right. The audit changed it to hex_color because the documentation
said so, which turned a working call into a 422. Reading the docs is
necessary and is not sufficient, and where the two disagree the live API
wins and the code carries a comment saying so.
scripts/test-transport.mjs boots the real app on an ephemeral port and
exercises /mcp the way awkward clients do: a stingy Accept header, a
stale session id, a tools/call with no preceding initialize, a bare
GET, a missing gate token. Those are the failures that read as "the
connector is broken", and none of them is visible from testing the tools
directly.
Rate limits
Kitchen itself caps API usage at 60 requests/minute/user (200 with a raised limit) and 5 file uploads/minute. The MCP server applies its own per-tenant 120 req/min default at the HTTP edge; tune via HTTP_RATE_LIMIT_PER_MINUTE. Retries on 429/5xx use the Retry-After header when present.
License
MIT
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Hosted MCP server for live public-data APIs and Skills for AI agents.
MCP server for your apps' tools and custom tools, plus hosted AI agents and approval-gated workflows
MCP server that lets your AI assistant build and deploy apps, hosting each one at a live URL.
Hosted MCP server for Cliniko — patients, appointments, availability, and invoices for AI agents.
Related MCP Servers
- FlicenseNot gradedqualityDmaintenanceHosted MCP server that exposes Flowya tasks, spaces, and weekly goals to AI clients like Cursor, Claude, and Cowork with per-user authentication and isolation.-
- AlicenseBqualityBmaintenanceA production-grade MCP server providing a secure, natural-language interface to Kubernetes for developers and AI agents, with multi-cluster routing, OIDC authentication, RBAC, and audit logging.7571 npm1MIT
- AlicenseNot gradedqualityCmaintenanceAn MCP server that acts as a secure, multi-tenant proxy to the InvoiceShelf API, enabling AI assistants to manage invoices, estimates, customers, payments, expenses, and more with 109 tools and TOON compression for efficient token usage.GPL 3.0
- AlicenseNot gradedqualityDmaintenanceA self-hosted MCP server that provides AI assistants with secure access to multiple QuickBooks Online company files through a single connection, featuring a company registry, OAuth-based authorization, and comprehensive read/write tools.1MIT