Arbitrium
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
Arbitrium
From Latin arbitrium — free judgment, mastery, control. The power to decide and command. Where Velle wills and Expergis perceives, Arbitrium commands.
Persistent shell MCP server for Claude Code.
Arbitrium gives the agent persistent shell sessions that survive across tool calls. Spawn a shell, run commands, read output — the shell retains all state (environment variables, working directory, running processes) between interactions. Every command and its output is logged to ./logs/.
How It Works
arbitrium_spawn -> bash subprocess with stdin/stdout pipes
arbitrium_exec -> write command + sentinel to stdin, read output until sentinel
arbitrium_close -> graceful terminationNo console injection, no buffer scraping. Just pipes and a sentinel pattern to detect command completion. The shell is headless — output flows back through the MCP tool response.
Related MCP server: mcp-terminal-server
MCP Tools
Tool | Description |
| Open a new persistent shell session |
| Execute a command and return full output + exit code |
| List active sessions with metadata |
| Close a session and terminate the subprocess |
Key Features
State persistence —
cd,export, aliases, shell functions all survive across callsFull output capture — returns everything between command and next prompt, not just a truncated window
Exit codes — every command returns its exit code
Timeout handling — configurable per-command timeout with partial output on timeout
Session logging — every session writes a full transcript to
./logs/Multiple sessions — run several shells concurrently with different working directories
Installation
Requires Python 3.10+ and uv.
git clone https://github.com/PStryder/arbitrium.git
cd arbitrium
uv syncAdd to Claude Code:
claude mcp add -s user arbitrium -- /path/to/arbitrium/.venv/Scripts/python -m arbitrium.serverOr manually in ~/.claude.json:
{
"mcpServers": {
"arbitrium": {
"command": "/path/to/arbitrium/.venv/Scripts/python",
"args": ["-m", "arbitrium.server"],
"cwd": "/path/to/arbitrium"
}
}
}Usage
Agent: arbitrium_spawn(shell="bash", cwd="/my/project")
-> session_id: "shell-a1b2c3"
Agent: arbitrium_exec(session_id="shell-a1b2c3", command="export API_KEY=test123")
-> ok, exit_code: 0
Agent: arbitrium_exec(session_id="shell-a1b2c3", command="echo $API_KEY")
-> output: "test123", exit_code: 0 # state persisted!
Agent: arbitrium_exec(session_id="shell-a1b2c3", command="cd src && ls")
-> output: "main.py utils.py", exit_code: 0
Agent: arbitrium_exec(session_id="shell-a1b2c3", command="pwd")
-> output: "/my/project/src", exit_code: 0 # directory persisted!
Agent: arbitrium_close(session_id="shell-a1b2c3")
-> closed, 4 commands executedSecurity
Arbitrium provides unrestricted shell access — any command the agent sends will execute with the permissions of the user running Claude Code. There is no sandboxing.
All commands and output are logged to ./logs/ with timestamps. Review logs to audit agent behavior.
The Triad
Tool | Role | Latin |
Volition — self-prompting | to will | |
Perception — event detection | to wake up | |
Arbitrium | Agency — environmental control | free judgment |
License
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
A persistent Linux computer for your AI: what it installs and writes survives the session.
People and AI agents build software together in persistent cloud sessions for Claude Code.
Persistent cloud workspaces for AI agents: run commands, edit files, use git and a browser.
Sync coding-agent sessions and resume them in any other agent: Claude Code, Codex, Cursor, more.
Related MCP Servers
- AlicenseNot gradedqualityDmaintenanceEnables Claude to execute commands and manage directory-aware panes within tmux sessions for a shared terminal experience. It features smart output capture, interactive prompt detection, and background task management.2MIT
- FlicenseNot gradedqualityCmaintenanceEnables running interactive terminals inside Claude Code and Claude Desktop, supporting multiple sessions for different tasks.-
- -licenseNot gradedqualityNot gradedmaintenanceEnables Claude Code to control remote servers via SSH for automated deployment, testing, and operations, including command execution and file transfer.4-
- FlicenseNot gradedqualityDmaintenanceEnables interactive terminal sessions within Claude Code and Desktop, allowing users and AI to execute commands and manage multiple tabs.2-