Safe Mind
MCP server and CLI for running German psychological risk assessments in Safe Mind
Safe Mind is an open-source MCP server for legal and government. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, API
- Runs
- Locally
- Version
- 0.1.2
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add safe-mind --env SAFE_MIND_API_KEY='<SAFE_MIND_API_KEY>' -- npx -y safe-mind-mcpAdd --scope user to use it in every project, or --scope project to share it in .mcp.json.
Or share it with your project
Add to .mcp.json
{
"mcpServers": {
"safe-mind": {
"command": "npx",
"args": [
"-y",
"safe-mind-mcp"
],
"env": {
"SAFE_MIND_API_KEY": "<SAFE_MIND_API_KEY>"
}
}
}
}Add to claude_desktop_config.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.
Add to ~/.cursor/mcp.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.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
codex mcp add safe-mind --env SAFE_MIND_API_KEY='<SAFE_MIND_API_KEY>' -- npx -y safe-mind-mcpOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.safe-mind]
command = "npx"
args = ["-y", "safe-mind-mcp"]
env = { SAFE_MIND_API_KEY = "<SAFE_MIND_API_KEY>" }Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"safe-mind": {
"command": "npx",
"args": [
"-y",
"safe-mind-mcp"
],
"env": {
"SAFE_MIND_API_KEY": "<SAFE_MIND_API_KEY>"
}
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.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
Antigravity
Add to ~/.gemini/config/mcp_config.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 (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.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
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "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.
Junie
Add to ~/.junie/mcp/mcp.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
Add to ~/.kiro/settings/mcp.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.
Using several servers? Build one config file with the MCP config generator.
Configuration
SAFE_MIND_API_KEYSafe Mind API key (sm_live_...). Optional - the safe_mind_register and safe_mind_get_api_key tools can onboard a new account without it.
About Safe Mind
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.
What it does
- 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
Pricing
Open source
Tools are MIT licensed; Safe Mind platform pricing not stated
Safe Mind 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.
