Server data from the Official MCP Registry
Local stdio masking for explicit text/JSON. Restoration returns originals to the caller.
About
Local stdio masking for explicit text/JSON. Restoration returns originals to the caller.
Security Report
Valid MCP server (0 strong, 2 medium validity signals). No known CVEs in dependencies. Package registry verified. Imported from the Official MCP Registry.
3 files analyzed · 1 issue found
Security scores are indicators to help you make informed decisions, not guarantees. Always review permissions before connecting any MCP server.
Permissions Required
This plugin requests these system permissions. Most are normal for its category.
How to Install
Add this to your MCP configuration file:
{
"mcpServers": {
"mcp": {
"command": "npx",
"args": [
"-y",
"@promptaudit/mcp@0.1.4"
]
}
}
}Some servers take additional arguments. See the repository for details.
Documentation
View on GitHubFrom the project's GitHub README.
@promptaudit/mcp

Local, reversible masking of personal data and developer secrets for MCP clients and the command line.
- MIT · zero runtime dependencies · stdio · no network calls in the package
- Shared local core:
@promptaudit/shield - Checksum validation for IBAN, payment cards and ABA routing; structural rules for US SSNs
- No registration, telemetry or licence checks; no proprietary platform modules
Important: Only explicitly supplied text is processed. Installing this server does not automatically intercept prompts or other tools. Masking later cannot undo disclosure of originals already sent to a model.
Release status: 0.1.4 is published on npm and listed as active in the official MCP Registry, verified on 30 November 2026. The downloaded npm artifact passed local CLI and stdio checks with fictional data. Registry inclusion is not certification or client approval; see release evidence.
Example with fictional data
DB_PASSWORD=fictional-password
Contact jane@example.com
DB_PASSWORD=[SECRET_1]
Contact [EMAIL_1]
Setup: preview first, write explicitly
npx @promptaudit/mcp@0.1.4 init
npx @promptaudit/mcp@0.1.4 init --client cursor --write
Clients: claude (Claude Desktop), cursor, windsurf, all. Without an explicit selection, only existing configuration directories are considered; this does not check whether the application is installed or running. Explicit client selection may create its directory. Configuration is never changed without --write. Existing files receive a private backup alongside the original; unrelated servers are preserved. Conflicting PromptAudit entries, invalid JSON and symbolic links are rejected, not overwritten. When configuring multiple clients, earlier changes may remain if a later client has a conflict.
| Client profile | Configuration file |
|---|---|
| Cursor | ~/.cursor/mcp.json |
| Windsurf | ~/.codeium/windsurf/mcp_config.json |
| Claude Desktop, macOS | ~/Library/Application Support/Claude/claude_desktop_config.json |
| Claude Desktop, Windows | %APPDATA%/Claude/claude_desktop_config.json |
| Claude profile, Linux | ~/.config/Claude/claude_desktop_config.json (not a claim of official Linux support) |
These file profiles are automatically tested with fictional configurations, not real editor installations. Current application versions may require different paths or additional permissions. Claude Code is not an automatically configured profile in this release.
Alternatively, configure a stdio MCP client manually:
{
"mcpServers": {
"promptaudit": {
"command": "npx",
"args": ["-y", "@promptaudit/mcp@0.1.4"]
}
}
}
npx itself may download the package from npm. For offline use, install the published package locally in advance and configure the local promptaudit-mcp executable. The package itself opens no network connections.
Claude Code and enterprise review
Claude Code uses manual stdio configuration; init --client claude targets Claude Desktop, not Claude Code:
claude mcp add --transport stdio --scope project promptaudit -- npx -y @promptaudit/mcp@0.1.4
Review project configuration and client permissions before use. This command is documented against vendor guidance, not an end-to-end client certification. Installing a server does not prevent original text reaching a model through other tools.
Enterprise integration and security review · Client configuration · Registry submission descriptor · Official MCP Registry entry.
Tools and data flow
| Tool | Output | Behaviour on repeated calls |
|---|---|---|
mask_text | Masked text, category counts and a local session_id; no mapping table | New session; not idempotent |
scan_text | Category counts and clean; no matched values or session | Idempotent |
mask_json | Masked JSON string values, categories and session_id | New session |
restore_json | Originals returned to the client, JSON-escaped | Idempotent within the session |
restore_text | Originals returned to the calling client | Idempotent within a valid session |
All four MCP tool annotation hints are declared. These are descriptive metadata, not technical access controls or external quality assurances.
Restoration boundary: restore_text and restore_json return originals in MCP responses. The client may pass them to its model. If originals must remain exclusively local, use the Shield library outside the model context for restoration, not the MCP tool. The mapping table itself stays in the server process.
Sessions expire no later than 60 minutes after creation, not after inactivity. Limits: 500 sessions and 8 million stored mapping characters; older sessions may be evicted earlier. Maximum input: 1 million characters per call. Sessions cannot be recovered after the process exits. Removing references does not guarantee physical RAM erasure; the operating system, memory dumps and the client are outside this boundary.
Custom terms and JSON
mask_text, scan_text and mask_json optionally accept custom_terms: up to 1,000 terms of 1–256 UTF-16 code units each. Whole-word matching, case-insensitive, no regular expressions. Terms apply only to that call and extend the built-in patterns.
{"name":"mask_json","arguments":{"json":"{\"project\":\"Orion\",\"contact\":\"jane@example.com\",\"amount\":9007199254740993}","custom_terms":["Orion"]}}
For JSON, always use restore_json with the returned session_id: quotes and line breaks in originals are escaped correctly. restore_text is not a JSON serializer. Restoration is still deliberate disclosure to the client. Custom terms produce the TERM category. Placeholder-like values are reserved in the new JSON/custom-term path; the legacy text path without a term list is unchanged.
Terminal and CI
promptaudit-mcp mask prompt.txt
git diff --no-ext-diff | promptaudit-mcp scan
promptaudit-mcp scan fixture.txt
scan exit codes: 0 = no supported pattern detected, 1 = matches, 2 = input/processing error. clean: true means only “no supported pattern detected”. mask does not rewrite the source file. Output may contain undetected sensitive data and must be reviewed before sharing. File access occurs only in the CLI when a file is explicitly supplied; the MCP server has no file or Git access tools.
Useful as a local building block for text preparation, support logs and Git diffs. Non-developers can also use a compatible MCP client; the data flow, not the profession, determines suitability. Lovable or web chats can receive text already masked locally, but there is no direct automatic integration with this stdio server.
0.1.4: directory and staged checks
The following commands are included in published 0.1.4, not in 0.1.3. Install and review the exact npm artifact locally before use. Hooks require a fixed local executable, not a runtime npx download.
node /absolute/path/to/local/cli.js scan ./config
node /absolute/path/to/local/cli.js scan --staged
node /absolute/path/to/local/cli.js hook install # preview only
node /absolute/path/to/local/cli.js hook install --dry-run # preview only
node /absolute/path/to/local/cli.js hook install --write
scan --staged inspects the full staged blob of each added/modified/copied/renamed file, not the working-tree copy and not just added diff lines. Removed files are excluded. This can flag supported sensitive values that were already present in a changed file. Reports contain category counts and inspected-file count, never matched values or filenames. Counts are unique matched values per category per file, summed across files; they are not necessarily occurrence counts.
Directory scanning includes dotfiles, skips .git and node_modules, and does not follow symbolic links. Limits: 128 files, 4,096 visited entries, 16 directory levels, 4 MB and 1 million UTF-16 code units per file, 8 MB total. Input must be UTF-8 text without NUL bytes; files with other binary formats may not be recognizable. Unsupported binary/linked/submodule/unmerged/over-budget input returns exit 2, without a partial clean report. Direct stdin diff scanning remains text-pattern inspection, not a Git-aware parser.
Hooks run a preinstalled local Node executable and this CLI bundle with scan --staged: no package download at commit time. Existing unrelated hooks, custom core.hooksPath settings and linked destinations are refused and left unchanged. Integrate manually with an existing hook rather than overwriting it. Preview writes nothing; installation requires --write. Because nothing existing is replaced, the hook installer creates no replacement backup. The existing MCP client setup retains its backup behaviour.
An installed hook refuses commits for exit 1 and exit 2. A missing/moved runtime or CLI also refuses the commit. Git hooks can be bypassed or removed and are not centralized enforcement. There is no automatic push protection, historical scan or protection for every credential format. Review false positives locally; do not treat a blocked commit as proof of an actual leaked key. The POSIX hook is intended for Git environments with sh; platform-specific use still requires validation.
Recognised patterns and limits
OpenAI, Anthropic, AWS, GitHub and Slack key patterns; private-key blocks; JWTs; credential-bearing PostgreSQL/MySQL/MongoDB/Redis/AMQP URLs; Bearer values; typical .env password/secret/token assignments; IBAN; payment cards; US SSNs; ABA routing; email; international phone numbers; names following English titles.
These rules are pattern matching, not language understanding. New key formats, names without titles, free-form addresses, encoded values and complex or multiline .env values may remain undetected. mask_json processes serialized JSON: string values only, at most 64 nesting levels and 50,000 strings. Keys, number lexemes (including large integers), whitespace and structure remain unchanged and unprotected. Invalid input is rejected. CSV processing is not part of this release; free-text masking does not guarantee syntax preservation. Existing placeholder-like input may collide during restoration. Normalization removes invisible characters and folds full-width characters; restoration returns the normalized matched values.
Development and testing
From the package directory:
bun test src
bun run build
node dist/cli.js --version
The build bundles only this adapter and the Shield source; Node.js 18 or later is required. Tests use fictional values and cover tools, session expiry, setup, CLI and stdio. No guaranteed directory ratings or certification.
Project: PromptAudit · MIT © PromptAudit
Contributing: CONTRIBUTING.md · Vulnerability reporting: SECURITY.md · Distribution prerequisites: Distribution review
Directory listing: Glama. Directory ratings are third-party observations, not certification or proof of complete protection.
Reviews
No reviews yet
Be the first to review this server!
More Developer Tools MCP Servers
Rea
Freeby Morluto · Developer Tools
Reverse engineer anything from your terminal or agent with one CLI and MCP server.
Paperclip
Freeby Paperclipai · Developer Tools
Trending hip-hop artist momentum scores across four cultural dimensions.
Scrapling
Freeby D4Vinci · Developer Tools
Web scraping with stealth HTTP, real browsers, and Cloudflare bypass. CSS selectors supported.
Server Time
Freeby Modelcontextprotocol · Developer Tools
Current time lookup and conversion between IANA timezones
Toleno
Freeby Toleno · Developer Tools
Toleno Network MCP Server — Manage your Toleno mining account with Claude AI using natural language.
MCP Marketplace
Freeby mcp-marketplace · Developer Tools
Search and install MCP servers from inside your AI client.
