MCP
Connect an MCP-compatible client to a Brume instance with a session JWT.
In brief
The MCP server runs on your agent’s machine and communicates with Brume over HTTP and WebSocket. Configure the instance URL and a session JWT, then validate access with a read call.
Connect your client
Obtain a JWT
Authenticate the account that will own the agent’s actions. The token returned by POST /api/auth/login becomes the value of BRUME_TOKEN.
The complete flow is documented in Authentication and conventions.
Declare the server
Add the brume server to your client configuration:
{
"mcpServers": {
"brume": {
"command": "python",
"args": ["-m", "brume.mcp"],
"env": {
"BRUME_URL": "https://your-instance.example",
"BRUME_TOKEN": "<your-jwt>"
}
}
}
}| Variable | Value |
|---|---|
BRUME_URL | Brume instance URL, without an API path |
BRUME_TOKEN | JWT for the account on whose behalf the agent acts |
Verify access
Restart the client, then ask the agent to list your workspaces. It should discover the brume server, call list_workspaces, and return the workspaces visible to the account.
Distinguish credentials
BRUME_TOKEN authenticates the account with Brume. Keys stored for Anthropic, OpenAI, or another provider are used for model calls and do not replace this JWT.
Diagnose the connection
| Symptom | Check |
|---|---|
| The server does not start | BRUME_TOKEN is present in the process environment |
| Authentication fails | The JWT is current, not revoked, and issued by the target instance |
| No workspace is returned | The account has access to a workspace on this instance |
| An action is rejected | The account role carries the permission required by the route |
What comes next
Once connected, the agent has the server’s 18 tools at hand. Their catalog, the permissions enforced by the API routes, the return format, and the client error mapping are in MCP tools reference.
Browse the model catalog
The Administration → Models screen: the catalog columns, the Sovereign filter, the sorts, and what the screen does not decide.
MCP tools reference
The 18 tools of the Brume MCP server, their parameters and returns, the permissions enforced by API routes, and the client error mapping.