Bouncer logo

Bouncer

Checks application code for regulatory controls using deterministic rule packs and exposes results through CLI and MCP.

Install Bouncer

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

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

Install not yet sandbox-tested— we haven't run this command through our automated sandbox yet. Not a red flag; we're working through the catalog.

Overview

The bouncer MCP server checks application source for controls required by UK and Nigerian regulatory rule packs. It runs locally over stdio and exposes deterministic compliance results, rule listings, explanations, and available packs without using an LLM. Reach for it when an agent or CI workflow needs file-and-line evidence for controls such as age assurance, privacy defaults, reporting features, or tax requirements.

Use cases

  • Check application code for required online-safety controls
  • Gate CI builds when configured controls are missing
  • Inspect compliance evidence with an MCP-compatible agent
  • Explain which standard and source pattern a rule checks

Key features

  • Deterministic JSON rule packs
  • UK and Nigerian regulatory coverage
  • File-and-line evidence for detected controls
  • Pass, fail, and unknown verdicts
  • stdio MCP server
  • Next.js and React Native adapters

Security & health

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

ActiveLast checked 3d ago

Recent health check succeeded.

8/8 checks healthy over the last 51d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 7h ago via OSV.dev · @nugehs/bouncer (npm)

Adoption & maintenance

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

GitHub stars1Stargazers on the source repository.
npm downloads426Package downloads in the last 30 days.
Last commit14d agoMost recent push to the default branch.

How Bouncer works

What the bouncer MCP server does

The bouncer MCP server evaluates application code against JSON rule packs representing selected regulatory requirements. Built-in packs cover the UK Online Safety Act, the ICO Children's Code, and Nigerian requirements from NDPC, FCCPC, and FIRS. Each rule connects a regulatory standard to a static assertion over a code surface, such as sign-up, profile, chat, livestream, user-generated content, or governance files.

The checks distinguish three outcomes. pass means matching evidence was found and includes a file and line reference. fail means the relevant surface exists but the expected control was not detected. unknown means the surface could not be located, so the result is not treated as a pass. This makes the output useful for identifying both missing controls and areas the scanner cannot determine.

The tool is an engineering aid, not legal advice. A passing result only indicates that the configured static checks found the expected code patterns; it does not replace compliance or DPO review.

How it works

The scanner loads a configuration file, selects adapters and rule packs, maps named surfaces to files, and evaluates regular-expression assertions. Rules can require a pattern, prohibit one, or combine checks with allOf, anyOf, and not. Custom packs can be supplied as JSON files, while individual rule IDs can be excluded when an obligation is procedural rather than provable through source code.

The bouncer MCP server uses the same deterministic engine as the command-line interface. Its stdio process can be launched with npx @nugehs/bouncer mcp, allowing an MCP client to request checks and supporting information from the configured repository.

Setup and configuration

Node.js 18 or newer is required. Install or run the package with npx, initialize a starter configuration, and then configure the target repository, adapter, roots, packs, optional custom pack directories, ignored rules, and statuses that should make a check fail.

The shipped adapters are next for Next.js App Router projects and react-native. Other frameworks require a custom adapter that maps surface aliases to file globs. The default configuration can run the UK packs, and the built-in Nigerian packs can be selected explicitly.

A typical MCP client configuration starts the server as a stdio command:

config.json
{
  "mcpServers": {
    "bouncer": {
      "command": "npx",
      "args": ["-y", "@nugehs/bouncer", "mcp"]
    }
  }
}

Tools and capabilities

The MCP tools are:

  • compliance_check: runs configured packs and returns verdicts with evidence.
  • list_rules: shows the rules applied by the configured packs.
  • explain_rule: returns a rule's standard, intent, fix, and checking method.
  • list_packs: lists the available rule packs.

The CLI also supports reports, filtered status output, pack inspection, configuration diagnostics, and rule explanations. A CI command exits non-zero when a configured failure bucket is found, which allows a build to gate changes that remove a required control.

Limitations and notes

Static checks cannot prove process obligations such as registration, signed data-processing agreements, or actual tax remittance. These may be tracked as gaps instead. Results depend on the selected adapter, repository roots, rule patterns, and configured surfaces. If a surface is absent or cannot be located, the result is unknown rather than a passing result. The project has no runtime dependencies and uses Node's built-in test runner for its tests.

Reviews

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

Frequently Asked Questions about Bouncer

bouncer is an MCP server that connects an AI agent to deterministic compliance checks over an application repository. Its main tools are compliance_check, list_rules, explain_rule, and list_packs, covering configured UK Online Safety Act, ICO Children's Code, and Nigerian rule packs through a local stdio process.

Run it with Node.js 18 or newer using `npx @nugehs/bouncer mcp`. For an MCP client, configure the server with command `npx` and arguments `-y`, `@nugehs/bouncer`, and `mcp`.

bouncer checks built-in packs for the UK Online Safety Act, the ICO Children's Code, Nigeria's NDPC data protection requirements, FCCPC consumer protection requirements, and FIRS tax requirements.

Yes, bouncer ships adapters for Next.js App Router and React Native. Other frameworks are not included by default, but the adapter format allows a project to map compliance surfaces to its own file globs.

No, bouncer cannot replace a compliance or DPO review. It reports whether configured static patterns were found in code, while process obligations and requirements that cannot be proven from source remain outside the scanner's coverage.

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