Claude Code CLI MCP Server
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
| CLAUDE_MCP_MODE | No | Server access mode (safe or permissive). | safe |
| CLAUDE_MCP_MAX_RUNS | No | History size of completed tasks in the run store. | 50 |
| CLAUDE_MCP_FORCE_BARE | No | Pass --bare to disable local workspace profiles and hooks. | true |
| CLAUDE_MCP_CLAUDE_PATH | No | Path or command to invoke the claude CLI. | claude |
| CLAUDE_MCP_ALLOWED_ROOTS | No | JSON list of allowed workspace roots. | Current working directory |
| CLAUDE_MCP_LOGFIRE_TOKEN | No | Optional Logfire token for application telemetry. | None |
| CLAUDE_MCP_ALLOWED_MODELS | No | JSON set of permitted model names or aliases. | ["sonnet", "opus"] |
| CLAUDE_MCP_ALLOW_ENV_KEYS | No | JSON list of allowed env keys to pass in permissive mode. | [] |
| CLAUDE_MCP_ALLOW_EXTRA_ARGS | No | JSON list of allowed CLI arguments in permissive mode. | [] |
| CLAUDE_MCP_MAX_STDERR_BYTES | No | Maximum stderr bytes captured from the child process. | 200000 |
| CLAUDE_MCP_MAX_STDOUT_BYTES | No | Maximum stdout bytes captured from the child process. | 1000000 |
| CLAUDE_MCP_DEFAULT_TIMEOUT_S | No | Maximum allowed execution time for tasks in seconds. | 600 |
| CLAUDE_MCP_MAX_CONCURRENT_RUNS | No | Maximum concurrent background executions allowed. | 10 |
| CLAUDE_MCP_PERSISTENCE_ENABLED | No | Enables the persistent markdown memory layer. | true |
| CLAUDE_MCP_PERSISTENCE_BASE_DIR | No | Base directory for the persistence layer. | ~/.open-cli-router |
| CLAUDE_MCP_CLAUDE_PATH_FALLBACKS | No | Fallback absolute paths to search for the binary. | ["/usr/local/bin/claude", "/opt/homebrew/bin/claude", "~/.local/bin/claude"] |
| CLAUDE_MCP_DEFAULT_PERMISSION_MODE | No | Permission mode flag (default, acceptEdits, plan, dontAsk, bypassPermissions). | acceptEdits |
| CLAUDE_MCP_POLL_DEFAULT_WAIT_SECONDS | No | Default wait time between polling iterations. | 0.5 |
| CLAUDE_MCP_FORCE_SANDBOX_IN_SAFE_MODE | No | Enforce sandbox execution in safe mode. | true |
| CLAUDE_MCP_PERSISTENCE_MAX_FILE_BYTES | No | Maximum file size for persistence files before rejecting writes. | 1048576 |
| CLAUDE_MCP_PERSISTENCE_SEED_TEMPLATES | No | Seed default markdown files if missing on init. | true |
| CLAUDE_MCP_PERSISTENCE_BACKUP_ON_WRITE | No | Create a .bak backup copy of files before modification. | false |
Capabilities
Server capabilities have not been inspected yet.
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
No tools | |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
No prompts | |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
No resources | |
Latest Blog Posts
MCP directory API
We provide all the information about MCP servers via our MCP API.
curl -X GET 'https://glama.ai/api/mcp/v1/servers/bill-kopp-ai-dev/claude-code-cli-mcp'
If you have feedback or need assistance with the MCP directory API, please join our Discord server