# Safe Mind

> Safe Mind is an open-source MCP server for legal and government. MCP server and CLI for running German psychological risk assessments in Safe Mind. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, API
- **Repository:** https://github.com/lewo-media/safe-mind-tools
- **MCP Registry name:** io.github.lewo-media/safe-mind
- **Categories:** [legal and government](https://ai-powered.com/categories/legal-and-government), [health and science](https://ai-powered.com/categories/health-and-science)
- **Listing updated:** 2026-11-23

## About

Safe Mind is a German platform for the legally required psychological risk assessment of workplaces, known as the Gefährdungsbeurteilung psychischer Belastung or GBU Psyche. This server and the companion CLI wrap its Public API v1 so an assistant can set up and read assessments for a company.

Per the registry entry, the server covers surveys, departments and analytics. A survey can be created with a start date, a duration in weeks, an employee count and a list of departments. The README notes that analytics endpoints return only aggregated results and that groups below the minimum group size are filtered on the server, which protects respondents' anonymity.

Authentication uses a Safe Mind API key, but the key is optional at startup: the registry entry says the register and get-key tools can onboard a new account without one. It runs from npm and is MIT licensed.

## Features

- **Survey setup:** Creates assessment surveys with dates, headcount and departments.
- **Department handling:** Organises respondents by department.
- **Aggregated analytics:** Returns only aggregated results, filtered by minimum group size.
- **Account onboarding:** Register and key tools can create an account without a key.
- **CLI companion:** A terminal client covers the same Public API v1.
- **MIT licence:** Source is published under the MIT licence.

## Good for

- Set up a GBU Psyche survey for several departments
- Pull aggregated results for a workplace assessment
- Script survey creation from the terminal
- Onboard a new Safe Mind account from an assistant

## Install

### Claude Code: Add with the CLI (Terminal)

```sh
claude mcp add safe-mind --env SAFE_MIND_API_KEY='<SAFE_MIND_API_KEY>' -- npx -y safe-mind-mcp
```

Add --scope user to use it in every project, or --scope project to share it in .mcp.json.

### Claude Code: Or share it with your project (.mcp.json)

```json
{
  "mcpServers": {
    "safe-mind": {
      "command": "npx",
      "args": [
        "-y",
        "safe-mind-mcp"
      ],
      "env": {
        "SAFE_MIND_API_KEY": "<SAFE_MIND_API_KEY>"
      }
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "safe-mind": {
      "command": "npx",
      "args": [
        "-y",
        "safe-mind-mcp"
      ],
      "env": {
        "SAFE_MIND_API_KEY": "<SAFE_MIND_API_KEY>"
      }
    }
  }
}
```

Settings → Developer → Edit Config, then quit and reopen Claude Desktop.

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "safe-mind": {
      "command": "npx",
      "args": [
        "-y",
        "safe-mind-mcp"
      ],
      "env": {
        "SAFE_MIND_API_KEY": "<SAFE_MIND_API_KEY>"
      }
    }
  }
}
```

Use .cursor/mcp.json in a project to share it with the project.

### VS Code (~/.copilot/mcp-config.json)

```json
{
  "mcpServers": {
    "safe-mind": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "safe-mind-mcp"
      ],
      "env": {
        "SAFE_MIND_API_KEY": "<SAFE_MIND_API_KEY>"
      }
    }
  }
}
```

Or put the same entry in .mcp.json at your workspace root to share it.

### Codex: Add with the CLI (Terminal)

```sh
codex mcp add safe-mind --env SAFE_MIND_API_KEY='<SAFE_MIND_API_KEY>' -- npx -y safe-mind-mcp
```

### Codex: Or add to config.toml (~/.codex/config.toml)

```toml
[mcp_servers.safe-mind]
command = "npx"
args = ["-y", "safe-mind-mcp"]
env = { SAFE_MIND_API_KEY = "<SAFE_MIND_API_KEY>" }
```

### Gemini CLI and Antigravity: Gemini CLI (~/.gemini/settings.json)

```json
{
  "mcpServers": {
    "safe-mind": {
      "command": "npx",
      "args": [
        "-y",
        "safe-mind-mcp"
      ],
      "env": {
        "SAFE_MIND_API_KEY": "<SAFE_MIND_API_KEY>"
      }
    }
  }
}
```

Or run: gemini mcp add -s user -e SAFE_MIND_API_KEY='<SAFE_MIND_API_KEY>' safe-mind npx -- -y safe-mind-mcp

### Gemini CLI and Antigravity: Antigravity (~/.gemini/config/mcp_config.json)

```json
{
  "mcpServers": {
    "safe-mind": {
      "command": "npx",
      "args": [
        "-y",
        "safe-mind-mcp"
      ],
      "env": {
        "SAFE_MIND_API_KEY": "<SAFE_MIND_API_KEY>"
      }
    }
  }
}
```

Use .agents/mcp_config.json to add it to one workspace only.

### Devin Desktop (~/.config/devin/mcp_config.json)

```json
{
  "mcpServers": {
    "safe-mind": {
      "command": "npx",
      "args": [
        "-y",
        "safe-mind-mcp"
      ],
      "env": {
        "SAFE_MIND_API_KEY": "<SAFE_MIND_API_KEY>"
      }
    }
  }
}
```

On Windows the file is %APPDATA%\\devin\\mcp_config.json. Use .devin/mcp_config.json to share it with a project.

### Cline (cline_mcp_settings.json)

```json
{
  "mcpServers": {
    "safe-mind": {
      "command": "npx",
      "args": [
        "-y",
        "safe-mind-mcp"
      ],
      "env": {
        "SAFE_MIND_API_KEY": "<SAFE_MIND_API_KEY>"
      }
    }
  }
}
```

Open it from the MCP Servers icon → Configure → Configure MCP Servers.

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "safe-mind": {
      "command": "npx",
      "args": [
        "-y",
        "safe-mind-mcp"
      ],
      "env": {
        "SAFE_MIND_API_KEY": "<SAFE_MIND_API_KEY>"
      }
    }
  }
}
```

