Kamai MCP Server
AI takeoff for construction: turn PDF blueprints into structured, traceable quantities.
Kamai scores 66 (Good), licensed Apache-2.0 and written in TypeScript. It can be reached as a remote MCP endpoint. It declares 18 tools. Filed under Knowledge. GitHub shows 0 stars. Install configs are generated for 10 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
66 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: apache-2.0.
License, quality and maintenance
Quality: Grade A
94/100 for listing completeness. Lost points: 1 of 18 tools barely described, short summary.
How quality is graded
Where the 66 comes from
22 + 20 + 0 + 10 + 4 + 10 = 66. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 0 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 10 of 10 points.Install
Pick your client, copy the config, paste it in.
Remote auth: OAuth sign-in. Your client opens a browser window to sign in with the provider. No key goes in the config file. How remote auth works
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "kamaienterprises-kamai-mcp": { "url": "https://mcp.kamai.io/mcp" } }}
Environment variables
This server does not declare environment variables.
Tools18Tool docs quality grade D
All capabilitiesNet wall (paint or plaster) area of rooms
count_elementstoolCounts and totals by Kamai category (doors, windows, walls, wet rooms…), grouped, summed in the database
download_plantoolA PDF of a processed blueprint with its detected elements highlighted, as a temporary download link
find_elementstoolIndividual elements with type, folder, tag, handing and measurements
Import a PDF attached to a ChatGPT message (ChatGPT only)
list_blueprintstoolBlueprints grouped by project, with their ids and whether they are ready
list_elementstoolPer-element rows (rooms, walls, doors, windows, objects) with outlines
list_folderstoolA blueprint's legend folders
open_kamaitoolOpen the Kamai app in a panel
probe_hosttoolA diagnostic panel that tests what widgets can use in this chat (WebGPU, WebGL2, workers, WebAssembly, the GCS tile host) and logs the result as a widgetprobe event
render_tabletoolA table panel whose rows highlight their elements on the plan
Store a user-stated height, or a door/window tag, on wall-surface opening pieces
About
kamai-mcp
Kamai's MCP server: tools and MCP Apps widgets for Kamai construction-blueprint projects, blueprints and takeoffs. It runs against Kamai's MCP API and validates access tokens issued by Kamai's OAuth authorization server. It holds no Kamai secrets.
Tools
| Tool | What it does |
|---|---|
view_projects | Interactive panel of the user's projects and blueprints |
list_blueprints | Blueprints grouped by project, with their ids and whether they are ready |
view_blueprint | A blueprint page with its take-off shapes drawn on top |
view_takeoff | Measured take-off quantities as a sortable table |
list_elements | Per-element rows (rooms, walls, doors, windows, objects) with outlines |
list_folders | A blueprint's legend folders |
download_plan | A PDF of a processed blueprint with its detected elements highlighted, as a temporary download link |
update_elements, move_elements, create_folder | Rename, recolour and refile elements; create a folder |
set_opening_height | Store a user-stated height, or a door/window tag, on wall-surface opening pieces |
create_project, update_project | Create or rename a project |
list_jobs, get_job, cancel_job | Processing jobs of a project |
view_upload | Upload panel for a blueprint PDF |
ingest_blueprint_from_chat | Import a PDF attached to a ChatGPT message (ChatGPT only) |
open_kamai | Open the Kamai app in a panel |
With KAMAI_QUERY_TOOLS=on (see below):
| Tool | What it does |
|---|---|
count_elements | Counts and totals by Kamai category (doors, windows, walls, wet rooms…), grouped, summed in the database |
find_elements | Individual elements with type, folder, tag, handing and measurements |
calculate_wall_surface_area | Net wall (paint or plaster) area of rooms |
render_table | A table panel whose rows highlight their elements on the plan |
set_scale | Set a blueprint's drawing scale |
set_rotation | Turn how a blueprint is shown (display only) |
With KAMAI_HOST_PROBE on (the default on dev and debug, off in prod; see below):
| Tool | What it does |
|---|---|
probe_host | A diagnostic panel that tests what widgets can use in this chat (WebGPU, WebGL2, workers, WebAssembly, the GCS tile host) and logs the result as a widget_probe event |
list_blueprints also takes include_inventory (with a project_id): what each
blueprint contains.
list_projects, get_project, get_blueprint, request_blueprint_upload,
finalize_blueprint_upload, and with the query tools get_table_row_elements and
get_element_outlines, and with the probe report_host_probe, are app-only: callable by the widgets, not advertised to the
model.
Run locally with your API key
The quickest way to run this server against your own Kamai data is local mode: the host spawns the server, talks to it over stdio, and the credential is a personal API key from Kamai (API Keys in the Kamai app) instead of OAuth.
bun install
bun run build:widgets
KAMAI_API_KEY=... MCP_API_BASE_URL=https://mcp-api.kamai.io bun run local
Claude Code:
claude mcp add --env KAMAI_API_KEY=... --env MCP_API_BASE_URL=https://mcp-api.kamai.io \
--transport stdio kamai -- bun /path/to/kamai-mcp/src/local.ts
Claude Desktop (claude_desktop_config.json):
{ "mcpServers": { "kamai": {
"command": "bun", "args": ["/path/to/kamai-mcp/src/local.ts"],
"env": { "KAMAI_API_KEY": "...", "MCP_API_BASE_URL": "https://mcp-api.kamai.io" } } } }
The key is used as the bearer for every API call; the tools run as the key's owner.
Add KAMAI_QUERY_TOOLS=on to the environment for the query tools.
Run the HTTP server
bun install
cp .env.example .env
bun run dev
The values in .env.example are placeholders: set MCP_PUBLIC_URL and
MCP_AUTH_ISSUER to your tunnel and to a reachable authorization server before
starting, or every request will be refused with invalid_token.
| Variable | Meaning |
|---|---|
PORT | Listen port, default 8006 |
MCP_PUBLIC_URL | The URL hosts call and ask a token for (the resource in discovery); a tunnel, not localhost |
MCP_AUTH_ISSUER | Issuer of the access tokens, matched byte for byte against the token's iss |
MCP_AUTH_JWKS_URI | Optional. Defaults to {MCP_AUTH_ISSUER}/jwks.json |
MCP_API_BASE_URL | Kamai MCP API base URL, https://mcp-api.kamai.io. Also the audience an access token must carry |
MCP_ACCEPTED_AUDIENCES | Optional comma-separated audiences, for a cutover. Defaults to MCP_API_BASE_URL |
KAMAI_API_KEY | Local mode only: the personal API key the tools run as |
KAMAI_APP_ORIGINS | Optional comma-separated extra origins open_kamai may frame; the first becomes the default |
KAMAI_QUERY_TOOLS | on registers the query tools. Only once the API layer serves /v1/vocabulary (401, not 404) |
KAMAI_ROTATION | off drops set_rotation from the query tools (on by default; needs an API layer that serves PUT .../blueprints/{id}/rotation) |
KAMAI_HOST_PROBE | on or off registers probe_host and report_host_probe. Unset, it is on when Cloud Run's K_SERVICE starts with dev- or debug-, off otherwise. Never in local mode |
KAMAI_MCP_NO_INSTRUCTIONS | 1 leaves the server instructions out, as claude.ai does; for evals |
The MCP API and the authorization server are operated by Kamai, so running the
HTTP server end to end needs access to both. An MCP server is only really testable
against a real host, and a host can only reach a public HTTPS URL, so HTTP-mode
development means running behind a tunnel and pointing MCP_PUBLIC_URL at it.
bun run dev builds the widgets first: the server serves the built HTML from
dist/widgets/, not the React source, so rebuild after touching anything under
src/widgets/app/.
The widgets use React, TypeScript, Vite, Tailwind CSS, DaisyUI and Lucide. Vite produces one self-contained HTML resource per widget, so nothing needs hosting.
Local builds require Bun 1.3.3 and Node.js 22.12 or newer.
Layout
src/index.ts HTTP server, OAuth protected-resource metadata, MCP transport
src/local.ts stdio entrypoint for local mode (personal API key)
src/auth.ts Bearer-token verification (RFC 9728 challenges)
src/server.ts Tool and resource registration
src/api.ts Client for the Kamai MCP API
src/elements.ts list_elements paging, filtering and result budgeting
src/errors.ts The text a failed tool call shows the model
src/query/ Query tools: descriptions, vocabulary, filters, budgets, contract
src/widgets/ Widget resources, CSP metadata and the React widget sources
scripts/ Widget build (escapes & so Open WebUI can embed the
widgets); check-routes and check-vocabulary against a live API
scripts/open-webui/
Open WebUI helpers: an open_kamai Tool, a display-mode
host script, a local bridge demo
Privacy and support
- Privacy policy: https://kamai.io/privacy-policy
- Support: https://kamai.io/support or contact@kamai.io
Contributing
See CONTRIBUTING.md. Security issues go to the address in SECURITY.md, not to the issue tracker.
License
Apache-2.0. Copyright 2026 Kamai Enterprises LTD.
The Kamai name and logo are trademarks of Kamai Enterprises LTD and are not covered by the license.
Frequently asked questions
What is Kamai MCP Server?
AI takeoff for construction: turn PDF blueprints into structured, traceable quantities.
How do I install Kamai MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. Kamai MCP Server connects to the remote endpoint https://mcp.kamai.io/mcp, so there is nothing to install locally.
Is Kamai MCP Server free and open source?
Yes. Kamai MCP Server is released under the Apache-2.0 license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does Kamai MCP Server support remote (HTTP) connections?
Yes. Kamai MCP Server offers a hosted endpoint over Streamable HTTP, so HTTP-capable clients can connect to it without running anything locally.
What tools does Kamai MCP Server provide?
Kamai MCP Server provides 18 tools, including calculate_wall_surface_area, count_elements, download_plan, and find_elements. See the full tool list for descriptions and parameters.
How is Kamai MCP Server's trust score calculated?
Kamai MCP Server scores 66 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.