flagrix MCP Server
Scan GitHub repos and profiles for malware before cloning — commit-pinned risk verdicts for agents
flagrix scores 70 (Good), licensed MIT and written in TypeScript. It installs as a local process. It does not declare tools yet. Filed under Security, Version control. GitHub shows 2 stars. Package registries report about 637 downloads a week. Install configs are generated for 12 clients. Being listed in the registry is not the same as being vendor-official.
Good trust
70 of 100 from six public signals. Nobody can buy a point.
- Listed in the official MCP registry.
- OSI-style license: mit.
License, quality and maintenance
Quality: Grade C
65/100 for listing completeness. Lost points: no listed tools, short summary.
How quality is graded
Where the 70 comes from
22 + 20 + 7 + 10 + 4 + 7 = 70. Each factor is capped, so no single signal can carry a listing.
Active in the official MCP registry, plus a known vendor namespace.
Registry: 22 of 30 points.How recently the repository saw a commit or release.
Maintenance: 20 of 20 points.GitHub stars and weekly downloads, on a log scale.
Popularity: 7 of 20 points.A clear, OSI-style open-source license.
License: 10 of 10 points.Not archived, a secure install path, a pinned version.
Security: 4 of 10 points.A real summary, a README with depth, listed tools.
Docs: 7 of 10 points.Install
Pick your client, copy the config, paste it in.
Needs Cursor or VS Code installed on this device. The button opens the app and asks you to confirm before it adds the server.
{ "mcpServers": { "flagrix-io-flagrix-cli": { "command": "npx", "args": [ "-y", "flagrix@0.9.1" ], "env": { "GITHUB_TOKEN": "YOUR_GITHUB_TOKEN" } } }}
Environment variables
| Name | Required | Notes |
|---|---|---|
GITHUB_TOKENSecret | Optional | Optional GitHub token — raises API rate limits and enables private-repo scans |
Tools
All capabilitiesTools show up when the registry metadata or the repository README lists them. Public READMEs are read directly. A GitHub token is used only when one is already configured.
About
flagrix
Scan GitHub repositories and profiles for malware before you clone — from the terminal, CI, or an AI agent. The same commit-pinned verdict as the Flagrix browser extension, made callable.
npx flagrix scan https://github.com/some-org/coding-assignment
some-org/coding-assignment @ 3f9c2a1
HIGH RISK — Do not clone security score 12/100
3 files scanned · 10 dependencies · 2 issues
CRITICAL Data exfiltration patterns detected: Keylogger Pattern
assignment.js:14
14 document.addEventListener("keydown", (e) => send(e.key))
Built after real fake-recruiter campaigns ("coding assignment" repos that steal wallets, SSH keys, and browser sessions) started targeting developers.
Commands
flagrix scan <url | owner/repo> # scan a repository (--ref <branch|sha>)
flagrix scan-user <username> # score a GitHub profile for scam signals
flagrix mcp # MCP server (stdio) for AI agents
How much gets read
A scan reads the whole commit in one request (/tarball/{sha}), up to a 16MB
budget of source, and says so:
4373 files scanned · 12 dependencies · 0 issues · read as one snapshot
--no-tarball reads one file per request instead, up to ~200 files:
| facebook/react @ e04279e | one snapshot (default) | --no-tarball |
|---|---|---|
| files read | 4,373 | 226 |
| GitHub requests | 6 | 231 |
| wall clock | 8.7s | 14.4s |
The request count is the part that matters without a token: GitHub allows 60 requests an hour unauthenticated, so a per-file scan of any real repository runs out part way through and exits 4, while a snapshot read finishes.
The wider read reaches test fixtures and vendored bundles, which the file cap
used to skip. Across the 50 pinned repositories in benchmark/,
every one reads "low" as a snapshot, and the release gate runs the whole
corpus with both readers. --tarball is still accepted; it asks for the
default.
Either way the result names the reader that produced it, in the human output
and as coverage.readMode ("tarball", "per-file", or "unknown" from an
engine older than 0.8.0) in the JSON. Two scans of one commit can score
differently depending on which ran, so the mode is part of the verdict rather
than a detail. When GitHub will not serve the archive, the scan falls back to reading file by file, keeps its verdict, and
says why (coverage.readFallbackReason: too-large, unavailable or
unreadable).
Exit codes
| code | meaning |
|---|---|
| 0 | low risk |
| 1 | scan failed |
| 2 | medium risk — review before proceeding |
| 3 | high risk — do not clone or install |
| 4 | scan incomplete — not enough of the repository was read to give a verdict |
When every finding behind a medium or high verdict runs on install (an
install hook, or a malicious or typosquatted dependency), the verdict reads
"Review before installing" / "Do not install" instead of naming the clone:
that code runs on npm install, not on git clone. The exit code is the same.
--json (automatic when stdout is piped) emits the full result. The verdict is
pinned to the scanned commit (commitSha in the JSON): every file is read at
that SHA, so a push mid-scan or after the verdict can't silently invalidate it.
Incomplete scans (exit 4)
A per-file scan (--no-tarball, or the fallback when GitHub will not serve
the archive) is one tree request plus up to ~200 file reads, and GitHub
allows 60 requests an hour without a token. When the budget runs out part way
through, the rest of the repository is never looked at — so a "low risk, no
findings" result over 30 of 180 files is the absence of looking, not a clean
bill of health. The default snapshot read spends one request on the
contents instead, so it rarely gets here — see
How much gets read.
The result says so (scanSummary.complete: false, with
scanSummary.incompleteReason of "rate-limit" or "fetch-errors"), the
human output withholds the verdict and the score, and the exit code is 4
instead of 0. In CI the exit code is the decision and nobody reads stdout, so
a gate on flagrix scan stops here as it does on any non-zero code. Findings
are the other way round: evidence found is evidence however little else was
read, so a medium or high verdict keeps its own code and the coverage note
reads "there may be more".
In --json output, read verdict and coverage rather than riskLevel:
{
"verdict": "incomplete",
"coverage": {
"complete": false,
"unreliableClear": true,
"filesRead": 30,
"filesUnread": 150,
"reason": "rate-limit",
"readMode": "per-file"
},
"riskLevel": "low",
"safeToClone": false,
...
}
verdictis"low","medium","high", or"incomplete"when a low result rests on files that were never read. It matches the exit code (0 / 2 / 3 / 4).coverage.unreliableClearis true exactly whenverdictis"incomplete";coverage.completeis false on any partial scan, including a medium or high one.reasonis present only when coverage is incomplete.riskLevel,riskScoreand the rest of the engine's result are unchanged, so existing consumers keep working — butriskLevelis the engine's reading of the files it did see, so on an incomplete scan it can still say"low".safeToCloneis kept for compatibility and is nowfalsewheneververdictis"incomplete"(in 0.4.0 and earlier it could betruethere). Gate onverdictor the exit code instead.coverage.readModeis which reader ran, andcoverage.readFallbackReasonis present only when a requested snapshot read did not happen.rulesVersionis the version of the detection rules the scan ran with (for example"2026.11.25.001"); the human output ends with the same version. Two scans of one commit under different rules can disagree.
The MCP tool's JSON block carries the same fields.
Set a token to make this rare: GITHUB_TOKEN raises the budget to 5,000/h.
AI agents
claude mcp add flagrix -- npx -y flagrix mcp
Tools: scan_github_repo (target, ref, tarball — default true, false
reads file by file), scan_github_user. A Claude Code hook that gates every
git clone on a scan ships in hooks/ — see
docs/agent-gating.md.
Tokens & rate limits
Unauthenticated scans use GitHub's 60 req/h budget (a scan reads the commit's contents in a
single request, or one request per scanned file, up to ~200, with
--no-tarball). Set
GITHUB_TOKEN (or FLAGRIX_GITHUB_TOKEN, or --token) to raise it to 5,000/h
and to scan private repositories. A scan that runs out of budget reports partial
coverage and exits 4 — see Incomplete scans.
Privacy
Fully local. No telemetry, no accounts, no Flagrix backend — the only network
calls go to the GitHub/npm APIs and the public
detection-rules
repository (signature refresh, cached 6 h, with a bundled offline snapshot).
A scan never runs with rules older than the snapshot bundled in the installed
release: a cached or downloaded copy with an older version is replaced by
the snapshot, and stderr says so.
Dependencies are also checked against the OSV malicious-package feed
(osv-malicious.json from the same repository: every npm/PyPI package the
OpenSSF malicious-packages project has confirmed malicious). The feed is
downloaded and matched locally, so dependency names never leave your machine.
It is cached 6 h and revalidated with its ETag. Set FLAGRIX_OSV_FEED=0 to
skip it (the curated list in the signatures still applies).
How it works
Scanning logic lives in @flagrix/scanner-core (MIT), signatures in flagrix-detection-rules (MIT) — the same engine and rules the browser extension uses. Verdicts are risk assessments, not definitive fraud determinations; always verify through official channels.
AI Disclosure
This project leverages Claude AI for boilerplate generation, test-suite expansion, and optimization. All AI-generated code is strictly reviewed, refactored, and verified by human maintainers before merging.
License
MIT — see LICENSE.
Frequently asked questions
What is flagrix MCP Server?
Scan GitHub repos and profiles for malware before cloning — commit-pinned risk verdicts for agents
How do I install flagrix MCP Server in Claude Desktop, Cursor, or VS Code?
Pick your client in the Install section on this page and copy the generated config into the client's config file. Step-by-step guides: Claude Desktop, Cursor, and VS Code. flagrix MCP Server runs locally from the npm package flagrix with the command npx -y flagrix@0.9.1.
Is flagrix MCP Server free and open source?
Yes. flagrix MCP Server is released under the MIT license, an OSI-approved open-source license, so you can use, modify, and self-host it under those terms.
Does flagrix MCP Server support remote (HTTP) connections?
No remote endpoint is listed for flagrix MCP Server. It runs locally on your machine over stdio, started by your MCP client.
How is flagrix MCP Server's trust score calculated?
flagrix MCP Server scores 70 out of 100 (Good). The score adds six capped public signals: registry status, maintenance, popularity, license, documentation, and security. Nobody can pay for points. Read the methodology for the full formula.
Reviews
No reviews yet—Be the first to review
No published reviews yet. Used it? Tell the next person how it went.
Sign inA verified email is required to review this server.
Add badge to your README
Paste either snippet into the repository README. The image links to this listing.