Listed from the MCP registry; nobody on Odel publishes it.
Stdio MCP proxy that denies agent sends to destinations first seen in untrusted tool output.
Runs on your machine from its package; the steps are below.

At most: moves money, runs code or commands, deletes data, or sends messages for you.
Odel charges nothing per call. The publisher may charge for its own service.
Runs locally over stdio
This server isn't hosted — your MCP client launches it from a package registry. Use one of the commands below, or drop the config into your client (e.g. Claude Desktop).
Run
uvx bouncer-mcp
MCP client config
{
"mcpServers": {
"bouncer": {
"command": "uvx",
"args": [
"bouncer-mcp"
]
}
}
}A local MCP proxy that denies an agent's send and share calls to destinations that first appeared in untrusted tool output. The rules are deterministic, no LLM decides anything, and every decision is logged.

Scripted tool calls from a hijacked agent, sent through the real proxy to a real MCP server: three attack calls denied (one delete ran first, within its call budget), one new recipient approved by a human, a review pack written from the audit log. No API keys; reproduce it in the quickstart. MP4 · what the demo runs · the review pack it writes
The cost: in the AgentDojo run Bouncer allowed no send at all, so legitimate tasks that send email or share files went from 4/6 to 0/6. It covers MCP calls only (limits).
bouncer approve <code> in their own terminal if it
doesn't.allow, deny and ask is a JSON line in
~/.bouncer/audit.jsonl, and bouncer report turns it into a review pack,
with OWASP LLM Top 10 and AIUC-1 mappings that point at the evidence and name
the gaps.Bouncer does not detect prompt injection. It assumes the agent will sometimes be fooled and limits what a fooled agent can do through MCP.
Status: v0.1.6, early. MCP over stdio, one machine. Read the limits before relying on it.
From a clone, with uv (no API keys, nothing outside the repo is touched):
git clone https://github.com/Ezed9/mcp-bouncer.git && cd mcp-bouncer
uv sync --all-packages
uv run python examples/demo/run_demo.py
This is the recording above. It starts the real bouncer run proxy in front of
a small helpdesk MCP server with real side effects, then checks the server's
state afterwards: no mail reached the attacker and no file was written outside
the workspace. Output goes to examples/demo/out/.
uv tool install bouncer-mcp # or: pipx install bouncer-mcp (Python 3.12+)
bouncer-mcp needs the MCP Python SDK 2.x (mcp>=2,<3). uv tool and pipx
give it its own environment; if you pip install it next to a package pinned
to mcp 1.x, stay on bouncer-mcp 0.1.4.
Back up your client config, then wrap its servers:
cp .mcp.json .mcp.json.bak
bouncer init --config .mcp.json # add --server <name> to wrap only some servers
Any config with an mcpServers block works, for example Claude Code's
.mcp.json, Cursor's ~/.cursor/mcp.json, or Claude Desktop's
"~/Library/Application Support/Claude/claude_desktop_config.json" on macOS.
init prints the rewritten config and asks before writing. Each server entry
now launches bouncer run, and the original entry (command, args, env,
cwd) is kept under x-bouncer-upstream, which is how run starts the real
server and how you undo the change by hand. An entry with no command (a
remote server reached by url) is left as it is, because Bouncer only proxies
stdio servers. Restart your client.
Four things to know on the first run:
Your client must find bouncer. The rewritten entry uses
"command": "bouncer". Desktop apps may not see your shell's PATH; if the
server fails to start, replace it with the output of which bouncer.
ask uses MCP elicitation when the client has it. A send to an unknown
destination asks the human through the client, and a yes lasts the session.
If your client can't elicit, the call is denied with a one-time code:
[bouncer blocked] destination to='bob@partner.com' is not a vouched recipient
... In their own terminal, not through the agent, they run: bouncer approve K7Q-F2M
Run bouncer approve K7Q-F2M in your own terminal. It shows the server, tool
and destination and asks you to confirm. Then have the agent retry the same
call within five minutes. The approval allows one call to that destination,
and bouncer pending lists open codes. To stop typing codes for regular
recipients, list them in trusted_destinations (see Policy).
Which clients elicit: docs/clients-and-approvals.md.
If the agent has a shell, don't let it run bouncer approve. The command
refuses to run without a terminal and has no --yes flag, but an agent with
full shell access can get around Bouncer anyway. In Claude Code, add
"Bash(bouncer approve:*)" to permissions.deny.
Run bouncer with a subcommand. With none, it starts Bouncer's own MCP
server on stdio and waits for a client.
agent / MCP client
│ tool call ▲ result, or
▼ │ "[bouncer blocked] <reason>"
┌─ bouncer run: one per server, stdio ──────────────┐
│ 1. tool present at startup? no → deny │
│ 2. within the call budget? no → deny │
│ 3. path / regex checks pass? no → deny │
│ 4. sending somewhere? where did the destination │
│ come from? │
│ seen in this server's output → deny │
│ allowlisted or approved → allow │
│ can't tell → ask human │
│ (no answer = deny; client │
│ can't ask = deny + a code │
│ for `bouncer approve`) │
│ every verdict → ~/.bouncer/audit.jsonl │
└───────────────────────────────────────────────────┘
│ allowed calls only ▲ every output is
▼ │ recorded as untrusted
your MCP server (filesystem, gmail, slack, …)
bouncer run starts the real server as a subprocess, records its tool list at
startup, and checks every call before forwarding it. A denied call is never
forwarded, so it has no side effects. Everything the server returns (text,
structured content, embedded resources, resource links and error messages) is
recorded as untrusted, and a later destination that appears in it is denied.
An approval is remembered for the rest of the session.
The check is plain Python: normalize case and whitespace, then look for the
destination inside what the server has returned this session. A miss means
ask, never a silent allow.
Decision order, policy layering, the audit format and a live transcript against
the reference filesystem server: docs/how-it-works.md.
Built-in packs in src/bouncer/packs/ name the sending
and writing tools of five servers. The filesystem pack is verified against the
reference server's tools/list; the gmail, slack, github and gdrive packs
follow those servers' documented schemas and are not yet verified live. Check
them against your server's tools/list. A tool with no pack entry gets a
fallback that treats destination-shaped arguments (to, url, channel, …)
as destinations.
Add your own rules in YAML:
send_email:
exfiltrating: true
sink_params: [to, cc, bcc]
trusted_destinations: [you@yourcompany.com]
write_file:
write_params: [path]
allowed_path_prefixes: ["/abs/path/to/project/out"]
delete_file:
max_calls: 2 # 0 forbids the tool outright
Add "--policy", "/abs/path/bouncer.yaml" to the wrapped server's args. A
policy with a mistake in it (a misspelled key, a value of the wrong type)
stops the proxy at startup; nothing is skipped or guessed.
A user entry replaces the pack entry for that tool, so restate
exfiltrating: true and sink_params when you override a sending tool.
Setting sink_params or trusted_destinations without exfiltrating: true
is an error. An override with none of the three, a bare max_calls for
example, still loads, and the destination check is off for that tool.
Use absolute path prefixes: a relative one is
resolved against whatever directory your client starts the proxy in. Start
from examples/bouncer.yaml.
Threat model. The agent is well-meaning but reads attacker-controlled data through MCP tools (an email, a ticket, a document) and may follow instructions in it. The attacker controls tool output only; they cannot change Bouncer, its policy, the client config or the server. Trusted: you (policy author and approver), the MCP client, the upstream server and the local machine.
What the code and tests pin down, for MCP tool calls that go through it:
| Behaviour | Code | Tests |
|---|---|---|
| No model or classifier in the enforcement path | engine.py | |
| A denied call is never forwarded upstream | proxy.py | test_proxy.py |
| A destination seen in this server's earlier output is denied, including one inside a list of recipients | taint.py | test_engine_sink_gate.py |
Path traversal (..) can't escape an allowed prefix; budgets and regex checks deny | engine.py | test_engine_constraints.py |
Fails closed: an unanswered ask is a deny; a sending tool with no declared destination arguments has all arguments checked; a malformed policy stops startup; a tool added after startup is refused | proxy.py, policy.py | test_policy.py, test_proxy.py |
| Every verdict is written to the audit log | audit.py | test_audit.py |
The audit log is one JSON line per verdict with a UTC timestamp, tool,
full arguments, verdict, reason and the rule that fired. ask is an
escalation: an approved one is followed by an allow line for the same call;
a declined one has no further line. A tool that wasn't present at startup is
logged as ask and blocked. The file is plaintext and contains whatever the
agent passed as arguments (email bodies included). It is created readable and
writable by your user only (mode 0600). Bouncer only appends to it, but
nothing makes it tamper-evident.
Review pack. bouncer report writes a Markdown pack: each tool and the
controls on it, an audit log summary, findings, what it does and doesn't
cover, an OWASP LLM Top 10 mapping, and an AIUC-1 mapping that points
at the evidence for each control Bouncer touches and names what it leaves to
you.
bouncer report --policy bouncer.yaml --tools tools.json -o review-pack.md
--tools takes the server's tools/list result as JSON; --audit defaults to
~/.bouncer/audit.jsonl, and --since / --until take YYYY-MM-DD. Example:
examples/demo/sample-review-pack.md.
Supply chain. Releases are built by
release.yml from a tag and published with
PyPI Trusted Publishing, so each file on PyPI carries a provenance attestation
and no upload token exists. Workflow actions are pinned by commit SHA. A
weekly CI job installs both packages without the lockfile, the way a fresh
pip install resolves, and runs the tests on it. bouncer-core depends only
on PyYAML.
Report vulnerabilities privately: SECURITY.md.
ask, not deny. Restarting
the proxy clears what it has seen.ana@x.com inside
dana@x.com doesn't count, so an attacker address glued to other text gets
ask, not deny. Before matching, case, whitespace, full-width forms and
zero-width characters are folded, and percent-encoding, HTML entities and
JSON string escapes (\u0040 for @) in output are decoded. An address
inside a URL query, or sent with a trailing
dot or a +tag, is checked too. Base64, quoted-printable, homoglyphs (Cyrillic а
for a), punycode, - subaddressing and assembled addresses ("attacker at
evil dot com") get ask, not deny. Destinations shorter than six
characters are never marked tainted. A trusted-looking destination that also
appears in tool output (a channel name in a message, say) is denied, which
costs legitimate tasks.https://hooks.example/AbC also approves https://hooks.example/abc.
Other characters compare exactly, so JOSÉ@x.es and josé@x.es are two
destinations.{"email": "alice@corp.com", "name": "Alice"} asks even when the address is
allowlisted, because Alice is gated as a destination... is collapsed but symlinks are not resolved.to, cc, url,
channel, …); webhook_url, say, is not recognized.max_calls: 0 to forbid a tool.~/.bouncer/pending.json. The agent can't reach it
over MCP, but an agent with shell access as your user can. If the server's
reply repeats the address (sent to bob@…), the address is now in tool output,
and later sends to it are denied with no code. Add it to
trusted_destinations instead.Every limit in detail:
docs/how-it-works.md#documented-limits.
Security note. In 0.1.0 to 0.1.2, proxy mode also listed Bouncer's own
bouncer_* tools, prompts and resources to the agent. Calls to them were
answered before the engine and outside the audit log, so a prompt-injected
agent could call them, including bouncer_check_verdict (which wrote to the
audit log) and bouncer_audit_summary (which returned recent audit entries).
0.1.3 removes them from proxy mode. Upgrade if you run an older version. See
the changelog.
The cost first: in this run Bouncer allowed no send or share at all. With
no attack, task completion went from 33/40 to 30/40, and the whole loss is on
the six tasks that send an email or share a file (4/6 to 0/6).
The result: on AgentDojo's workspace suite (v1.2.2, the important_instructions
attack, openai/gpt-4o-mini as the agent), attacks that tried to send data to
the attacker succeeded in 48 of 164 cases without Bouncer and 0 of 163 with
it (95% upper bound 2.2%), scored by AgentDojo's own security checker.
Because nothing was allowed, the 0 follows by construction.
| condition | attack success | send to attacker ran | task done under attack | task done, no attack |
|---|---|---|---|---|
| no Bouncer | 48/164 (29%) | 106/164 (65%) | 44/164 | 33/40 |
| Bouncer | 0/163 (0%, 95% CI up to 2.2%) | 0/163 | 86/163 | 30/40 |
send_email or share_file that actually
ran with the attacker as a recipient. It is wider than AgentDojo's own check,
which for injections 5-12 also requires deleting the sent email or files. Some
of those sends carry no user data (injection 0 sends a one-line greeting).What this does not show:
ask as a deny (no human).deepseek/deepseek-v4-flash, which resists most injections on
its own, was the control). An earlier run on that model landed 1 attack in 15
(benchmark/RESULTS.md), and the probe landed 0 in 8
(benchmark/RESULTS-probe-deepseek.md).Cost to legitimate tasks: overall benign completion fell by 7.5 points, under
the 10% threshold set as a kill criterion before these runs, but concentrated: a
deployment dominated by tasks that send email or share files would see most of
them denied. The six sending tasks fail for different reasons: two used an address
the user typed (denied because it also appears in tool output), two follow an
instruction in an email the agent read, and two take the recipient from a file. An address book of
trusted recipients recovers only the two whose recipients are in it (13 and 19). Per-case results and
raw JSON: benchmark/RESULTS-final.md and
benchmark/results/final.jsonl.
Reproduce (AgentDojo 0.1.35, about $1.40 at OpenRouter's reported prices; the run
stops at its --max-cost-usd cap):
export OPENROUTER_API_KEY=...
sh benchmark/run_final.sh # model defaults to openai/gpt-4o-mini
docs/how-it-works.md
covers bouncer init / run / serve / report, policy layering, the
standalone server's tools, and the audit log format.docs/manual-smoke.md.pip install bouncer-core is the engine with no MCP
dependency (PyYAML only), for enforcing the same rules inside your own agent
harness. scripts/demo.py shows how to drive it.Roadmap (not built yet): detecting a changed schema for an already-pinned tool; packs verified against live gmail, slack, github and gdrive servers.
See CONTRIBUTING.md. The rule that isn't negotiable: every
ambiguous case resolves to ask or deny, never a silent allow.
uv sync --all-packages
uv run pytest -q # 277 tests (3 need the benchmark extra)
uv run ruff check .
The most useful contribution is a pack verified against a real server's
tools/list.