Opsecforge Tools logo

Opsecforge Tools

by cyberdroid2077

Local stdio tools for redacting files, scanning staged changes, checking signatures, inspecting JWTs, and hashing files without network calls.

Install Opsecforge Tools

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": {
    "cyberdroid2077-opsecforge-tools": {
      "command": "npx",
      "args": [
        "-y",
        "opsecforge-mcp"
      ]
    }
  }
}

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 opsecforge-mcp

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

cyberdroid2077/opsecforge-tools runs as a local stdio MCP server that keeps sensitive file contents and environment-held secrets out of an agent's context where possible. It redacts local files, scans paths or staged Git changes, verifies webhook signatures, inspects JWT claims, and computes file checksums without making network requests. Reach for it when an agent needs security checks on local files or request bodies but should receive only masked or derived results. Redaction is heuristic, and the optional Claude Code hook is a best-effort guard rather than a sandbox.

Use cases

  • Redact local configuration files before showing them to an agent
  • Scan staged Git changes for likely secrets before committing
  • Verify webhook signatures against raw request bodies offline
  • Inspect JWT claims and time-based risk indicators without signature verification

Key features

  • Local stdio MCP operation with no network calls
  • Heuristic file and text secret redaction
  • Staged-change and directory secret scanning
  • Offline GitHub, Stripe, and generic HMAC verification
  • JWT claim inspection and risk reporting
  • SHA-256 and SHA-512 file checksums

Tools3

What Opsecforge Tools lets your agent do. Expand a tool for its parameters.

Self-reported~6 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.

9/9 checks healthy over the last 33d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 17d ago via OSV.dev · opsecforge-mcp (npm)

Adoption & maintenance

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

npm downloads267Package downloads in the last 30 days.
Last commit2d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed3Callable tools this server registers over MCP.

How Opsecforge Tools works

What cyberdroid2077/opsecforge-tools does

cyberdroid2077/opsecforge-tools provides local security-oriented MCP tools for coding agents. The server reads files, request bodies, or environment variables on the machine running the MCP process and returns redacted content, scan findings, verification diagnostics, decoded claims, or checksums. It makes no network requests and requires neither an account nor an API key.

Its main privacy boundary is the use of paths and environment-variable names instead of passing raw secrets as tool arguments. redact_file returns a masked version of a local text file and a summary of findings. scan_secrets checks selected files, directories, or staged Git additions. redact_text handles text already present in the model context, producing a safer copy for external sharing but not removing the original from context.

How it works

The server communicates over stdio. Every tool runs locally and returns readable errors instead of terminating the server. File operations accept regular files subject to size and binary-file checks. An optional OPSECFORGE_MCP_ROOTS variable restricts file access to a path-delimited set of directories.

Webhook verification reads raw request bytes from a path and obtains the signing secret only from the environment variable named in secret_env. It supports GitHub, Stripe, and generic HMAC signatures. JWT inspection can read a token from an environment variable or accept a token argument; the latter is already exposed to the model. File checksums support SHA-256 and SHA-512.

For Claude Code, the plugin can add the MCP server, a skill, and a PreToolUse hook. The hook blocks several direct reads of common secret-file patterns and points the agent toward redaction. The standalone MCP configuration can also be used without the hook.

Setup and configuration

Node.js 20 or newer is required. Claude Code can install the plugin with its marketplace and plugin commands, or add the server directly with claude mcp add. Codex uses an mcp_servers.opsecforge entry in ~/.codex/config.toml, while Cursor uses an opsecforge stdio entry in project or global .cursor/mcp.json.

Export environment variables in the shell that starts the agent, or configure them in the MCP server's client entry. Variables referenced by verify_webhook and inspect_jwt must exist in the MCP process environment. Do not paste those secret values into chat or commit them. Set OPSECFORGE_MCP_ROOTS for optional file-path restrictions.

Tools and capabilities

  • redact_file({ path }) masks detected secrets in text files up to 1 MiB and reports types, counts, and original line numbers.
  • scan_secrets({ paths?, staged? }) scans files, directories, or added lines from git diff --cached; directory scans skip common generated and dependency paths, symlinks, binaries, and files beyond the stated limits.
  • redact_text({ text }) creates a masked copy of text already held by the agent.
  • verify_webhook({ provider, body_path, secret_env, signature, algorithm?, tolerance_seconds? }) checks GitHub, Stripe, or generic HMAC signatures and reports formatting, timestamp, and body-reformatting diagnostics.
  • inspect_jwt({ token_env?, token? }) decodes headers and claims, reports time-claim status and risk indicators, but does not verify signatures.
  • file_checksum({ path, algorithm, expected? }) hashes local files up to 32 MiB and can compare the result with common expected-value formats.

Limitations and notes

Secret detection uses heuristics. It covers common key formats, headers, fields, and JWT-shaped strings, but can miss custom formats, secrets in prose, base64-wrapped values, or unusual multiline values. It may also flag harmless values. Redacted output still includes unmatched content such as internal URLs or personal data.

The Claude Code hook is not a sandbox and cannot reliably stop indirect reads performed by scripts, build tools, shell expansion, or programs. Codex and Cursor do not provide an equivalent hook, so their protection depends on the agent choosing these tools and on the client's own permissions or sandbox. A clean scan means only that no configured detector matched. Secrets that have already reached a model context, log, or commit should be rotated. scan_secrets is not a replacement for a maintained dedicated scanner in CI.

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 Opsecforge Tools

cyberdroid2077/opsecforge-tools is an MCP server that connects AI coding agents to local files, request bodies, and environment-held secrets without network calls. Its main tools redact files, scan staged changes, verify GitHub, Stripe, or generic HMAC webhooks, inspect JWTs, and calculate SHA-256 or SHA-512 checksums.

Install Node.js 20 or newer, then add the stdio server with your client configuration. Claude Code supports `claude mcp add opsecforge -- npx -y opsecforge-mcp`; Codex uses `~/.codex/config.toml`; Cursor uses `.cursor/mcp.json` or its global equivalent. Claude Code also offers a plugin with a guard hook.

Yes, Cursor can run it as a stdio MCP server. Add an `opsecforge` entry with command `npx` and arguments `-y`, `opsecforge-mcp` to project or global `.cursor/mcp.json`. Cursor has no equivalent of the Claude Code `PreToolUse` hook, so the tools remain advisory.

Yes, `verify_webhook` performs local verification for GitHub, Stripe, and generic HMAC signatures. It reads the raw body from a file and gets the secret from an environment variable named by `secret_env`; it does not accept a plaintext secret parameter or return the secret.

No, `inspect_jwt` decodes JWT headers and claims but does not verify the signature. It reports time-claim status and risk indicators such as `alg: none`, unverifiable HMAC algorithms, missing `exp`, and key-discovery headers. Prefer `token_env` when keeping the raw token out of tool arguments.

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 PreviewOpsecforge Tools AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/cyberdroid2077-opsecforge-tools?style=directory)](https://allmcps.com/mcp/cyberdroid2077-opsecforge-tools)
HTML Embed
<a href="https://allmcps.com/mcp/cyberdroid2077-opsecforge-tools"><img src="https://allmcps.com/api/badge/cyberdroid2077-opsecforge-tools?style=directory" alt="Opsecforge Tools on AllMCPs" /></a>