MCP.Market

Code Guardian MCP server

by LuminariSoftwares·io.github.LuminariSoftwares/code-guardian·v0.5.0

A deterministic A-F grade for a repo without running it, plus a verify loop: plan, fix, diff.

B74/100grade B
What users say
No reviews yet
Be the first
Safety scan
B74/100

not scanned yet

Adoption
Growing

0 stars70 downloads/wk

Reviews

Write one

Nobody has reviewed Code Guardian yet.

If you have run it, two minutes of your experience saves the next person an afternoon.

Code Guardian tools

No tool declarations could be read from the package source. They show once the server is installed.

Not scanned yet. New listings are scanned within a day or two of arriving.

How Code Guardian compares

Against every graded MCP server, from our own scans and uptime checks. Updated after each scan run.

Safety score
74/100
higher than 40% of 48,255 servers
Downloads a week
70
more than 54% of 12,191 servers with a package

Release history: 3 versions in the registry since 2026-10-16, latest 2026-11-01, typically one every 10 days.

Install Code Guardian in Claude Code, Cursor or VS Code

claude mcp add code-guardian -- uvx code-guardian-mcp
Add to Cursor

What the publisher says

From the Code Guardian repository's README, as published. We do not edit it. Read it on GitHub

code-guardian

mcp-name: io.github.LuminariSoftwares/code-guardian

One command that tells you three things about any repo, without running it:

  • Safe: is it safe to run?
  • Works: will it work?
  • Complete: does it have what it needs?

Each is a score out of 100 (higher is better), combined into an Overall score and an A–F grade. Scores come only from deterministic checks with fixed weights: same repo, same version, same output, every time. On top of that:

against a small goal contract.

  • Orphan code: functions, classes and modules nothing reachable from the project's entry points uses, judged

what it broke, what to fix next, and whether the scan itself can be trusted (see The verify loop).

  • An optional plain-English explanation from a local model, which never adds, removes or rescores a finding.
  • A verify loop for AI-assisted changes: run it before and after every change to learn what the change fixed,

It parses the code (ast for Python; json, tomllib and configparser for manifests; regular expressions for secrets) and never executes, imports or installs it. A scan makes no network calls. Python 3.11+, standard library only. Status: 0.3.1 is the current release. The fourth guardian, next to stack-guardian, context-guardian and tool-guardian.

Install

pip install code-guardian-mcp

The distribution is code-guardian-mcp (code-guardian on PyPI is someone else's project); the commands are code-guardian and code-guardian-mcp. To run the MCP server without installing anything: uvx code-guardian-mcp mcp.

From a clone (for the tests):

git clone https://github.com/LuminariSoftwares/code-guardian.git
cd code-guardian
python -m venv .venv
.venv\Scripts\activate          # Windows;  macOS/Linux: source .venv/bin/activate
pip install -e . pytest
python -m pytest -q

30-second example

tests/fixtures/riskyrepo is a small project that trips every scanner. Its key-shaped strings are never stored in the repository; tests/makerisky.py adds them to a copy at test time:

python tests/make_risky.py risky_repo
code-guardian scan risky_repo

Real output:

code-guardian 0.3.1  scan of risky
files: 7 Python, 3 manifests, 2 other (0 skipped, 0 excluded by the goal file)
status: COMPLETE

  Safe       0/100  is it safe to run?           -237
  Works     85/100  will it work?                -15
  Complete  35/100  does it have what it needs?  -65
  Overall   33/100  grade F  (a Safe check is FAIL (exec.shell, obfuscation, secret.key, tls.off): the grade is at most D)

biggest deductions:
  -60  Safe     secret.key FAIL          x3   at deploy/id_rsa:1, risky/settings.py:1, risky/settings.py:2
  -40  Safe     obfuscation FAIL         x1   at risky/loader.py:7
  -30  Safe     exec.shell FAIL          x1   at risky/runner.py:7
  -25  Safe     tls.off FAIL             x1   at risky/network.py:11
  -23  Safe     install.hook WARN        x3   at package.json:5, setup.py:5, setup.py:14

Shortened. The full README is on GitHub.

Nothing above is checked by us. What we check is on the safety report.

Code Guardian: common questions

Is Code Guardian MCP server safe?
Mostly: it is graded B (74/100). Read the Code Guardian safety report
How do I install Code Guardian?
It runs on your machine. Copy the Claude Code, Cursor, VS Code or Claude Desktop config from the install section.
Does Code Guardian need an API key?
No secret keys are declared. It reads 2 settings from the environment.
Is Code Guardian maintained?
The last commit was 19 days ago (2026-10-16). The latest release is v0.5.0.
How does Code Guardian compare with other MCP servers?
safety score 74/100 (higher than 40% of 48,255 servers); downloads a week 70 (more than 54% of 12,191 servers with a package). Full comparison.

More from LuminariSoftwares →