Zsh MCP Server

Zsh for Claude Code. PTY mode lets Claude type passwords. NEVERHANG + A.L.A.N.

Local serverstdioPython

What is the Zsh MCP Server?

Zsh for Claude Code. PTY mode lets Claude type passwords. NEVERHANG + A.L.A.N.

What the server does

Zsh execution tool for Claude Code with full Bash parity, yield-based oversight, PTY mode, NEVERHANG circuit breaker, and A.L.A.N. short-term learning.

Available tools

The toolset is worth reading before you wire it up, because it tells you what the integration is really for:

  • zsh — Execute command with yield-based oversight
  • zsh_poll — Get new output (delta) from running task with line numbers
  • zsh_send — Send input to task's stdin
  • zsh_kill — Kill a running task
  • zsh_tasks — List all active tasks
  • zsh_health — Overall health status
  • zsh_alan_stats — A.L.A.N. database statistics
  • zsh_alan_query — Query pattern insights for a command
  • zsh_neverhang_status — Circuit breaker state
  • zsh_neverhang_reset — Reset circuit to CLOSED

Installation

Installation goes through your MCP client rather than a global install: point it at required on PyPI and it is fetched when the client starts. The copy-paste blocks for Claude Desktop, Claude Code and Cursor are further down this page.

Credentials and setup notes

Configuration is passed through the environment: NEVERHANG_TIMEOUT_DEFAULT, NEVERHANG_TIMEOUT_MAX, ALAN_DB_PATH. Treat anything key-shaped as a real credential — scope it to the minimum the server needs, and rotate it if it ever lands in a shared config.

Where it fits

Among the planning and project tracking options, the useful question is rarely "what can it do" but "what does it cost you to run" — permissions, credentials, and how much of your context its toolset consumes. Zsh's toolset — zsh, zsh_poll, zsh_send and 7 more — is a fair guide to whether it matches your workflow. It is maintained by ArkTechNWA; worth a glance at recent repository activity before you build anything load-bearing on it.

Worth knowing first

  • It runs with your machine's permissions. That is convenient and also the reason to think about what you point it at before you approve a tool call.
  • Keep per-call confirmation enabled while you learn its behaviour; it is the cheapest safeguard you have.

Recorded tools

  • zsh — Execute command with yield-based oversight
  • zsh_poll — Get new output (delta) from running task with line numbers
  • zsh_send — Send input to task's stdin
  • zsh_kill — Kill a running task
  • zsh_tasks — List all active tasks
  • zsh_health — Overall health status
  • zsh_alan_stats — A.L.A.N. database statistics
  • zsh_alan_query — Query pattern insights for a command
  • zsh_neverhang_status — Circuit breaker state
  • zsh_neverhang_reset — Reset circuit to CLOSED

More MCP options

Compare MCP servers by category, or browse hosted MCP servers if you prefer an endpoint over a local process.

Recorded tools

Check the linked publisher documentation and your connected client's tool list. Names and availability can vary with the server version and account permissions.

ToolWhat it does
zshExecute command with yield-based oversight
zsh_pollGet new output (delta) from running task with line numbers
zsh_sendSend input to task's stdin
zsh_killKill a running task
zsh_tasksList all active tasks
zsh_healthOverall health status
zsh_alan_statsA.L.A.N. database statistics
zsh_alan_queryQuery pattern insights for a command
zsh_neverhang_statusCircuit breaker state
zsh_neverhang_resetReset circuit to CLOSED

How to install the Zsh MCP Server

{
  "mcpServers": {
    "zsh-tool": {
      "type": "stdio",
      "command": "/path/to/zsh-tool/scripts/run-mcp.sh",
      "env": {
        "NEVERHANG_TIMEOUT_DEFAULT": "120",
        "NEVERHANG_TIMEOUT_MAX": "600"
      }
    }
  }
}

Configuration as documented by the project. Restart the client after saving.

Configuration

VariableDescriptionRequired
NEVERHANG_TIMEOUT_DEFAULTConfiguration value read at startup.Optional
NEVERHANG_TIMEOUT_MAXConfiguration value read at startup.Optional
ALAN_DB_PATHFilesystem location the server is allowed to use.Optional

Example prompts to try

  • “Use Zsh to zsh.”
  • “Use Zsh to zsh poll.”
  • “Use Zsh to zsh send.”

Frequently asked questions

Zsh for Claude Code. PTY mode lets Claude type passwords. NEVERHANG + A.L.A.N. Confirm the tools offered by your installed version in the connected client. Tool availability and permissions depend on the server and account configuration.