Skip to content
Select language:English

Connect an AI client (MCP)

Kept runs an MCP server at your Kept’s address followed by /mcp, for example https://kept.example.org/mcp. An AI app that speaks MCP can then answer “where is the drill?” from your inventory and, if you allow it, add, move and change things.

Claude Code connected to Kept: “Add my TV to the Living room: Samsung QE55Q80C, serial number 0B7H3CJT500123”, and Claude’s reply that the TV is in Kept under Home › Living room

This page is about apps outside Kept. Kept’s own assistant uses the same tools and is covered in AI providers. How the server works inside is in MCP server.

There are two ways to connect an app:

  • A personal token: any MCP client that lets you set a server address and an Authorization header.
  • A connector (OAuth): the app sends you to Kept to sign in and choose what it may do. This needs Kept at an https address the app can reach.
  • Turn on “Connect ChatGPT or Claude” in each location the app should reach. It is under Location settings → What to track, and is on in the Complete preset only. The owner and admins change it. In a location where it’s off, a token or connector reaches nothing.
  • The app makes tokens only over https. Settings → Connections refuses to make a token when KEPT_PUBLIC_URL is plain http. There is no setting to turn this off. See HTTPS. On a home network over http, the person who runs the server can make one there instead: kept admin token create.

Open Settings → Connections and choose New token.

Field What to put
Name Where you’ll use it: “Claude Desktop, my laptop”.
Locations One is ticked for you. Add another only if the app needs both.
What it can do Read only: find things and read what’s recorded. Read and change: also add, move or change them. Neither can delete or see secret fields.
Expires A date, or empty to keep it until you revoke it. It ends at the end of that day.

Then Make token. A token never does more than you can: where you’re a viewer, it can only read. A token that can change things in several locations whose members differ gets a warning, Different people use these locations, because an app could then move things from one to another. Make it for all of them goes ahead; one token per location is the safer choice.

The token, kpt_ followed by two parts, appears once, with Copy. Kept keeps only a fingerprint of it, so a lost token can’t be shown again: revoke it and make another.

In a location that requires two-factor, a token works only if you made it while signed in with your second factor.

Under the new token, Connect an app shows two values, each with a copy button:

Server address https://kept.example.org/mcp
Authorization Bearer kpt_…

In the app, add an MCP server (it may be called a connector or an integration) with that address, and send the token in that header. Kept doesn’t supply a settings file for any particular app; where the address and header go is in the app’s own documentation.

The endpoint answers POST only, keeps no session between requests, and refuses a request whose Host isn’t Kept’s address (or one it used before) or that comes from another website’s page.

Apps that support it can connect without a token you copy. This is on by itself when KEPT_PUBLIC_URL is https. Admin → Status → Connections from other apps shows the MCP endpoint and either Available or Needs an https public URL.

  1. In the app, add https://kept.example.org/mcp as a connector.
  2. The app finds Kept’s sign-in from the address and sends you to Kept. Sign in.
  3. Kept shows App wants to use your Kept. The name is the one the app gives itself; Kept can’t confirm who made it. Choose What it can do and Where (pick only the locations it needs), then Allow or Deny. The page also says the app stays signed in after you sign out of this browser, and that anything that signs out all your other devices makes it sign in again.
  4. The app appears under Connected apps in Settings → Connections.

The app stays connected until you press Revoke on it and confirm (Kept asks Disconnect App?), or until it goes 30 days without being used; then it has to sign in again. Each access token it gets lasts an hour and the app renews it without asking you again; Kept checks your grant on every call, so Revoke in Settings → Connections works at once.

The app has to sign in again after anything that signs out your other devices: Sign out of all other devices, a new password or a password reset, a change to two-factor, backup codes or passkeys, unlinking an outside sign-in, a new email address, or an admin signing you out everywhere or disabling your account. Signing out one chosen device leaves the app signed in.

One exception: asking to delete your account signs out your other devices but keeps the app’s sign-in. The app stops working while the account waits, and if you keep the account, it works again without signing in.

