MCP server · Audited from source
mainframe-mcp
by sushihex/mainframe-mcpMIT licenceAudited 12 Oct 2026 · source c730dec0094a
Is it safe? With care — CAUTION, grade C (77/100). It exposes 6 tools: 5 read, 0 write and 1 destructive. The audit recorded 19 findings (0 critical, 0 high, 4 medium, 15 low). Maintainer's description: 100% local knowledge and persistent memory for coding agents. GPU-accelerated hybrid search with source citations and a low VRAM footprint, powered by one shared MCP daemon.
Cite
Cite this page
ModelsAtlas. “mainframe-mcp (sushiHex/mainframe-mcp)”. Retrieved 12 Oct 2026. https://modelsatlas.com/mcp/sushihex/mainframe-mcp
Trust audit
Audit 0.4.1 · full source read 12 Oct 2026
19 findings, listed below with the file and line each was found on. Grade A needs a sandboxed behavioural run too; this audit read the source only.
What the source does
- FilesystemDeclared4 observations
- NetworkDeclared8 observations
- ShellNone observedNothing seen in the source
- DependenciesPinnedNothing floats
- SecretsNone foundNo keys in source
“Declared” means the server says it does this and the source agrees. Browser, file and shell access are expected of some kinds of server.
Five audit layers
| Layer | What we check | Result |
|---|---|---|
L0 Provenance | Repo owner, licence, archive status, activity | PASS 2 findings |
L1 Static source | Secrets, path traversal, supply chain | WARN 16 findings |
L2 Instructions | Prompt injection and authority framing in docs and tool descriptions | PASS |
L3 Inventory | Declared tools match the source | WARN 1 finding |
L4 Sandbox | Run in isolation and watch behaviour | SKIPPED |
Provenance & runtime
Who published it, and what the audit could and could not run
Provenance
- Repository owner
sushihexUser accountAccount type recorded when we read the repository. - PackagePublished on PyPI
mainframe-mcp, no version recorded - LicenceMITFrom the repository, as read at the audited commit.
- Last push3 days agoActivity of the repository when we read it.
- Source commit readc730dec0094aThe audit covers exactly this commit, read on 12 Oct 2026.
Runtime
- Sandbox runNot run yetThis audit read the source only; it did not execute the server.
- Tool inventory6 declaredRead from the source and classed read, write or destructive.
Every value here is read from the record's own repository and audit.Suggest a correction
Findings (19)
Sorted by severity
MEDIUMNetwork egressnet.raw_ip · src/mainframe/adapters/cli.py:50
self.base_url = f"http://127.0.0.1:{self.info['port']}" if self.info else None- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMNetwork egressnet.raw_ip · src/mainframe/adapters/mcp_stdio_shim.py:108
state["base"] = f"http://127.0.0.1:{info['port']}/mcp"- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMNetwork egressnet.raw_ip · src/mainframe/adapters/validation.py:76
client = httpx.Client(base_url=f"http://127.0.0.1:{info['port']}",- Why
- No further detail recorded for this rule.
- Fix
- —
MEDIUMFilesystem / pathmcp.destructive_tools
delete_file
- Why
- 1 tool(s) can delete or overwrite
- Fix
- prefer a read-only mode or scoped tokens; the page states the blast radius
LOWCode injectioncode.dynamic_import · tests/test_hf_offline_revision.py:30
module = importlib.import_module(module_name)
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWCode injectioncode.dynamic_import · tests/test_hf_offline_revision.py:55
module = importlib.import_module(module_name)
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWCode injectioncode.dynamic_import · tests/test_hf_offline_revision.py:71
module = importlib.import_module(module_name)
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWCode injectioncode.dynamic_import · tests/test_hf_offline_revision.py:90
module = importlib.import_module(module_name)
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWCode injectioncode.dynamic_import · tests/test_hf_offline_revision.py:104
module = importlib.import_module(module_name)
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWCode injectioncode.eval_exec · .github/workflows/tests.yml:2
# The GPU eval (eval/evaluate.py --min-score) runs manually/nightly on the 3090,
- Why
- evaluates text as code
- Fix
- remove; use a parser or a dispatch table
LOWInsecure cryptocrypto.weak_hash · eval/evaluate_v1.py:209
doc_id = hashlib.md5(str(md_file).encode()).hexdigest()[:12]
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWInsecure cryptocrypto.weak_hash · src/mainframe_mcp/server.py:224
doc_id = hashlib.md5(file_path.encode()).hexdigest()[:12]
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWInsecure cryptocrypto.weak_hash · tests/conftest.py:40
h = int(hashlib.md5(tok.encode("utf-8")).hexdigest(), 16)- Why
- No further detail recorded for this rule.
- Fix
- —
LOWInsecure cryptocrypto.weak_hash · tests/v2/conftest.py:42
h = int(hashlib.md5(tok.encode("utf-8")).hexdigest(), 16)- Why
- No further detail recorded for this rule.
- Fix
- —
LOWFilesystem / pathfs.traversal · tests/test_tier0_hardening.py:238
session_id="../../zz")
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · README.md:100
**HTTP clients** can connect to `http://127.0.0.1:7433/mcp` using Streamable HTTP. Use `/mcp/ro` for search and status only. See [client setup](docs/V2.md#connect-clients) for configuration and authen
- Why
- No further detail recorded for this rule.
- Fix
- —
LOWNetwork egressnet.raw_ip · docs/V2.md:112
Register `http://127.0.0.1:7433/mcp` as a Streamable HTTP MCP server, using the
- Why
- No further detail recorded for this rule.
- Fix
- —
Tools it exposes
6 declared in source · 1 destructive
1 tool can delete or overwrite. An agent that can be talked into calling a tool can be talked into calling this one, so give it a token scoped to what you need.
| Tool | Risk | What it does |
|---|---|---|
delete_file | destructive | Delete a file and its chunks from the Mainframe index. |
ingest_file | read | Ingest a markdown file into the Mainframe. Chunks, embeds, deduplicates, and indexes. |
ingest_projects | read | DEPRECATED — prefer sync_index (a superset that also prunes deleted files). Scan all ~/repos/*/research/*.md and ~/repos/*/CLAUDE.md files and ingest new or changed ones. |
list_files | read | List all files in the Mainframe with ingestion status and retrieval counts. |
reload_config | read | Hot-reload the config file (MAINFRAME_CONFIG env, else ~/.claude/mainframe/config.json) for live-read knobs (chunker, search pool/fetch/recency, tiers). Model changes (embedder/reranker/nli/consolidator/contextual) are NOT applied — they are returned as restart_required_for. |
status | read | return await asyncio.to_thread(app.status) |
Install
audited commit c730dec
Read the findings first. The most severe is Network egress (medium) at src/mainframe/adapters/cli.py.
One-click links open your editor with the config below filled in, exactly as the snippets show it. The audit covers commit c730dec only.
claude mcp add mainframe-mcp -- uvx mainframe-mcp
{
"mcpServers": {
"mainframe-mcp": {
"command": "uvx",
"args": [
"mainframe-mcp"
]
}
}
}The command does not pin a version; the audit covers commit c730dec0094a. Transport: stdio · streamable-http. No environment variables required.
Audit history
- !CAUTION C 77 / 100
First audit ·
c730dec0094a
README badge
For maintainers · updates on every re-audit
[](https://modelsatlas.com/mcp/sushihex/mainframe-mcp/)
The badge always shows the latest audit; a maintainer cannot pin an old verdict.
Other ratings
Cited, never blended into our score
No third-party security ratings are recorded for this server yet. When they exist they appear here with their source and date, beside, not inside, our grade.
Questions about mainframe-mcp
What is the mainframe-mcp MCP server?
What tools does mainframe-mcp expose?
Is mainframe-mcp safe to connect to an agent?
What credentials does mainframe-mcp need?
How does mainframe-mcp run?
How current is this page?
Sources
- sushiHex/mainframe-mcp on GitHub — the source we read, its licence, stars and activityObserved · 12 Oct 2026
- ModelsAtlas trust audit — CAUTION verdict for commit c730dec0094aObserved · 12 Oct 2026
Spotted something wrong? Report a correction · Methodology
Keep going in your AI
Opens with this page as the source. We add nothing else to the prompt.
- What is the mainframe-mcp MCP server?
- What tools does mainframe-mcp expose?
- Is mainframe-mcp safe to connect to an agent?