Master CLI logo

Master CLI

by @master4n

Runs 51 JSON-first developer utilities locally through a built-in stdio MCP server.

Install Master CLI

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": {
    "master4n-master-cli": {
      "command": "npx",
      "args": [
        "-y",
        "@master4n/master-cli"
      ]
    }
  }
}

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

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y @master4n/master-cli

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

@master4n/master-cli exposes the `mfn` command-line toolkit to agents through a built-in stdio MCP server. Its three MCP tools provide command discovery, per-command help, and guarded execution of the catalogued utilities, including file inspection, exact computation, networking checks, and local system actions. Each command returns one machine-readable JSON object, with stable exit codes and non-data output kept on stderr. Reach for it when an agent needs local developer utilities but cannot invoke shell commands directly.

Use cases

  • Inspect only the relevant lines, symbols, or JSON fields from a project
  • Check ports, processes, files, services, and repository state during development
  • Perform exact semver, cron, date, URL, regex, and numeric operations
  • Run guarded local actions such as waiting for a service or replacing text

Key features

  • 51 headless commands with JSON output
  • Built-in stdio MCP server with three agent tools
  • Machine-readable capabilities manifest and per-command help
  • Stable exit codes with clean stdout and stderr separation
  • Dry-run text replacement and deny-listed MCP self-update

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.

6/6 checks healthy over the last 24d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 9d ago via OSV.dev · @master4n/master-cli (npm)

Adoption & maintenance

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

Last commit3mo agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.

How Master CLI works

What @master4n/master-cli does

@master4n/master-cli packages 51 headless command-line utilities under the mfn executable and makes the same catalog available over Model Context Protocol. The toolkit covers four practical areas: reducing context by extracting selected file or JSON content, performing deterministic calculations and conversions, inspecting local projects and system state, and carrying out bounded actions such as waiting for a service or freeing a port.

Commands include JSON path extraction, schema inference, line and symbol inspection, structured diffs, dependency checks, repository status, disk and process information, port discovery, URL and JWT decoding, semver and cron operations, timezone conversion, regular-expression testing, encoding and escaping, HTTP probing, file replacement, directory search, and tree generation. OS-oriented commands also cover clipboard access, notifications, opening validated paths or URLs, DNS lookups, reversible trash operations, and process searches.

How it works

The MCP entry point is mfn mcp, which uses stdio transport and requires no additional MCP dependency. It exposes three tools:

  • mfn_capabilities returns the machine-readable command manifest.
  • mfn_help returns flags and help for an individual command.
  • mfn_run accepts a command name and an argument array, then returns that command's JSON result.

The MCP layer deny-lists update, preventing an MCP-only client from installing packages through the self-update command. Running mfn mcp --json describes the server without starting it.

The underlying CLI accepts flags or piped input and can emit JSON explicitly with --json; non-TTY use also produces machine-readable output. Successful responses use an ok: true object, while failures use ok: false with an error and message. Exit status 0 indicates success, 1 a runtime failure, and 2 invalid usage. Logs, banners, and spinners are sent to stderr so stdout remains suitable for parsing.

Setup and configuration

Install the package globally with:

Terminal
npm install -g @master4n/master-cli

This adds the mfn command. For one-off or agent use, run it without a global installation:

Terminal
npx -y @master4n/master-cli capabilities --json

Configure an MCP client with a stdio server entry such as:

config.json
{
  "mcpServers": {
    "mfn": {
      "command": "npx",
      "args": ["-y", "@master4n/master-cli@latest", "mcp"]
    }
  }
}

The repository also includes an equivalent .mcp.json. The package ships llms.txt with the agent contract and an Agent Skill at skills/mfn/SKILL.md containing the command catalog, output rules, examples, and usage notes.

Tools and capabilities

The command catalog is designed for narrow, single-purpose operations rather than returning large raw inputs. Examples include:

  • Read one JSON value, infer a JSON shape, extract exact line ranges, or list source symbols.
  • Calculate with BigInt-safe arithmetic, convert bases, compare or bump semantic versions, and explain cron schedules.
  • Convert epoch values and timezones, inspect URLs, test regex groups, decode JWT headers and payloads, and apply context-specific escaping.
  • Inspect ports, processes, files, repositories, dependencies, environment files, and disk usage.
  • Find files, build directory trees, probe HTTP endpoints, wait for readiness, replace text with a dry-run default, and move files to the system trash.

Limitations and notes

The MCP transport is stdio, so the client must launch the command and communicate over standard input and output. Local system commands can inspect or affect the machine where mfn runs. Replacement is dry-run by default, while the trash command is designed for reversible deletion. JWT decoding reports header, payload, and expiry information but does not verify the token signature. Strict parsing rejects unknown commands, flags, and missing arguments rather than treating them as successful calls.

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 Master CLI

@master4n/master-cli is an MCP server that connects AI agents to a local developer CLI containing 51 JSON-first commands. Its main tools are mfn_capabilities for discovery, mfn_help for command flags, and mfn_run for executing catalogued utilities such as file inspection, calculations, port checks, and HTTP probes.

Install it globally with `npm install -g @master4n/master-cli`, then configure the client to run `mfn mcp`. For zero-install use, configure `npx` with `-y @master4n/master-cli@latest mcp` as the command and arguments.

Yes, it uses the standard stdio MCP transport and can be configured in an MCP client that supports stdio servers. Add the server command and arguments using `npx -y @master4n/master-cli@latest mcp`.

Run `mfn capabilities --json` to receive the machine-readable manifest. Through MCP, call `mfn_capabilities`; use `mfn_help` for the flags and usage details of a specific command.

Yes, selected commands perform local actions, including dry-run-by-default text replacement, port termination, waiting for a port or URL, and moving files to the operating system trash. The MCP interface deny-lists `update`.

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 PreviewMaster CLI AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/master4n-master-cli?style=directory)](https://allmcps.com/mcp/master4n-master-cli)
HTML Embed
<a href="https://allmcps.com/mcp/master4n-master-cli"><img src="https://allmcps.com/api/badge/master4n-master-cli?style=directory" alt="Master CLI on AllMCPs" /></a>