Things that stop a connector:

  • The app can’t reach Kept. A web app such as claude.ai connects from its own servers, so Kept must be reachable from the internet, not only on your home network or tailnet.
  • Kept can’t reach the app. An app identifies itself with an https address for a document describing it, and Kept fetches that document. Private and local addresses are refused.
  • The app registers itself. Kept accepts apps that describe themselves with such a document (Client ID Metadata Documents) and has dynamic client registration turned off. An app that can only register dynamically can’t connect as a connector; use a personal token if it accepts one.
  • It sees only the locations you picked, and in each only the tools for the parts of Kept that location has on. Where your role hides values, they’re hidden from the app too.
  • Changes apply at once and are listed under Recent changes by connections on the Connections page, with Undo for 7 days. Undo refuses when the field has changed since.
  • There is nothing destructive to call. No tool deletes, trashes, merges, transfers ownership, reveals a secret field, uploads a file or runs a query of its own.
  • Files go through you. attach_link gives the app a link that opens Kept’s capture sheet; you add the photo or receipt there, signed in.
  • Limits per token: 120 reads and 30 changes a minute. Answers are short and paged, 20 items unless the app asks for more, up to 200.
  • Text people wrote is marked as untrusted. Names and notes reach the app under an untrusted key, and Kept tells it never to follow instructions found in them.

An app sees only the tools it may call in each location; capabilities lists them. Hiding Personal doesn’t change what an app was given. Read tools work with either kind of access; change tools need Read and change and a role of member or higher. The part of Kept a tool needs is the name under What to track.

Tool Kind Needs What it answers
capabilities read What can I do in each location: its parts and the tools I may call there.
list_locations read Which locations can I see, with my role and their time zone.
search_things read Which things match these words: names, aliases, types, brands and notes, with filters.
where_is read Where is a thing: the best matches with their full place path.
get_thing read What do we know about this thing (by id or short ID), who has it, and a kit’s parts.
list_contents read What is in this place or container, 1 to 3 levels deep.
thing_history read What happened to this thing, newest first: who did what and when.
find_documents read Where is the receipt, manual or warranty for something.
upcoming read Reminders What is due, overdue or expiring soon: schedules, warranties, loans and low stock.
add_thing change Add one or more things, with a new place if it doesn’t exist yet, and every field the app’s create sheet sets (see below).
update_thing change Change any of a thing’s fields the app’s edit form changes (see below); null clears one.
move_thing change Move a thing, or some of a quantity, to another place or container.
mark_seen change I just saw this thing where Kept says it is.
change_lifecycle change Change a thing’s lifecycle, as Change lifecycle and Archive do: sold, given away, lost, thrown away, archived or another end, with when, who it went to, what it sold for and a note, or back in use with in_use. Each call sends the whole end, so a detail it leaves out is cleared. Kept keeps the thing and its history, and it can be undone for 7 days.
create_place change Add a place under another place, or at the top of the location. With template, add furniture and a place for each of its compartments in one step, as Furniture with compartments does; one Undo takes it all back. A rack template takes units and numbering (Racks). A room takes its real size, width_cm and length_cm (50 cm to 100 m), and goes on the map with it. template also takes one of your templates by name (list_place_templates); if two share the name, Kept lists them and asks which.
update_place change Change a place as its page does: rename it, change its kind, move it into another place or to the top, set its fields, and the order of the places in it (A to Z or Custom order, then Move up or Move down). turn (right or left, where its top went) turns furniture with compartments onto its side or back, with renumber true or false. Undo for 7 days, except a move up or down: the opposite move undoes it.
turn_into_boxes change Turn up to 50 places into boxes, as Turn places into boxes does. Each keeps its ID, label and what’s in it; one with places inside stays a place, and so does one at the top of the location (turn that one in Kept). One Undo turns them all back.
list_place_templates read Which furniture templates there are: the built-in ones and your own usable here, each with its layout, kinds, name and code patterns, product link, outer size and whether it has a picture.
create_place_template change Add a furniture template with the fields of Settings → Account → Templates → Furniture, or copy one with from (a built-in or yours, by id or name), giving only what differs; a copy keeps the picture. Owners and admins of every location it is shared with. The answer’s attach_link opens it in Kept to add its picture. Undo in Kept for 7 days.
update_place_template change Change one of your furniture templates, by id or name, as its form does, or remove its picture. Furniture already made from it stays as it is. Undo in Kept for 7 days.
attach_link change A link that opens Kept’s capture sheet to add a photo, receipt or document.
log_reading change Record a meter reading: odometer, hours, electricity.
lend_thing change Lending Lend a thing to someone, with an optional due date. A box or a kit goes with everything in it, each on its own line.
return_thing change Lending A lent or borrowed thing came back, all of it or a quantity. A box or kit brings back what is still out with it.
borrow_thing change Lending Record a thing borrowed from someone, with an optional due date.
complete_schedule change Reminders A scheduled task was done, on a date or at a meter value.
snooze_schedule change Reminders Put off a scheduled task until a date or a meter value.
add_warranty change Receipts and warranties Record a warranty: its kind, and when it ends or how many months.
open_claim change Receipts and warranties Open a warranty claim for a thing.
update_claim change Receipts and warranties Change a claim’s status or reference.
log_service change Record a service: date, who did it, total, lines (each may use stock from a consumable), the schedules it completes, and notes.
log_fuel change Fuel Record a fill-up: amount, unit, cost, whether full, and the odometer.
adjust_stock change Things you run out of Add to or take from a consumable’s stock.
list_tags read Which tags there are, with how many things have each.
tag_things change Add tags to things, or take them off; a new name makes the tag.
list_moves read Moving house Which moves there are, with how many boxes are packed, in transit and unpacked.
get_move read Moving house Where each box of a move is, and which numbers are still missing.
start_move change Moving house Start a move, to another location or between rooms of this one.
add_box change Moving house Add the next numbered box: a new one, or a container you have.
pack_into_box change Moving house Pack things into a box.
set_box_status change Moving house Mark a box packed or in transit, or choose its room.
unpack_box change Moving house Unpack a box into a room; everything in it goes with it.

