Brume · Docs

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:

Claude Code (.mcp.json) / Claude Desktop (claude_desktop_config.json)
{
  "mcpServers": {
    "brume": {
      "command": "python",
      "args": ["-m", "brume.mcp"],
      "env": {
        "BRUME_URL": "https://your-instance.example",
        "BRUME_TOKEN": "<your-jwt>"
      }
    }
  }
}
VariableValue
BRUME_URLBrume instance URL, without an API path
BRUME_TOKENJWT 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

SymptomCheck
The server does not startBRUME_TOKEN is present in the process environment
Authentication failsThe JWT is current, not revoked, and issued by the target instance
No workspace is returnedThe account has access to a workspace on this instance
An action is rejectedThe 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.

On this page