Skip to content

Claude Code and Claude Desktop ​

See MCP overview for what the server does. The examples run PBrokkR from the source code in C:\Tools\PBRGenerator (replace it with your folder). With the downloaded program, the command is pbrokkr-cli (pbrokkr-cli.exe on Windows) with the argument mcp, and no PYTHONPATH: see the command an agent must start.

Claude Code ​

One command, in a terminal:

powershell
claude mcp add pbrokkr --env PYTHONPATH=C:\Tools\PBRGenerator -- C:\Tools\PBRGenerator\.venv\Scripts\python.exe -m pbrgen mcp
sh
claude mcp add pbrokkr --env PYTHONPATH=/opt/PBRGenerator -- /opt/PBRGenerator/.venv/bin/python -m pbrgen mcp

By default the server is added for you in the current project. Add --scope user to have it in every project, or --scope project to write it to a .mcp.json file that the whole team shares.

Check it:

sh
claude mcp list

Inside Claude Code, /mcp shows the server and its tools.

As a file ​

.mcp.json at the root of a project:

json
{
  "mcpServers": {
    "pbrokkr": {
      "command": "C:\\Tools\\PBRGenerator\\.venv\\Scripts\\python.exe",
      "args": ["-m", "pbrgen", "mcp"],
      "env": { "PYTHONPATH": "C:\\Tools\\PBRGenerator" }
    }
  }
}

In JSON, each backslash of a Windows path is written twice.

Claude Desktop ​

  1. Open Settings > Developer > Edit Config. It opens claude_desktop_config.json.
  2. Add the server under mcpServers (the same block as above):
json
{
  "mcpServers": {
    "pbrokkr": {
      "command": "C:\\Tools\\PBRGenerator\\.venv\\Scripts\\python.exe",
      "args": ["-m", "pbrgen", "mcp"],
      "env": { "PYTHONPATH": "C:\\Tools\\PBRGenerator" }
    }
  }
}
  1. Quit Claude Desktop completely and open it again. The tools appear in the tools menu of the message box.

Try it ​

List the PBrokkR presets, then show me a lit preview of proc_bubbles.