MCP Approval Queue
Human approval gate that lets agents ask before risky actions, with a person deciding
MCP Approval Queue is an open-source MCP server for security. It runs locally on your machine and is started by your AI client.
- Pricing
- Open source
- Platforms
- CLI, Self-hosted
- Runs
- Locally
- Version
- 0.2.0
- Listing updated
Similar MCP servers
Install
Add with the CLI
Run in a terminal
claude mcp add mcp-approval-queue -- npx -y @opafex/mcp-approval-queueAdd --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": {
"mcp-approval-queue": {
"command": "npx",
"args": [
"-y",
"@opafex/mcp-approval-queue"
]
}
}
}Add to claude_desktop_config.json
{
"mcpServers": {
"mcp-approval-queue": {
"command": "npx",
"args": [
"-y",
"@opafex/mcp-approval-queue"
]
}
}
}Settings → Developer → Edit Config, then quit and reopen Claude Desktop.
Add to ~/.cursor/mcp.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.
Add to ~/.copilot/mcp-config.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.
Add with the CLI
Run in a terminal
codex mcp add mcp-approval-queue -- npx -y @opafex/mcp-approval-queueOr add to config.toml
Add to ~/.codex/config.toml
[mcp_servers.mcp-approval-queue]
command = "npx"
args = ["-y", "@opafex/mcp-approval-queue"]Add to your client's MCP settings (most use this shape)
{
"mcpServers": {
"mcp-approval-queue": {
"command": "npx",
"args": [
"-y",
"@opafex/mcp-approval-queue"
]
}
}
}Gemini CLI and Antigravity
Gemini CLI
Add to ~/.gemini/settings.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
Antigravity
Add to ~/.gemini/config/mcp_config.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 (formerly Windsurf)
Add to ~/.config/devin/mcp_config.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
Add to cline_mcp_settings.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
Add to Zed settings.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
Add to Settings → Tools → AI Assistant → Model Context Protocol (MCP) → Add
{ "mcpServers": { "mcp-approval-queue": { "command": "npx", "args": [ "-y", "@opafex/mcp-approval-queue" ] } } }Junie
Add to ~/.junie/mcp/mcp.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
Add to ~/.kiro/settings/mcp.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.
Using several servers? Build one config file with the MCP config generator.
Configuration
APPROVAL_QUEUE_STATE_DIRDirectory holding state.json; the server and the CLI must share it (default ~/.opafex/approval-queue)APPROVAL_QUEUE_TTL_HOURSHours before an undecided request expires (default 24)
About MCP Approval Queue
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.
Tools this server provides (4)
Taken from the project documentation; the running server may differ.
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_statusName suggests: reads
- Poll the status of a pending request
- list_pendingName suggests: reads
- List requests awaiting a decision
- list_rulesName suggests: reads
- List the auto-approve rules
What it does
- 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
Pricing
Open source
Run locally with npx; no price listed.
MCP Approval Queue 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.


