Bouncer Gates MCP server
io.github.ajeermahmood/bouncer-gates·v0.5.0Stops secrets, cross-tenant queries and unsafe migrations before they merge.
0 stars46 downloads/wk
Reviews
Write oneNobody has reviewed Bouncer Gates yet.
If you have run it, two minutes of your experience saves the next person an afternoon.
Bouncer Gates tools (4, 2 write)
write = sends, deletes, buys or postsRead from the package source without running it. The installed server may list more.
bouncer_gates_explainWhat one gate checks, what it deliberately does not catch, and how to excuse one line.
bouncer_gates_list_gatesThe gates this server runs, with one line each.
bouncer_gates_scanwrite actionRun the bouncer-gates checks on files in the repository. With `paths`, scans only those files,
bouncer_gates_scan_snippetwrite actionRun the bouncer-gates checks on code that is not on disk yet, using this repository's configuration.
Public scan report
scanner v0.1.10 · 2026-10-16 · same rubric, same numbers if you re-run it
- Code scan16 source files scanned25/25
- –Live reliabilityno gateway calls yet and no remote to proben/a
- –Tool poisoningtools not inspected (local package is not executed); not countedn/a
- Auth qualitylocal package, no credentials required12/15
- Maintenancelast push 7 days ago15/15
- Maintainer identityregistry namespace matches repository owner; GitHub account older than a year8/10
How Bouncer Gates compares
Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.
- Safety score
- 92/100
- higher than 93% of 48,243 servers
- Tools
- 4
- the typical server has 7
- Tools that change things
- 50%
- typical: 0%. Fewer write tools means less an agent can break
- Downloads a week
- 46
- more than 36% of 12,306 servers with a package
What its tools let an agent do: 2 read · 2 change
Install Bouncer Gates in Claude Code, Cursor or VS Code
Runs npx -y bouncer-gates on your machine. Read the scan report first; the gateway never runs local packages.
claude mcp add bouncer-gates -- npx -y bouncer-gates
What the publisher says
From the Bouncer Gates repository's README, as published. We do not edit it. Read it on GitHub
bouncer-gates
Five checks that stop the expensive mistakes before they merge, whether a person or an agent wrote the code.
Hardcoded secrets. Database queries that leak one customer's data to another. Float maths on money. Migrations that break the running app. Docs that link to files which no longer exist.
Agents write most new code now, and they make exactly these mistakes: a key pasted in to make a test pass, a query with no tenant filter because the prompt never mentioned tenants. bouncer-gates runs inside Claude Code and Cursor, so the agent hears about it in the same turn it wrote it, and again in CI so nothing gets through.
Try it on any repository in ten seconds:
npx bouncer-gatesOr paste some code into the playground and watch the same checks run on it.
Quick start
npx bouncer-gates --init # writes bouncer-gates.config.json, reads your Prisma schema if you have one
npx bouncer-gates --init-agents # wires the same checks into Claude Code and Cursor for this repo
npx bouncer-gates # runs every check and prints what it foundAdd it to GitHub Actions:
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0 # needed so the migration check can see what is new
- uses: ajeermahmood/bouncer-gates@v0
with:
version: "0.5.0"That is the whole setup. Everything below is detail.
In the editor, with the agent
--init-agents commits two things into the repository: an MCP server the agent can call, and a hook that scans every file the agent writes. When a file has a blocking finding, the agent sees the file, the line, what is wrong and what to do instead, in the same turn:
x src/orders.ts:12 scope/unscoped-query
"order" is tenant-owned, but nothing in this query mentions "tenantId", so it returns rows from every tenant.
fix: Add tenantId to the where clause, or go through a tenant-scoped client.Any other MCP client can run npx -y bouncer-gates --mcp, and any post-edit hook can pipe its event to npx -y bouncer-gates --hook. How it works, and what it will not do.
What it checks
Each check exists because of a real, expensive bug. None is a style opinion. The gate reference explains every rule with a bad example and a fixed one.
When it finds something
Every finding names the file, the line, what is wrong and what to do instead:
FAIL scope
x src/orders.ts:2 scope/unscoped-query
"order" is tenant-owned, but nothing in this query mentions "tenantId", so it returns rows from every tenant.
fix: Add tenantId to the where clause, or go through a tenant-scoped client.You have three options, in this order:
Shortened. The full README is on GitHub.
Nothing above is checked by us. What we check is on the safety report.
Bouncer Gates: common questions
- Is Bouncer Gates MCP server safe?
- Yes, by our scan: it is graded A (92/100). Read the Bouncer Gates safety report
- How do I install Bouncer Gates?
- It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
- Does Bouncer Gates need an API key?
- Not as far as the registry entry and our scan can tell: no credentials are declared or required.
- Is Bouncer Gates maintained?
- The last commit was 27 days ago (2026-10-09). The latest release is v0.5.0.
- How does Bouncer Gates compare with other MCP servers?
- safety score 92/100 (higher than 93% of 48,243 servers); tools 4 (the typical server has 7); tools that change things 50% (typical: 0%. Fewer write tools means less an agent can break). Full comparison.