Skip to main content
MCP server CX Codex

humane-proxy — Claude Code MCP server: safety checks

Screens messages for self-harm and criminal intent before they reach an LLM. Use it to flag risky prompts and alert an operator.

Install into Claude Code · Platform CLI All methods and platforms ↓
claude mcp add humane-proxy -e OPENAI_API_KEY=<OPENAI_API_KEY> -e GROQ_API_KEY=<GROQ_API_KEY> -- uvx humane-proxy
Open on GitHub

What humane-proxy does

humane-proxy checks each message before forwarding it to an upstream language model. A self-harm signal can trigger a block and a response with crisis contacts; suspected criminal intent is blocked or flagged. Safe messages continue to the model. In MCP mode, an agent can call check_message_safety, get_session_risk, and list_recent_escalations.

The checks can run through a cascade of heuristics, semantic embeddings, and an LLM reasoning stage. Embeddings require the onnx or ml extra, while the reasoning stage needs an API key. The base setup uses heuristics and SQLite storage, so those later stages are optional. For Claude Code, the setup command passes OPENAI_API_KEY and GROQ_API_KEY; checks that call those APIs depend on the corresponding keys being available.

What it helps with

  • screen a prompt for self-harm before forwarding it to an LLM
  • flag suspected criminal intent and notify an operator
  • check an individual message with an MCP tool
  • inspect session risk and recent escalations

Example prompts for the agent

  • Check this message for safety with check_message_safety.
  • Get the risk level for this session using get_session_risk.
  • List recent escalations with list_recent_escalations.

How to install humane-proxy

Platform CLI

claude mcp add humane-proxy -e OPENAI_API_KEY=<OPENAI_API_KEY> -e GROQ_API_KEY=<GROQ_API_KEY> -- uvx humane-proxy

Replace <…> with your own values. uvx runs the command named after the package; if the README names another one, use uvx --from humane-proxy <command>

Step by step, with commands for each platform: How to add an MCP server to Claude Code, Codex, Cursor, VS Code, Gemini CLI and more

Questions about humane-proxy

How do I install humane-proxy in Claude Code?

Run claude mcp add humane-proxy -e OPENAI_API_KEY=<OPENAI_API_KEY> -e GROQ_API_KEY=<GROQ_API_KEY> -- uvx humane-proxy. This registers the MCP server with the API-key variables.

What does humane-proxy do?

It screens messages for self-harm and criminal intent before forwarding them to an LLM. Risky messages are blocked or flagged, while safe ones pass through.

Which tools does the MCP server expose?

Agents can use check_message_safety, get_session_risk, and list_recent_escalations.

Similar MCP servers

Everything for Security →

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor