What you need
- An up-to-date Kantibat, with a licence or a free trial in progress.
- The CLI turned on: Kantibat → Settings → CLI. MCP goes through it.
- An MCP-compatible AI application, installed on the same computer.
Kantibat → Settings → MCP shows the configuration for your application, with your path already filled in. Copy it from there. On this page, replace <vous> with your Windows user name.
The AI application starts Kantibat itself and talks to it directly, on the computer. No port is opened. The numbers always come from the Kantibat engine, never from the model.
Your AI application
Four steps for each: open, paste, restart, test.
Claude Desktop
Open: in Claude Desktop, Settings → Developer → Edit Config. The file
claude_desktop_config.jsonopens.Paste: this block. If the file already lists other servers, add only the “kantibat” entry next to them.
{ "mcpServers": { "kantibat": { "command": "C:\\Users\\<vous>\\AppData\\Local\\Kantibat\\bin\\kantibat.exe", "args": [ "mcp" ] } } }Restart: quit Claude Desktop completely, then start it again.
-
Test: Ask, with your own drawing:
With Kantibat, list the legend items of the drawing C:\Chantiers\Lot-elec\E-01.pdf.The AI should call Kantibat and give you the legend items: L1, L2…
Source: modelcontextprotocol.io/docs/develop/connect-local-servers, checked on 19 November 2026.
Claude Code
Open: a terminal.
Paste: this command. It connects Kantibat for all your projects.
claude mcp add --transport stdio --scope user kantibat -- "C:\Users\<vous>\AppData\Local\Kantibat\bin\kantibat.exe" mcpRestart: start Claude Code again.
-
Test: Ask, with your own drawing:
With Kantibat, list the legend items of the drawing C:\Chantiers\Lot-elec\E-01.pdf.The AI should call Kantibat and give you the legend items: L1, L2…
Source: code.claude.com/docs/en/mcp, checked on 19 November 2026.
VS Code (GitHub Copilot)
Open: in VS Code, press Ctrl+Shift+P, then choose “MCP: Open User Configuration”. The file
mcp.jsonopens.Paste: this block. Here the key is
servers, notmcpServers. If the file already lists other servers, add only the “kantibat” entry.{ "servers": { "kantibat": { "type": "stdio", "command": "C:\\Users\\<vous>\\AppData\\Local\\Kantibat\\bin\\kantibat.exe", "args": [ "mcp" ] } } }Restart: restart VS Code, then open Copilot in agent mode.
-
Test: Ask, with your own drawing:
With Kantibat, list the legend items of the drawing C:\Chantiers\Lot-elec\E-01.pdf.The AI should call Kantibat and give you the legend items: L1, L2…
Since 18 November 2026, the VS Code documentation announces a new file: %USERPROFILE%\.copilot\mcp-config.json, with the key mcpServers. If your VS Code does not find Kantibat with the block above, put the same entry in that file, under mcpServers.
Source: code.visualstudio.com/docs/agents/reference/mcp-configuration, checked on 19 November 2026.
LM Studio
Open: in LM Studio, the Program tab, then Install → Edit mcp.json.
Paste: this block. If the file already lists other servers, add only the “kantibat” entry next to them.
{ "mcpServers": { "kantibat": { "command": "C:\\Users\\<vous>\\AppData\\Local\\Kantibat\\bin\\kantibat.exe", "args": [ "mcp" ] } } }Restart: restart LM Studio.
-
Test: Ask, with your own drawing:
With Kantibat, list the legend items of the drawing C:\Chantiers\Lot-elec\E-01.pdf.The AI should call Kantibat and give you the legend items: L1, L2…
The model runs on your computer: nothing Kantibat returns leaves it.
Source: lmstudio.ai/docs/app/mcp, checked on 19 November 2026.
Gemini CLI
Open: a terminal.
Paste: this command. Keep
-s user: without it, Kantibat would only be connected in the current folder.gemini mcp add -s user kantibat "C:\Users\<vous>\AppData\Local\Kantibat\bin\kantibat.exe" mcpRestart: start Gemini CLI again.
-
Test: Ask, with your own drawing:
With Kantibat, list the legend items of the drawing C:\Chantiers\Lot-elec\E-01.pdf.The AI should call Kantibat and give you the legend items: L1, L2…
Source: geminicli.com/docs/tools/mcp-server, checked on 19 November 2026.
Codex CLI
Open: a terminal.
Paste: this command. It connects Kantibat to Codex.
codex mcp add kantibat -- "C:\Users\<vous>\AppData\Local\Kantibat\bin\kantibat.exe" mcpRestart: start Codex again.
-
Test: Ask, with your own drawing:
With Kantibat, list the legend items of the drawing C:\Chantiers\Lot-elec\E-01.pdf.The AI should call Kantibat and give you the legend items: L1, L2…
If Codex runs in WSL, this Windows path does not work as is.
Source: github.com/openai/codex — codex-rs/cli/src/mcp_cmd.rs, checked on 19 November 2026.
Cursor
Open: the file
%USERPROFILE%\.cursor\mcp.json. Create it if it does not exist.Paste: this block. If the file already lists other servers, add only the “kantibat” entry next to them.
{ "mcpServers": { "kantibat": { "type": "stdio", "command": "C:\\Users\\<vous>\\AppData\\Local\\Kantibat\\bin\\kantibat.exe", "args": [ "mcp" ] } } }Restart: restart Cursor.
-
Test: Ask, with your own drawing:
With Kantibat, list the legend items of the drawing C:\Chantiers\Lot-elec\E-01.pdf.The AI should call Kantibat and give you the legend items: L1, L2…
Source: cursor.com/docs/context/mcp, checked on 19 November 2026.
Google Antigravity
Open: in Antigravity, MCP Store, then View raw config. The file
%USERPROFILE%\.gemini\config\mcp_config.jsonopens.Paste: this block. If the file already lists other servers, add only the “kantibat” entry next to them.
{ "mcpServers": { "kantibat": { "command": "C:\\Users\\<vous>\\AppData\\Local\\Kantibat\\bin\\kantibat.exe", "args": [ "mcp" ] } } }Restart: restart Antigravity.
-
Test: Ask, with your own drawing:
With Kantibat, list the legend items of the drawing C:\Chantiers\Lot-elec\E-01.pdf.The AI should call Kantibat and give you the legend items: L1, L2…
Source: antigravity.google/docs/mcp, checked on 19 November 2026.
Applications that are not compatible
ChatGPT
ChatGPT only connects to remote MCP servers, reachable over the Internet. Kantibat does not leave your computer.
On the desktop app, a local server only comes through a plugin reserved for partners approved by OpenAI: there is no file to paste a configuration into.
Source: help.openai.com — Developer mode and MCP apps in ChatGPT, checked on 19 November 2026.
Other applications will be added here once their documentation has been checked.
The PDF to hand to the client: the justificatif tool
The AI can ask Kantibat for the PDF record of a drawing. It gives the drawing, the items and the .pdf file to write; Kantibat counts as for any other call, then writes the PDF: the annotated drawing with a numbered marker on each counted symbol, then one line per item with its quantity, unit and number of markers. An item that is “to be measured” stays “to be measured”, never zero.
For a DWG or DXF drawing, the AI gives bloc (a list of block names) or tout (with an optional profil: elec, cvc or plomberie), never both, instead of article and page. The PDF carries the drawing, then the takeoff: lengths in metres, areas in m², blocks in units. These lines are “awaiting validation”, like the markers.
The answer the AI reads carries only the path of the file written and a numeric summary: items, quantities, numbers of markers. The markers are “awaiting validation” and are added up nowhere. The tool never replaces an existing file: if the file already exists, the call fails.
It is written on your disk and stays there. If you hand it to an online assistant, or it reads it to show it to you, it passes the image of the drawing to that assistant's provider: a remote AI should ask you before opening it.
After connecting
Also give the AI the Kantibat instructions, which carry the rules: a number comes from Kantibat, and “to be measured” is never zero. You get them with kantibat aide-ia, to paste into your application's instructions.
The AI application reads Kantibat's answers: file names, labels, counts. With a remote AI, this information goes to that AI's provider. With an AI installed on your computer, your own, it stays on the computer. No AI sets a number: every quantity comes from the counting engine, or stays “to be measured”.
Your AI runs commands in a terminal? The Kantibat CLI is simpler, and lighter.
The rules the AI must follow, and the path from drawing to bill of quantities: driving Kantibat with an AI (in French).