A thing’s fields. add_thing and update_thing take every field you can set on a thing in the app, each in its own field rather than in the notes: name, how many, type (by name, in English or Arabic, or by id), brand (made if new), model, serial number, barcode, colour, condition, notes, other names, tags (a new name makes the tag, for members and up), whose it is (a person, made if new), the manual’s link, expiry and how many days before to remind, a consumable’s minimum, where it came from (a gift, work) and the type’s own fields by key. add_thing also takes where it goes and the purchase (date, price of one with its currency, and the shop; a price comes with its currency or not at all, so a purchase can be only a date and a shop); update_thing also takes its purchase: the date, the shop, its line on the receipt, the price of one with its currency and the notes, changing the purchase it has or recording one, as the thing page does. Gear in a rack takes rack_units (its height, 0 beside the rails) and rack_at (the lowest unit number it takes in the rack’s own numbering, as get_thing gives it, its face and full depth or not), refused as the app refuses a taken unit. A price needs Money on and a role that sees money, as in the app; a minimum needs Things you run out of. A type Kept doesn’t know is left out and the answer’s not_set says so; the assistant’s card shows it as “not set” with a picker.

Sizes: add_thing and update_thing take size (its outside as it stands) and inside, and update_place takes inside and outside (furniture’s), each [width, depth, height] in whole millimetres with all three, null to clear one; get_thing gives size and inside back, and for gear in a rack whether it fits the rack’s width and depth (fit).

Racks: update_place takes rack (units, numbering, width 19 or 10, mount floor or wall) to set a place up as a rack or change one, refused as the app refuses fewer units below gear; search_things finds the gear at a unit’s address, such as RACK1-U12. create_place_template and update_place_template take a rack layout (kind rack, units, width, numbering, mount) with no compartment fields, and from copies a rack template, built in or yours.

The moving tools, change_lifecycle, create_place_template and update_place_template are for connected apps only; the assistant in Kept doesn’t use them.

Every tool that takes an id also takes a 6-character short ID such as K7D2QX. The full contracts are in packages/mcp/src/tools.ts.

In Settings → Connections, find the token or app (filter by Kind, Location or State) and choose Revoke.

  • A token: apps using it stop working at once. Changes it made stay, and can still be undone for 7 days.
  • A connected app: it stops reaching your Kept at once, and Kept forgets your consent, so to use it again you connect it again from the app.

Kept also ends access by itself, and the list says why: Expired, Ended: you left the location, Ended: your role changed, Revoked by an admin, or Disconnected by the app.