Atlas / MCP servers / bmdhodl / agent47

agent47BLOCK

mcp/bmdhodl/agent47

Python runtime checks for AI agents: budgets, loops, retries, and local traces. Zero runtime dependencies. MIT.

Verdict
BLOCK
Grade
F
Trust score
45 /100
Exposed tools
12 10r · 1w · 1d
Transport
stdio
License
MIT
Stars
4
01

Overview

From the repository's own README, as read at the audited commit. Badges and raw HTML are left out.

Stop runaway agents with runtime checks in Python.

[](https://pypi.org/project/agentguard47/) [](https://pypi.org/project/agentguard47/) [](https://github.com/bmdhodl/agent47/actions/workflows/ci.yml) [](LICENSE)

AgentGuard checks budgets, repeated tool calls, retries, and elapsed time in instrumented Python code. Guards raise exceptions so your application can stop the next operation. The base SDK has no runtime dependencies and needs no account.

Names: this repository is agent47, the PyPI package is agentguard47, and the Python import is agentguard. AgentGuard 2.0.0 requires Python 3.11 or newer. On Python 3.9 or 3.10, pin agentguard47==1.4.0. See the Python migration guide before upgrading.

Getting started

Install in a virtual environment, then run the offline checks:

python -m pip install agentguard47
agentguard doctor
agentguard demo

doctor checks the installation and local trace writing. demo exercises budget, loop, and retry stops without provider keys or network access. Follow the trace path printed by the command to inspect its output. agentguard demo --feedback prints a local redacted report; nothing is sent.

For a fresh PowerShell install and a runnable raw starter, follow the published-release walkthrough.

Share a stop receipt (new in 2.0.0)

agentguard receipt agentguard_demo_traces.jsonl prints a receipt of each stop with the trace's SHA-256 drawn as a barcode. Add --format markdown to paste it into a PR or issue. The hash identifies the trace file; it is not a signature.

Guard a Claude Code session (new in 2.0.0)

Read from source at commit e4dfe2b2f5ddOBSERVED · 2026-10-11
Advertisement
02

Connect

Built from this server's own package name, version and transport as found in its source — not copied from anyone's documentation, so it cannot drift against a page we do not control. Replace the environment placeholders with a token scoped to the least it needs.

claude-code (npm)
claude mcp add mcp-server --env AGENTGUARD_API_KEY=${AGENTGUARD_API_KEY} -- npx -y @agentguard47/[email protected]
03

Exposed tools (12)

10 read · 1 write · 1 destructive. Blast radius: 1 tool can delete or overwrite — an agent that can be talked into calling a tool can be talked into calling this one.

ToolRiskDescription
check_budgetreadRead-only hosted event-quota health check. Combines dashboard event quota and
check_remainingreadReturn current usage and limits for a scope.
get_alertsreadRead-only recent guard alerts (loop detection, budget exceeded) and errors
get_costsreadRead-only hosted cost breakdown for the current month from the AgentGuard Read API.
get_tracereadRead-only full event tree for one retained trace.
get_trace_decisionsreadRead-only normalized decision.* events from one retained trace.
get_usagereadRead-only hosted event quota usage and plan limits from the AgentGuard Read API.
kill_switchdestructiveBlock or unblock calls matching a scope.
list_budgetsreadList configured budgets and current local usage.
query_tracesreadRead-only search for retained AgentGuard trace summaries from the AgentGuard Read API.
record_callreadRecord one MCP tool call if matching budgets still allow it.
set_budgetwriteSet a local token or dollar budget for a scope.
04

Trust audit

BLOCKgrade F · trust 45/100 Do not install this without reading the findings. The audit found something that could harm you or your machine.

LayerWhat it checksResult
L0Provenance & inventoryWARN
L1Static analysis of the codeWARN
L2Instruction surface (what it tells the agent)FAIL
L3Class-specific surfaceWARN
L4Behavioural (sandbox)SKIPPED

What the source does

Filesystem
declared (7 observation(s))
Network
declared (2 observation(s))
Shell
declared (1 observation(s))
Dependencies
not all pinned
Secrets in source
none-found

Findings (25)

HIGHPrompt injection · prompt.zero_width · CWE-94, CWE-1427
proof/agentguard-mcp/local-budget-proof.txt:1
db_path C:\Users\patri\AppData\Local\Temp\tmpi09qb3ct\state.db
Why it matters. invisible characters in instruction text
Fix. strip non-printing characters
HIGHPrompt injection · prompt.zero_width · CWE-94, CWE-1427
proof/budget-aware-escalation/verification.txt:1
Rebased-head validation for budget-aware escalation:
Why it matters. invisible characters in instruction text
Fix. strip non-printing characters
HIGHPrompt injection · prompt.zero_width · CWE-94, CWE-1427
proof/release-1.2.10/commits-since-v1.2.9.txt:1
b088773 Record activation PR handoff
Why it matters. invisible characters in instruction text
Fix. strip non-printing characters
HIGHPrompt injection · prompt.zero_width · CWE-94, CWE-1427
proof/scorecard-release-prep-2026-04-17/scorecard-open-summary-before.txt:1
52`tPinnedDependenciesID`t.github/workflows/publish.yml`t29`tscore is 5: pipCommand not pinned by hash
Why it matters. invisible characters in instruction text
Fix. strip non-printing characters
MEDIUMInventory / provenance · inv.binary · CWE-1104
proof/approved-responses-735/agent47-approved735-example.py.gz
agent47-approved735-example.py.gz
Why it matters. a compiled or binary member cannot be reviewed from source
Fix. ship source, or explain the binary in the README
MEDIUMInventory / provenance · inv.symlink · CWE-1104
.claude/skills/next-ticket
.claude/skills/next-ticket
Why it matters. link not followed
MEDIUMInventory / provenance · inv.symlink · CWE-1104
.codex/skills/next-ticket
.codex/skills/next-ticket
Why it matters. link not followed
MEDIUMInventory / provenance · inv.symlink · CWE-1104
.cursor/skills/next-ticket
.cursor/skills/next-ticket
Why it matters. link not followed
MEDIUMCode injection · code.dynamic_import · CWE-78, CWE-94, CWE-95
proof/report-guard-cost-double-count/repro.py:17
httpx = importlib.import_module(base.__module__.split(".")[0])
MEDIUMObfuscation / stealth · obf.base64_blob · CWE-506, CWE-94
proof/run-duration-820/review-r2/oversized-sample.jsonl:3
{"kind": "span", "phase": "start", "name": "invalid", "ts": 10000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
MEDIUMObfuscation / stealth · obf.base64_blob · CWE-506, CWE-94
proof/run-duration-820/review-r2/oversized-sample.jsonl:4
{"kind": "span", "phase": "end", "name": "invalid", "duration_ms": 1000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000
MEDIUMObfuscation / stealth · obf.base64_blob · CWE-506, CWE-94
proof/v1.3.1/attestation.json:1
[{"attestation":{"bundle":{"mediaType":"application/vnd.dev.sigstore.bundle.v0.3+json","verificationMaterial":{"certificate":{"rawBytes":"MIIG8TCCBnegAwIBAgIUObrZhtSkVaCIYNJYUSPSi2LDia0wCgYIKoZIzj0EAw
MEDIUMObfuscation / stealth · obf.base64_blob · CWE-506, CWE-94
proof/v1.3.2/attestation.json:1
[{"attestation":{"bundle":{"mediaType":"application/vnd.dev.sigstore.bundle.v0.3+json","verificationMaterial":{"certificate":{"rawBytes":"MIIG8jCCBnegAwIBAgIUS2NTF0uv7jy7brVlQ6c9tmyEb5IwCgYIKoZIzj0EAw
MEDIUMFilesystem / path · mcp.destructive_tools · CWE-22, CWE-59
kill_switch
Why it matters. 1 tool(s) can delete or overwrite
Fix. prefer a read-only mode or scoped tokens; the page states the blast radius
LOWInventory / provenance · inv.binary · CWE-1104
proof/agent-security-stack-positioning/git-diff.txt
git-diff.txt
Why it matters. a compiled or binary member cannot be reviewed from source
Fix. ship source, or explain the binary in the README
LOWInventory / provenance · inv.binary · CWE-1104
proof/agent-security-stack-positioning/preflight.txt
preflight.txt
Why it matters. a compiled or binary member cannot be reviewed from source
Fix. ship source, or explain the binary in the README
LOWInventory / provenance · inv.binary · CWE-1104
proof/agent-security-stack-positioning/pypi-sync.txt
pypi-sync.txt
Why it matters. a compiled or binary member cannot be reviewed from source
Fix. ship source, or explain the binary in the README
LOWInventory / provenance · inv.binary · CWE-1104
proof/agent-security-stack-positioning/release-guard.txt
release-guard.txt
Why it matters. a compiled or binary member cannot be reviewed from source
Fix. ship source, or explain the binary in the README
LOWInventory / provenance · inv.hidden_file · CWE-1104
.gitleaksignore
.gitleaksignore
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
proof/skillpack/all/.agentguard.json
.agentguard.json
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.hidden_file · CWE-1104
proof/skillpack/codex/.agentguard.json
.agentguard.json
Why it matters. hidden member outside the usual dotfiles
Fix. review its purpose
LOWInventory / provenance · inv.symlink · CWE-1104
.github/skills/next-ticket
.github/skills/next-ticket
Why it matters. link not followed
LOWCode injection · code.dynamic_import · CWE-78, CWE-94, CWE-95
sdk/tests/test_real_dispatch.py:45
return importlib.import_module(module)
LOWCode injection · code.dynamic_import · CWE-78, CWE-94, CWE-95
sdk/tests/test_real_dispatch.py:56
self._http = importlib.import_module(client_base.__module__.split(".")[0])
LOWCode injection · code.eval_exec · CWE-78, CWE-94, CWE-95
sdk/examples/ralph_agent.py:117
exec(code, ns)  # noqa: S102
Why it matters. evaluates text as code
Fix. remove; use a parser or a dispatch table

Gates applied: no_behavioural_pass.

Audited 2026-10-11 · audit v0.4.1 · source sha e4dfe2b2f5ddfull audit observations/trust-audit/mcp-server/bmdhodl__agent47.json · Report an issue / request a re-scan
05

Audit history

Every audit this server has had. A grade with a past is a grade somebody is still checking.

DateSourceVerdictGradeScoreChange
2026-10-11e4dfe2b2f5ddBLOCKF45first audit
06

Questions

What is the agent47 MCP server?

Python runtime checks for AI agents: budgets, loops, retries, and local traces. Zero runtime dependencies. MIT.

What tools does agent47 expose?

12 in total: 10 read-only, 1 that write, and 1 that can delete or overwrite (kill_switch). Every one is listed on this page with its risk.

Is agent47 safe to connect to an agent?

No — not without reading the findings first. The audit graded it F (45/100) and found 4 critical or high issues in the source. Each one is listed on this page with the file and line it is on. Separately from the audit: 1 of its tools can destroy data, so scope the token you give it to what you actually need.

What credentials does agent47 need?

It reads AGENTGUARD_API_KEY, AGENTGUARD_KEY, AGENTGUARD_RELEASE_API_KEY, AGENTGUARD_SYNC_TOKEN, AG_API_KEY, ANTHROPIC_API_KEY, GH_TOKEN, OPENAI_ADMIN_KEY and OPENAI_API_KEY from the environment. Give it a token scoped to the least it needs — an agent that can be talked into calling a tool can be talked into calling it with your credentials.

How does agent47 run?

It speaks stdio, so it runs as a local process your client starts. It is published on npm as @agentguard47/mcp-server at 0.2.2.

How current is this page?

The grade is for one exact copy of the source (e4dfe2b2f5dd), read on 2026-10-11. The repository is watched and re-audited when it changes.

Advertisement