# MCP Approval Queue

> MCP Approval Queue is an open-source MCP server for security. Human approval gate that lets agents ask before risky actions, with a person deciding. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Open source
- **Platforms:** CLI, Self-hosted
- **Repository:** https://github.com/opafex/opafex-mcps/tree/HEAD/packages/approval-queue
- **MCP Registry name:** io.github.Opafex/mcp-approval-queue
- **Categories:** [security](https://ai-powered.com/categories/security), [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-11-23

## About

The server exposes a request_approval tool that an agent calls before deleting data, sending email, spending money or deploying. Each request is scored for risk from the action name and any estimated cost, and the agent receives a proceed true or false answer it can act on.

There is deliberately no tool for approving, rejecting or adding rules, so the gated model cannot open its own gate. Decisions come from a person, either through a form in clients that support MCP elicitation or from a terminal using the bundled pending, approve and reject commands.

Rules a human has created can auto-approve low and medium risk actions; high and critical risk always goes to a person. Undecided requests expire after 24 hours by default, and state is kept in a local directory shared by the server and the command line.

## Features

- **Risk-scored requests:** Scores each action from its name and estimated cost; an agent-supplied category can only raise the score.
- **Human-only decisions:** No approve, reject or rule tool is exposed to the model.
- **Elicitation form:** Clients that support MCP elicitation show the action, risk and reason directly to you.
- **Terminal fallback:** Pending requests can be listed, approved or rejected from the command line.
- **Always-approve rules:** Low and medium risk actions can be auto-approved by rules a person created.
- **Request expiry:** Undecided requests lapse after a configurable number of hours.

## Good for

- Require sign-off before an agent deletes records
- Gate outbound email or payments behind a person
- Approve deployments an agent proposes
- Audit which risky actions were approved and why

## Install

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

```sh
claude mcp add mcp-approval-queue -- npx -y @opafex/mcp-approval-queue
```

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": {
    "mcp-approval-queue": {
      "command": "npx",
      "args": [
        "-y",
        "@opafex/mcp-approval-queue"
      ]
    }
  }
}
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "mcp-approval-queue": {
      "command": "npx",
      "args": [
        "-y",
        "@opafex/mcp-approval-queue"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp-approval-queue": {
      "command": "npx",
      "args": [
        "-y",
        "@opafex/mcp-approval-queue"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp-approval-queue": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@opafex/mcp-approval-queue"
      ]
    }
  }
}
```

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 mcp-approval-queue -- npx -y @opafex/mcp-approval-queue
```

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

```toml
[mcp_servers.mcp-approval-queue]
command = "npx"
args = ["-y", "@opafex/mcp-approval-queue"]
```

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

```json
{
  "mcpServers": {
    "mcp-approval-queue": {
      "command": "npx",
      "args": [
        "-y",
        "@opafex/mcp-approval-queue"
      ]
    }
  }
}
```

Or run: gemini mcp add -s user mcp-approval-queue npx -- -y @opafex/mcp-approval-queue

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

```json
{
  "mcpServers": {
    "mcp-approval-queue": {
      "command": "npx",
      "args": [
        "-y",
        "@opafex/mcp-approval-queue"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp-approval-queue": {
      "command": "npx",
      "args": [
        "-y",
        "@opafex/mcp-approval-queue"
      ]
    }
  }
}
```

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": {
    "mcp-approval-queue": {
      "command": "npx",
      "args": [
        "-y",
        "@opafex/mcp-approval-queue"
      ]
    }
  }
}
```

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

### Zed (Zed settings.json)

```json
{
  "context_servers": {
    "mcp-approval-queue": {
      "command": "npx",
      "args": [
        "-y",
        "@opafex/mcp-approval-queue"
      ]
    }
  }
}
```

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": {
    "mcp-approval-queue": {
      "command": "npx",
      "args": [
        "-y",
        "@opafex/mcp-approval-queue"
      ]
    }
  }
}
```

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

```json
{
  "mcpServers": {
    "mcp-approval-queue": {
      "command": "npx",
      "args": [
        "-y",
        "@opafex/mcp-approval-queue"
      ]
    }
  }
}
```

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

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

```json
{
  "mcpServers": {
    "mcp-approval-queue": {
      "command": "npx",
      "args": [
        "-y",
        "@opafex/mcp-approval-queue"
      ]
    }
  }
}
```

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": {
    "mcp-approval-queue": {
      "command": "npx",
      "args": [
        "-y",
        "@opafex/mcp-approval-queue"
      ]
    }
  }
}
```

## Tools

From the tool list in its README, going by the names, 3 of 4 tools read data; 1 name doesn't say. From the server's own tool labels and tool names; not verified by us.

- `request_approval`: Submit an action for risk scoring and human approval
- `check_status` (name suggests: reads): Poll the status of a pending request
- `list_pending` (name suggests: reads): List requests awaiting a decision
- `list_rules` (name suggests: reads): List the auto-approve rules

## FAQ

### Can the agent approve its own request?

No. The README says there is no approve, reject or add-rule tool for the model to call.

### What needs Node?

Node.js 20 or newer is required.

### How long does a request stay open?

24 hours by default, set with APPROVAL_QUEUE_TTL_HOURS.

### Where is state stored?

In a state.json under ~/.opafex/approval-queue by default, configurable with APPROVAL_QUEUE_STATE_DIR.

### Is MCP Approval Queue free?

Yes. MCP Approval Queue is open source, so you can use and self-host it for free.

### How do I add MCP Approval Queue to Claude Code?

Run this command in your terminal: claude mcp add mcp-approval-queue -- npx -y @opafex/mcp-approval-queue

### What are the best alternatives to MCP Approval Queue?

The closest alternatives to MCP Approval Queue are REA, Context7, Chrome DevTools MCP, Codebase Memory and GitHub.

## Where this comes from

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

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Context7](https://ai-powered.com/mcp/context7): Context7 is a freemium MCP server for developer tools.
- [Chrome DevTools MCP](https://ai-powered.com/mcp/chrome-devtools-mcp-2): Chrome DevTools MCP is an open-source MCP server for browser automation.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [awesome-mcp-servers](https://ai-powered.com/mcp/awesome-mcp-servers-2): awesome-mcp-servers is an open-source MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/mcp-approval-queue
