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:
claude mcp add pbrokkr --env PYTHONPATH=C:\Tools\PBRGenerator -- C:\Tools\PBRGenerator\.venv\Scripts\python.exe -m pbrgen mcpclaude mcp add pbrokkr --env PYTHONPATH=/opt/PBRGenerator -- /opt/PBRGenerator/.venv/bin/python -m pbrgen mcpBy 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:
claude mcp listInside Claude Code, /mcp shows the server and its tools.
As a file
.mcp.json at the root of a project:
{
"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
- Open Settings > Developer > Edit Config. It opens
claude_desktop_config.json. - Add the server under
mcpServers(the same block as above):
{
"mcpServers": {
"pbrokkr": {
"command": "C:\\Tools\\PBRGenerator\\.venv\\Scripts\\python.exe",
"args": ["-m", "pbrgen", "mcp"],
"env": { "PYTHONPATH": "C:\\Tools\\PBRGenerator" }
}
}
}- 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.