Humsana MCP logo

Humsana MCP

Monitors local developer activity and applies fatigue-aware safeguards to shell commands and AI file rewrites.

Install Humsana MCP

Pick your client, then add it in one click or paste the config.

STDIOPython
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "humsana-mcp": {
      "command": "uvx",
      "args": [
        "humsana-daemon"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

uvx humsana-daemon

Process exited before answering initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

The humsana-mcp MCP server connects AI development tools to a local Humsana daemon that tracks stress, focus, and fatigue from typing activity. It exposes tools for reading user state, checking commands, executing shell commands, and writing files with safety interlocks. By default, command execution is simulated in dry-run mode, while fatigue thresholds can block dangerous commands or large AI-driven deletions. Reach for it when you want local safeguards around terminal operations and automated code changes.

Use cases

  • Check fatigue before running destructive shell commands
  • Block dangerous commands when fatigue exceeds a threshold
  • Protect against large AI-driven file deletions
  • Review blocked rewrites and safety overrides locally

Key features

  • Reports stress, focus, and fatigue levels
  • Checks commands against fatigue-aware safety rules
  • Supports dry-run and live command execution modes
  • Protects files from large AI rewrites
  • Logs overrides and stores blocked writes for review

Tools4

What Humsana MCP lets your agent do. Expand a tool for its parameters.

Self-reported~56 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

16/16 checks healthy over the last 82d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 13d ago via OSV.dev · humsana-daemon (PyPI)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

Last commit4mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed4Callable tools this server registers over MCP.

How Humsana MCP works

What humsana-mcp MCP server does

The humsana-mcp MCP server adds fatigue-aware controls to AI-assisted development. It reads the current stress, focus, and fatigue levels collected by the Humsana daemon, then uses that state when evaluating shell commands and file changes.

The server covers two safety areas. Dangerous shell commands can produce warnings when the developer is fresh and can be blocked when fatigue exceeds the configured threshold. AI file rewrites are evaluated by the number of removed lines; larger deletions can warn or block when the user is tired. Blocked file writes are saved for later review rather than applied immediately.

The server is intended for local development workflows where an AI assistant can invoke terminal commands or modify project files.

How it works

Humsana requires a separately installed daemon. The daemon is started with humsana start and records behavioral signals in the local Humsana directory. The MCP process then provides those signals and safety decisions to an MCP client such as Claude Desktop.

Execution begins in dry_run mode. In this mode, a command that passes the safety check is reported as if it would run, but it is not actually executed. Live execution can be enabled in the Humsana configuration by changing execution_mode to live. The same configuration controls fatigue and file-write thresholds.

When a safety rule blocks an operation, the documented override format is OVERRIDE SAFETY PROTOCOL: [reason]. Overrides are written to ~/.humsana/audit.json and can also be sent to the configured webhook.

Setup and configuration

Install the daemon with pip install humsana-daemon, then start it with humsana start. Install the MCP package globally with npm install -g @humsana/mcp-server. An MCP client must be configured to launch the server's dist/index.js through Node; the README provides a Claude Desktop configuration using the mcpServers entry named humsana.

Create ~/.humsana/config.yaml to change defaults. Supported settings include execution_mode, fatigue_threshold, write_warn_threshold, write_block_threshold, deny_patterns, and webhook_url. Custom deny patterns can add commands such as cloud or container deletion operations to the safety rules.

Tools and capabilities

The humsana-mcp MCP server exposes four tools:

  • get_user_state returns current stress, focus, and fatigue levels.
  • check_dangerous_command evaluates whether a command would be blocked.
  • safe_execute_command runs shell commands through the safety interlock, subject to dry-run or live mode.
  • safe_write_file writes files while applying protection against large AI rewrites.

The configured files include signals.db for behavioral data, activity.json for activity heartbeats, config.yaml for settings, and audit.json for safety events. Blocked AI writes are stored under ~/.humsana/pending_reviews/.

Limitations and notes

Commands do not execute while execution_mode remains dry_run, even when a safety check passes. The project describes its data handling as local and reports no network calls other than an optional notification webhook. The provided setup explicitly documents Claude Desktop, and the server requires a correct path to its built dist/index.js file.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about Humsana MCP

humsana-mcp is an MCP server that connects an AI client to the local Humsana daemon, which tracks developer stress, focus, and fatigue from typing activity. Its main tools report user state, check dangerous commands, safely execute shell commands, and protect files from large AI rewrites.

Install the daemon with `pip install humsana-daemon` and start it with `humsana start`, then install the MCP package using `npm install -g @humsana/mcp-server`. Configure your MCP client to launch the server's `dist/index.js` file with Node.

Change `execution_mode` from `dry_run` to `live` in `~/.humsana/config.yaml`, then restart the MCP client. Dry-run mode is the default and simulates commands without executing them; the README recommends testing live mode with a safe command first.

Add an `humsana` server entry that launches Node with the path to `dist/index.js`, then restart Claude Desktop. The daemon should also be running with `humsana start`.

Blocked AI file writes are stored under `~/.humsana/pending_reviews/`. Safety events are logged in `~/.humsana/audit.json`, while the daemon's behavioral data and activity heartbeats are stored in `signals.db` and `activity.json`.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewHumsana MCP AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/humsana-mcp?style=directory)](https://allmcps.com/mcp/humsana-mcp)
HTML Embed
<a href="https://allmcps.com/mcp/humsana-mcp"><img src="https://allmcps.com/api/badge/humsana-mcp?style=directory" alt="Humsana MCP on AllMCPs" /></a>