MCP Tool Control logo

MCP Tool Control

Controls filesystem changes through reviewable, expiring plans and trusted approval before execution.

Install MCP Tool Control

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "mcp-tool-control": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-tool-control"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

Automated check passed— started and listed 3 tools correctly ().

Overview

mcp-tool-control is a TypeScript MCP server for separating filesystem write planning from approval and execution. It exposes tools for bounded text inspection, immutable change plans, and applying only an approved plan. A trusted host keeps approval authority outside the model-facing MCP boundary, while the server checks paths, filesystem state, expiry, and replay conditions. Reach for it when an agent needs controlled workspace writes rather than unrestricted file operations.

Use cases

  • Inspect submitted text without returning its contents
  • Create reviewable filesystem change plans
  • Require human approval before applying workspace writes
  • Embed controlled write execution in a trusted host

Key features

  • Expiring immutable write plans
  • Trusted host approval separated from MCP
  • Path, traversal, symlink, and overlap validation
  • Stale-state and replay protection
  • Atomic staged file replacement
  • Privacy-preserving audit events

Tools3

What MCP Tool Control lets your agent do. Expand a tool for its parameters.

Verified live~483 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

4/4 checks healthy over the last 15d

What it can do

From the 3 tools this server returned when we ran it; 3 declare their own safety hints.

Can delete or modify data · 1Makes network requests · 2Read-only tools · 2
Network at startup3 connections
Files written at startupNone
Install scriptsNone
npm provenanceNot published
Package age22 days
Maintainers1

Observed 2026-11-16 in an isolated sandbox. A description of reach, not a security audit.

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 15d ago via OSV.dev · mcp-tool-control (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

npm downloads273Package downloads in the last 30 days.
Last commit1mo agoMost recent push to the default branch.
Availability100%Our rolling endpoint + install checks that succeeded.
Install checkPassedOur sandbox started it and listed its tools.
Tools exposed3Callable tools this server registers over MCP.

How MCP Tool Control works

What mcp-tool-control does

mcp-tool-control provides a reference implementation for MCP tools that distinguish read, plan, and write access. Its included tools are inspect-text, plan-changes, and apply-changes. Text inspection returns bounded structural metadata without returning the submitted text. Change planning validates workspace paths, records filesystem state, and stores an immutable plan that expires after a configurable period. Applying changes is limited to the exact stored plan instance approved by trusted host code.

The project is intended as a foundation for controlled tool execution and as a security reference. It is not an operating-system sandbox or a production-ready remote service.

How it works

The normal write flow begins when the model calls plan-changes. The server checks target paths and snapshots their expected state before retaining the proposed writes. A host-side approval controller then approves or rejects the specific plan. The model can request apply-changes with the plan identifier, but possessing that identifier does not grant approval.

Before writing, the server verifies the plan, its approval, and the expected filesystem state. Approval is consumed once, which helps prevent replay. Files are staged through exclusive temporary files, flushed, revalidated, and replaced. Path handling covers absolute paths, traversal, symlinks, junctions, duplicate targets, overlapping targets, and case-insensitive comparisons.

Embedding applications receive separate server and approval-controller capabilities from createMcpToolControl(). The MCP-facing server can be given to the model transport, while the controller remains in authenticated trusted host code. The package also exposes host tools for trusted in-process execution and tool metadata.

Setup and configuration

The package requires Node.js 20 or newer and npm. A checkout can be installed and checked with:

Terminal
npm ci
npm run check

Run the bundled stdio server with npm start. For a published-package setup, an MCP client can launch npx -y mcp-tool-control; its working directory becomes the allowed workspace root. A cloned checkout can instead run node against the built dist/server.js file.

For standalone approval, launch mcp-tool-control-host through npx. This host prompts on the controlling terminal when a plan is waiting. Approval input stays on /dev/tty or the Windows console and is not sent through MCP. A non-interactive terminal fails closed: plans can be created, but not approved.

Embedded hosts can set the allowed root, maximum pending plan count, retained plan-byte budget, an audit callback, and an internal-error callback. The default pending-plan expiry is ten minutes, with defaults of 100 plans and 16 MiB of retained serialized file and expected-state data.

Tools and capabilities

  • inspect-text: returns bounded structural metadata without echoing input text.
  • plan-changes: validates contained paths, captures expected filesystem state, and creates an expiring immutable write plan.
  • apply-changes: executes only the exact plan instance that trusted host code approved.
  • Expected-state hashes reject stale writes.
  • Conflict previews can report a bounded first difference with line, column, before/after text, and an omission indicator.
  • Audit events are privacy-preserving and delivered on a best-effort basis.

Limitations and notes

The standalone MCP entry point has no MCP-accessible approval path. Do not expose the approval controller through an unauthenticated HTTP, IPC, queue, callback, or MCP endpoint. Plan identifiers are lookup keys, not authority, and recreating an expired plan does not transfer a previous approval.

Pending plans are kept in memory. Active plans are not evicted when configured storage limits are reached; new plans that exceed the count or byte limit fail instead. Audit delivery is not awaited or retried, and audit sink failures do not change tool results or approval state. Conflict previews support review but are not a substitute for checking the complete intended writes.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about MCP Tool Control

mcp-tool-control is an MCP server that connects agents to bounded text inspection and controlled workspace file changes. Its main tools are inspect-text, plan-changes, and apply-changes. It stores expiring plans, validates filesystem state, and requires approval from trusted host code before applying the exact approved plan.

Install it by launching the published package with npx, or clone the repository and run npm ci. A client can use npx -y mcp-tool-control as a stdio server, while a checkout can run the built dist/server.js entrypoint with Node.js 20 or newer.

Approve it through the trusted host approval controller, not through an MCP tool call. The bundled mcp-tool-control-host prompts on the controlling terminal, while embedded applications can call approvalController.approve(planId) from trusted host code. Without an interactive terminal, standalone use fails closed.

Yes. Both VS Code and Claude Desktop can launch it as a stdio server with npx and a workspace directory. VS Code uses mcp.json, while Claude Desktop uses claude_desktop_config.json. The standalone server can inspect and create plans, but applying writes requires a trusted approval host.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewMCP Tool Control AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/mcp-tool-control?style=directory)](https://allmcps.com/mcp/mcp-tool-control)
HTML Embed
<a href="https://allmcps.com/mcp/mcp-tool-control"><img src="https://allmcps.com/api/badge/mcp-tool-control?style=directory" alt="MCP Tool Control on AllMCPs" /></a>