Open it with zed: open settings file. Merge context_servers into the settings you already have.

### JetBrains AI Assistant and Junie: AI Assistant (Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add)

```json
{
  "mcpServers": {
    "safe-mind": {
      "command": "npx",
      "args": [
        "-y",
        "safe-mind-mcp"
      ],
      "env": {
        "SAFE_MIND_API_KEY": "<SAFE_MIND_API_KEY>"
      }
    }
  }
}
```

The AI Assistant docs only show command and args. If the env block is ignored, use Junie for this server.

### JetBrains AI Assistant and Junie: Junie (~/.junie/mcp/mcp.json)

```json
{
  "mcpServers": {
    "safe-mind": {
      "command": "npx",
      "args": [
        "-y",
        "safe-mind-mcp"
      ],
      "env": {
        "SAFE_MIND_API_KEY": "<SAFE_MIND_API_KEY>"
      }
    }
  }
}
```

Use .junie/mcp/mcp.json to share it with a project.

### Kiro (~/.kiro/settings/mcp.json)

```json
{
  "mcpServers": {
    "safe-mind": {
      "command": "npx",
      "args": [
        "-y",
        "safe-mind-mcp"
      ],
      "env": {
        "SAFE_MIND_API_KEY": "<SAFE_MIND_API_KEY>"
      }
    }
  }
}
```

Use .kiro/settings/mcp.json to add it to one workspace only.

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "safe-mind": {
      "command": "npx",
      "args": [
        "-y",
        "safe-mind-mcp"
      ],
      "env": {
        "SAFE_MIND_API_KEY": "<SAFE_MIND_API_KEY>"
      }
    }
  }
}
```

## FAQ

### What is GBU Psyche?

It is the legally required psychological risk assessment in Germany, which Safe Mind supports.

### Do I need an API key?

It is optional at first, because the register and get-key tools can onboard a new account.

### Is individual response data exposed?

The README says analytics return only aggregated results, with small groups filtered out server-side.

### How do I install Safe Mind?

Add npx -y safe-mind-mcp to your MCP client config, with SAFE_MIND_API_KEY if you have a key.

### Is Safe Mind free?

Yes. Safe Mind is open source, so you can use and self-host it for free.

### How do I add Safe Mind to Claude Code?

Run this command in your terminal: claude mcp add safe-mind --env SAFE_MIND_API_KEY='<SAFE_MIND_API_KEY>' -- npx -y safe-mind-mcp

### What are the best alternatives to Safe Mind?

The closest alternatives to Safe Mind are Tooluniverse, Oya Browser, China Law MCP, BasalFit and x402 Micropayments MCP.

## Where this comes from

- Description: written from the project's README.
- Install steps: from the official MCP Registry entry.

## Alternatives

- [Tooluniverse](https://ai-powered.com/mcp/tooluniverse): Tooluniverse is an open-source MCP server for health and science.
- [Oya Browser](https://ai-powered.com/mcp/oya-browser): Oya Browser is a freemium MCP server for browser automation.
- [China Law MCP](https://ai-powered.com/mcp/china-law-mcp): China Law MCP is an open-source MCP server for legal and government.
- [BasalFit](https://ai-powered.com/mcp/basalfit): BasalFit is a free MCP server for health and science.
- [x402 Micropayments MCP](https://ai-powered.com/mcp/x402-micropayments-mcp): x402 Micropayments MCP is a paid MCP server for finance and payments.
- [USPTO & EPO Patent Claims, Family & Litigation MCP](https://ai-powered.com/mcp/uspto-and-epo-patent-claims-family-and-litigation-mcp): USPTO & EPO Patent Claims, Family & Litigation MCP is a freemium MCP server for legal and government.
- [Fed Contracts](https://ai-powered.com/mcp/fed-contracts): Fed Contracts is a free MCP server for legal and government.
- [Dosyai](https://ai-powered.com/mcp/dosyai): Dosyai is a free MCP server for legal and government.

---
Source: https://ai-powered.com/mcp/safe-mind
