A server inside the running application, on this computer only — found through a file, paired with a secret, called with a bearer token, in the 2026-07-28 revision of the protocol or the one before it.
Bentrix runs an MCP server — the Model Context Protocol, the open standard assistants and programs use to call tools — whenever it is open. Everything a person can do in Bentrix is one of its tools: 222 of them at catalogue 3.2.0, listed with their arguments in the MCP tools.
01Where it listens
On 127.0.0.1 only, at a port chosen when Bentrix starts. Nothing on another computer can reach it, and a request whose Host is not that address, or whose Origin is not a loopback one, is refused before its body is read.
02How a program finds it
At every start, Bentrix writes two files into its agents folder:
| File | Holds |
|---|---|
endpoint.json | {"url": "http://127.0.0.1:<port>/mcp", "pid": <process>, "catalogue_version": "3.2.0"} — no secret |
local.secret | this run's same-user secret, readable by your user alone |
The agents folder is %LOCALAPPDATA%\BENTRIX\agents on Windows and ~/.local/share/bentrix/agents on Linux and macOS. When Bentrix stops, endpoint.json is removed; a new start writes a new secret.
03How a program is admitted
- It reads
local.secret— which only a process running as you can — and sends it once to<url>/pairwith its own name. - Bentrix answers a token for that name. From then on the token is the program's bearer; the secret is not used again.
- The pairing appears in ☰ › Settings › Agents under the name it gave, with the scopes read, lab and paper. You change its scopes there, and Revoke ends it. See permissions.
04The two revisions
Bentrix speaks the 2026-07-28 revision of MCP — stateless: each request carries, in its _meta, its protocol version (io.modelcontextprotocol/protocolVersion) and its capabilities (io.modelcontextprotocol/clientCapabilities, {} when it declares none) — a request without either is refused — and there is no initialize and no session — and, for clients that have not moved to it yet, the 2025-11-25 one, with initialize, a session id and the GET stream. Both reach the same tools by the same names.
05Two ways in
- Over HTTP, as the rest of this section shows step by step: any language that can POST JSON.
- Over standard input and output, through
bentrix --mcp-stdio: a launcher for clients configured with a command line. It reads the two files, pairs under the client's own name, and forwards every message. See the stdio launcher.
If you write a program rather than an assistant, the SDK does all of this for you in nine languages.