GhostFree
io.github.shane-jsPublished by GitHub account shane-jsv0.2.0Updated Oct 24, 2026
MCP server that scans your repo's dependencies for security vulnerabilities based on published CVEs.
Overview
Local MCP server that scans a repository's dependency manifests for known CVEs via OSV.dev, enriches findings with NVD and CISA KEV data, and tracks accepted…
- What you can do
- Discover dependencies: parse manifests across npm, PyPI, Go, Rust, Java and .NET and list pinned packages by ecosystem
- Check CVEs: query OSV.dev for vulnerabilities, filter by minimum severity, and suppress accepted risks
- Enrich a CVE: fetch CVSS vectors, CWE classification and references from NVD plus CISA KEV exploitation status
- Manage accepted risks: list, record with reason and expiry date, or remove risk acceptances stored in the repo
- When to use it
- Useful when you want an AI coding assistant to audit a project's dependencies against current vulnerability data rather than its training cutoff, triage findings, and keep an auditable record of accepted risks in the repository.
- Requirements
- Runs locally over stdio via npx (Node.js). Needs network access to OSV.dev for scans; NVD and CISA KEV enrichment degrade with a warning if unreachable. No account or payment. Optional NVD_API_KEY raises NVD rate limits; optional GHOSTFREE_MIN_SEVERITY and GHOSTFREE_DIR set the severity threshold and data directory.
Installation
In SourceWeft
- Open GhostFree in the dashboard and add it to a workspace.
- Enable the server for the chats that should use its tools.
Desktop only via STDIO. STDIO servers start a local process, so they need the SourceWeft desktop host.
Other MCP clients
Follow the launch instructions in the repository.
README
What is GhostFree 🚫👻?
Every software team could use some help ridding their code base of the ghosts haunting their dependencies.
GhostFree is a local MCP server that scans your repository's dependencies for known vulnerabilities based on issued CVEs using OSV.dev, helps you triage and fix findings with NVD and CISA KEV enrichment, and lets you manage accepted risks — all directly from your AI coding assistant.
Quick Start
No installation, signup, or payment required. Add GhostFree to your MCP settings for whatever code tool you use and run /ghostfree.scan.
VS Code Copilot (Extension — easiest)
Search @mcp ghostfree in the Extensions view (Ctrl+Shift+X) and click Install. Then open the Command Palette (Ctrl+Shift+P), run MCP: List Servers, select GhostFree, choose Start Server, and confirm trust when prompted. No JSON config needed.
VS Code Copilot (Manual config)
Create or update .vscode/mcp.json in your project root:
Claude Code
Create .mcp.json in your project root:
Cursor
Create .cursor/mcp.json:
Claude Desktop
Add to your claude_desktop_config.json (location varies by OS):
How to Use
The /ghostfree.scan Prompt
The recommended way to run a scan is via the built-in prompt. In your AI client, type:
This drives the following flow:
- Discover — finds all manifest files (requirements.txt, package.json, go.mod, Cargo.toml, pom.xml, *.csproj, etc.)
- Threshold — asks you for a minimum severity level (CRITICAL / HIGH / MEDIUM / LOW) if not already configured
- Scan — queries OSV.dev for CVEs across all discovered packages
- Triage — presents numbered results, 10 at a time. You pick which ones to investigate.
- Enrich — fetches CVSS vectors, CWE classification, and CISA KEV "actively exploited" status for your selections
- Remediate — recommends upgrades, code changes, or risk acceptance with a reason and expiry date
Example Session
Example: Accepting a Known Risk
Example: Enriching a Specific CVE
Tools Reference
All read-only tools are safe to auto-approve in your MCP client. Write tools (accept_risk, remove_accepted_risk) will prompt for confirmation.
check_cves Inputs
accept_risk Inputs
Configuration
Create .ghostfree/config.yml in your repo root to set a persistent severity threshold that's shared with your team via source control:
This takes priority over the environment variable. If neither is set, GhostFree will prompt you to choose at scan time.
Environment Variables
VS Code extension users: create a .env file in your workspace root — the extension reads it automatically and forwards the values to the server. For all other setups (manual MCP JSON config): add these to the "env" block in your client's config file (.vscode/mcp.json, .mcp.json, .cursor/mcp.json, claude_desktop_config.json, etc.), or export them as system environment variables.
Accepted Risk Management
When you accept a risk, GhostFree writes it to .ghostfree/accepted.yml in your repo root. Commit this file to share accepted decisions with your team.
Rules:
expires_onis required — no open-ended acceptances- Expiry within 1 year: accepted immediately
- Expiry beyond 1 year: requires
confirm_extended_expiry=true - Expired acceptances are never silently dropped — they resurface as warnings on every scan
Supported Ecosystems & Manifests
Version range handling
When a manifest specifies a version range rather than an exact version, GhostFree extracts a single version to query vulnerability databases. We use two taxonomies to keep the reasoning clear: VRC (what a specifier means) and VRHP (what we do about it).
Version Range Concepts (VRC)
A VRC is an ecosystem-agnostic label for what a version specifier expresses. Multiple VRCs can apply to the same entry (e.g. a caret range with a prerelease tag is vrc-caret + vrc-prerelease).
Version Range Handling Principles (VRHP)
A VRHP is the action GhostFree takes once a VRC is identified. String-keyed so ordering never matters.
Ecosystem examples
FAQ
Q: Why would I need something more than my current AI coding agent(s)?
Your AI agent's knowledge of vulnerabilities is frozen at its training cutoff. New CVEs are disclosed daily — example: Log4Shell, for example, was disclosed in December 2021 and would be invisible to any model trained before that.
GhostFree queries live authoritative vulnerability reporting organizations for up to date information, so every scan reflects the current threat landscape regardless of when your model was trained. This extra context is also critical in increasing the accuracy or whatever suggestions or recommendations your agent can provide.
It also tracks your accepted risks with reasons and expiry dates, building an auditable record that lives in your repo.
It aims to do all of this with as much determinism as can be introduced while still at its coring being run by your chosen agent that interacts with GhostFree. While running it with the best model you can afford is our recommendation, this determinism strategy helps cheaper/weaker models be decently effective vulnerability remediationa assistants when aided with GhostFree from our testing.
Q: Does GhostFree upload my code anywhere?
No. Only package names and versions are sent to OSV.dev. No source code leaves your machine.
Q: Do I need an API key?
No. OSV.dev requires no auth. NVD enrichment works without a key (rate-limited to 5 req/30s) which you are unlikely to hit in typical human use of this tool (you would start to see if running in some autonomous agent setup though). Set env variable NVD_API_KEY for higher limits (see nist.gov website for more details).
Q: What if I'm offline?
The scan requires OSV.dev access. NVD and KEV enrichment will gracefully degrade with a warning if unreachable.
Q: Does it scan transitive dependencies?
Partially. When a lock file is present, GhostFree scans the full resolved dependency graph (direct + transitive): package-lock.json for Node.js, Cargo.lock for Rust, go.sum for Go, and Pipfile.lock for Python. For ecosystems without lock file support (Java, .NET), only directly declared dependencies are scanned.
Q: The scan found a CVE I've already fixed. What do I do?
Update the package version in your manifest. On the next scan it will no longer appear.
Support
For bugs and feature requests, open an issue on GitHub.
Privacy Policy
GhostFree processes your repository's dependency manifests locally on your machine. Here is exactly what data leaves your machine and where it goes:
No source code, file contents, repository names, user identifiers, or telemetry data of any kind are ever coded to be sent anywhere by us. As when interacting with any AI assisted tools, your underlying environment, AI model, agent, IDE, etc. are beyond our control in how it chooses to interact with our code and your code. Anyone making use of this tool should familiarize themselves with the information in our included LICENSE.txt (MIT).
GhostFree does not collect, store, or share any data. All processing happens locally. The accepted risks file (.ghostfree/accepted.yml) stays in your repository under your control.
For questions, open an issue on GitHub.
Acknowledgements
GhostFree is built entirely on the shoulders of three organizations that have made their vulnerability intelligence freely available to the world and all the vulnerability researchers around the world that report CVEs. Without them, this tool would not exist.
Google Open Source Security Team — Open Source Vulnerabilities (OSV)
OSV.dev is the backbone of every GhostFree scan. It provides a free, open API for querying known vulnerabilities across all major package ecosystems by package name and version, and includes severity scores and fix version data in a single response. Its generous rate limits and zero-auth design make it ideal for a tool that runs locally on every developer's machine.
U.S. National Institute of Standards and Technology — National Vulnerability Database (NVD)
The National Vulnerability Database, maintained by NIST within the U.S. Department of Commerce, is the authoritative source for standardised CVSS severity vectors and CWE classification for every published CVE. GhostFree calls the NVD API 2.0 during per-CVE triage to surface the full technical detail a developer needs to make an informed remediation decision.
U.S. Cybersecurity and Infrastructure Security Agency — Known Exploited Vulnerabilities (KEV)
CISA, part of the U.S. Department of Homeland Security, publishes and maintains the Known Exploited Vulnerabilities catalog — a curated list of CVEs confirmed to be actively exploited in the wild. GhostFree downloads and uses this catalog to answer the one question that most changes how urgently a team should act: Is this being exploited right now?
Our goal is to make the security intelligence these organizations produce — gathered at significant public expense and shared freely in the interest of a safer internet — as accessible as possible to every developer, wherever they work. The bad actors chasing these vulnerabilities don't sleep. Neither does the data.
Source: README.md at commit a14ab63
Tools
0Version history
1- v0.2.0LatestSep 16, 2026
Score
50% of the applicable checks met
How complete this listing is, computed from the registry entry, the endpoint and public sources. Not a rating of the server and not a statement that it is safe or working today: reachability is a dated check, and no installs or reviews go into the score.
- Reached in the last 30 days25 pts
Keep the endpoint answering the MCP handshake; SourceWeft probes it every 30 days.
- Auth declared10 pts
Declare the credential headers in the registry entry, or keep the endpoint answering the probe so its auth can be classified.
- Tools listed15 pts
Answer tools/list without a credential, or ship a package that starts in a sandbox without one.
- DescriptionRequired15 pts
- Logo10 pts
- Documentation15 pts
- License10 pts