MCP, MCP server
Mangrove Agent
Local AI trading agent on the Mangrove API: author strategies, backtest, paper-trade, and go live on DEX (1inch), Kraken, or Robinhood.
Compatibility: Not stated.
Grade B
Minor issues only, no Medium or High. Worth a quick look at the findings below before installing.
Not a guarantee. A hygiene check of the source at the commit shown, not a security audit.
NETWORK_NO_FIXED_HOST NETWORK_UNNAMED_HOST SECRETS_PATH_DOTENV PERMISSION_SHELL_DECLARED SECRETS_ENV_READ
Why this grade
- NETWORK_NO_FIXED_HOST Low
Makes a network call whose host is not written as a fixed address.
scripts/install-mac.sh, line 57
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - NETWORK_UNNAMED_HOST Low
Calls a fixed host that the description does not name.
scripts/install-mac.sh, line 57
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" - SECRETS_PATH_DOTENV Low
Mentions a .env file.
.claude/skills/audit-security/SKILL.md, line 54
- Check `.env.example` and `server/src/config/*-config.json` for accidentally committed real keys. - PERMISSION_SHELL_DECLARED Note
Runs shell commands, and the manifest or description says so.
scripts/client_session.py, line 62
return subprocess.run([executable], cwd=ROOT, env=env, check=False).returncode - SECRETS_ENV_READ Note
Reads an environment variable whose name contains KEY, SECRET, TOKEN, PASSWORD or CREDENTIAL.
server/scripts/check_x402_e2e.py, line 47
if os.environ.get("MANGROVE_API_KEY"):
Any High, or two or more Medium findings, give D. One Medium gives C. Low findings or a security Note give B. Each code names a finding behind the letter.
Grades are a hygiene check of the source at the commit shown, on the date checked, not a security audit or a guarantee. The free directory grades are automated. Before release, a PlugVet engineer reviews every paid report and any grade we hold back, including all F grades, against the source code and the evidence we quote.
What was checked
Plain notes from the hygiene checks.
Permissions
Note
requests shell access. The manifest names this permission.
PERMISSION_SHELL_DECLARED
scripts/client_session.py, line 62
return subprocess.run([executable], cwd=ROOT, env=env, check=False).returncode
scripts/mcp_contract.py, line 352
if event in {"socket.connect", "socket.getaddrinfo", "sqlite3.connect", "subprocess.Popen", "os.system"}:
scripts/mcp_contract.py, line 410
child = subprocess.run([sys.executable, "-B", str(Path(__file__).resolve()), "--collect"],
Show more
scripts/setup.sh, line 334
child = subprocess.Popen(
scripts/setup_support.py, line 831
return subprocess.run(chat_command(claude, cfg, path, context_path),
scripts/setup_support.py, line 880
subprocess.run(['claude', 'mcp', 'remove', 'mangrove-agent', '-s', 'local'],
scripts/setup_support.py, line 882
result = subprocess.run(['claude', 'mcp', 'add-json', '--scope', 'local', 'mangrove-agent',
Install and update
Pass
No install-time script found, and dependencies are pinned or absent.
Network
Concern
can reach raw.githubusercontent.com. The description does not name that host. can reach a host that is not written as a fixed address.
NETWORK_NO_FIXED_HOST NETWORK_UNNAMED_HOST
scripts/install-mac.sh, line 57
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
scripts/plugin_http_status.py, line 14
with urllib.request.urlopen(req, timeout=3) as r:
scripts/stash-kraken-secret.sh, line 48
curl -fsS -m 5 "$LOCAL_AGENT_URL/health" >/dev/null 2>&1 \
Show more
scripts/stash-kraken-secret.sh, line 77
with urllib.request.urlopen(req, timeout=10) as r:
server/scripts/check_x402_e2e.py, line 156
response = http.get(url)
server/scripts/check_x402_e2e.py, line 188
response = http.get(url)
server/src/services/secret_vault.py, line 14
out-of-band via a local bash/curl script that hits the localhost REST
server/src/services/x402_payer.py, line 646
response = await http.request(method, url, headers=headers, content=content)
Secrets
Concern
reads a credential or environment file.
SECRETS_ENV_READ SECRETS_PATH_DOTENV
server/scripts/check_x402_e2e.py, line 47
if os.environ.get("MANGROVE_API_KEY"):
.claude/skills/audit-security/SKILL.md, line 54
- Check `.env.example` and `server/src/config/*-config.json` for accidentally committed real keys.
.claude/skills/audit-security/SKILL.md, line 55
- `git log --all -p -- '*.env*' '*config*'` - check git history for leaked secrets.
Show more
.dockerignore, line 3
.gitignore
.gitignore, line 17
# Environment and secrets
.gitignore, line 19
*.env.local
SAGE.md, line 117
- Config in `server/src/config/` -- per-environment JSON files (no `.env`)
docs/architecture.md, line 393
The agent uses the existing mangrove-agent config pattern - no invented `.env` files, no parallel config layer.
docs/architecture.md, line 547
| **Per-environment JSON config** | ✅ Keep | Existing pattern; no `.env` files or parallel systems |
Agent instructions
Pass
No instruction to ignore earlier instructions or to hide a step.
Obfuscation
Pass
No encoded or minified payload found.
Licence
Pass
A licence file is present (LICENSE).
Maintainer activity
Pass
The latest commit is within the last 365 days.
Note
Hygiene check of commit a394258ad994. requests shell access. The manifest names this permission. can reach raw.githubusercontent.com. The description does not name that host. can reach a host that is not written as a fixed address. reads a credential or environment file.
Date and source
Date checked:
github.com
Commit graded: a394258ad994eb0078ff0ba83ae52c66a741514c
This link goes to the original host. PlugVet does not host or check what you download from there, and installing it is your own decision and risk.