Skip to content
MCP server

DOC Model Safety Gate

MCP server that stages AI-proposed content changes for human review before publishing

Runs locally
Install

DOC Model Safety Gate is an open-source MCP server for human-in-the-loop tasks. It runs locally on your machine and is started by your AI client.

Pricing
Open source
Platforms
CLI, API, Self-hosted
Runs
Locally
Version
0.1.2
Listing updated

Similar MCP servers

Install

Run in a terminal

claude mcp add doc-model-safety-gate --env DOCMODEL_API_ENDPOINT='<DOCMODEL_API_ENDPOINT>' --env DOCMODEL_API_TOKEN='<DOCMODEL_API_TOKEN>' --env DOCMODEL_USER_ID='<DOCMODEL_USER_ID>' -- npx -y doc-model-safety-gate

Add to claude_desktop_config.json

{
  "mcpServers": {
    "doc-model-safety-gate": {
      "command": "npx",
      "args": [
        "-y",
        "doc-model-safety-gate"
      ],
      "env": {
        "DOCMODEL_API_ENDPOINT": "<DOCMODEL_API_ENDPOINT>",
        "DOCMODEL_API_TOKEN": "<DOCMODEL_API_TOKEN>",
        "DOCMODEL_USER_ID": "<DOCMODEL_USER_ID>"
      }
    }
  }
}

Add to ~/.cursor/mcp.json

{
  "mcpServers": {
    "doc-model-safety-gate": {
      "command": "npx",
      "args": [
        "-y",
        "doc-model-safety-gate"
      ],
      "env": {
        "DOCMODEL_API_ENDPOINT": "<DOCMODEL_API_ENDPOINT>",
        "DOCMODEL_API_TOKEN": "<DOCMODEL_API_TOKEN>",
        "DOCMODEL_USER_ID": "<DOCMODEL_USER_ID>"
      }
    }
  }
}

Add to .vscode/mcp.json

{
  "servers": {
    "doc-model-safety-gate": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "doc-model-safety-gate"
      ],
      "env": {
        "DOCMODEL_API_ENDPOINT": "<DOCMODEL_API_ENDPOINT>",
        "DOCMODEL_API_TOKEN": "<DOCMODEL_API_TOKEN>",
        "DOCMODEL_USER_ID": "<DOCMODEL_USER_ID>"
      }
    }
  }
}

Add to ~/.codeium/windsurf/mcp_config.json

{
  "mcpServers": {
    "doc-model-safety-gate": {
      "command": "npx",
      "args": [
        "-y",
        "doc-model-safety-gate"
      ],
      "env": {
        "DOCMODEL_API_ENDPOINT": "<DOCMODEL_API_ENDPOINT>",
        "DOCMODEL_API_TOKEN": "<DOCMODEL_API_TOKEN>",
        "DOCMODEL_USER_ID": "<DOCMODEL_USER_ID>"
      }
    }
  }
}

Add to your client's MCP settings (most use this shape)

{
  "mcpServers": {
    "doc-model-safety-gate": {
      "command": "npx",
      "args": [
        "-y",
        "doc-model-safety-gate"
      ],
      "env": {
        "DOCMODEL_API_ENDPOINT": "<DOCMODEL_API_ENDPOINT>",
        "DOCMODEL_API_TOKEN": "<DOCMODEL_API_TOKEN>",
        "DOCMODEL_USER_ID": "<DOCMODEL_USER_ID>"
      }
    }
  }
}

Using several servers? Build one config file with the MCP config generator.

Configuration

  • DOCMODEL_API_ENDPOINTGraphQL endpoint of the Safety Gate APIRequired
  • DOCMODEL_API_TOKENBearer token sent to the Safety Gate APIRequired
  • DOCMODEL_USER_IDIdentity the server acts as (sent as the x-user-id header)Required
  • DOCMODEL_PROJECT_IDProject the server is scoped to (sent as the x-project-id header)
  • DOCMODEL_USER_ROLEmember (default) or admin

About DOC Model Safety Gate

The README says the server sits between AI agents and a CMS-style backend: an agent's proposed edits are staged field by field with original and proposed values, and a person accepts, rejects, or edits each one. The backend refuses a live publish while any output in the linked review run is still pending or rejected, so the gate is enforced server-side rather than by instruction text.

The server is a stdio MCP package that connects to a Safety Gate GraphQL API. It exposes tools for listing pending reviews, reading a run's outputs, reviewing single or bulk outputs, publishing a reviewed run, and rolling back a published run. Connection details, a bearer token, and a user identity are supplied through environment variables.

It is aimed at teams that want AI agents working on content in the Operations layer of the DOC Model but need an approval step before anything goes live. The README describes the project as pre-1.0, and a hosted Safety Gate API is not part of this release, so a compatible endpoint must be run separately.

Tools this server provides (6)

Taken from the project documentation; the running server may differ.

listPendingReviews
List gate runs that still have outputs waiting for a decision.
getGateReview
Read one gate run's outputs: field, original value, AI value, status.
reviewOutput
Accept, reject, or edit a single output.
bulkReviewOutputs
Accept or reject every pending output in a run at once.
publishReviewedRun
Run a workflow live, gated on its review run.
rollbackRun
Roll a published workflow run back.

What it does

Staged review of outputs
Each AI output is held with its original and proposed value so a reviewer can compare them field by field.
Backend-enforced publish gate
Live publishing is refused by the API while the linked review run still has pending or rejected outputs.
Single and bulk review
Reviewers can accept, reject, or edit one output, or act on every pending output in a run at once.
Rollback of published runs
A published workflow run can be rolled back when snapshots exist.
Project and role scoping
Environment variables set the acting user, project scope, and member or admin role.

Good for

  • Letting an AI agent draft CMS content updates while a editor approves each change
  • Auditing which AI-proposed edits were accepted, rejected, or changed before publication
  • Preventing agents from publishing content directly to a live site
  • Rolling back a published content run that turned out to be wrong

Pricing

Open source

Free MIT-licensed MCP server; requires a Safety Gate API endpoint.

DOC Model Safety Gate FAQ

How do I install the server?

The README gives npx doc-model-safety-gate as the quick start, or npm install, npm run build, and node dist/index.js for source. Claude Desktop, Cursor, and Claude Code configuration snippets are included.

Is a hosted Safety Gate API available?

No. The README states that a hosted endpoint is not part of this release, and the server requires a Safety Gate API endpoint to connect to.

What happens if a publish is attempted before review?

The README says the backend returns an error such as "Node has pending AI output. Review all outputs before LIVE run." and does not publish.

What license does DOC Model Safety Gate use?

The README says the project is MIT licensed, with the hosted layer and the DOC Model name kept by the author.

Is DOC Model Safety Gate free?

Yes. DOC Model Safety Gate is open source, so you can use and self-host it for free.

How do I add DOC Model Safety Gate to Claude Code?

Run this command in your terminal: claude mcp add doc-model-safety-gate --env DOCMODEL_API_ENDPOINT='<DOCMODEL_API_ENDPOINT>' --env DOCMODEL_API_TOKEN='<DOCMODEL_API_TOKEN>' --env DOCMODEL_USER_ID='<DOCMODEL_USER_ID>' -- npx -y doc-model-safety-gate

What are the best alternatives to DOC Model Safety Gate?

The closest alternatives to DOC Model Safety Gate are PromptHuman, AgentSupply, workman.rent — humans for real-world checks, AskHooman and Human Use.

Where this comes from

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

How AIPoweredBot checks servers