GhostFree
io.github.shane-js由 GitHub 帳號 shane-js 發布v0.2.0更新於 Oct 24, 2026
MCP server that scans your repo's dependencies for security vulnerabilities based on published CVEs.
概覽
本機 MCP 伺服器,透過 OSV.dev 掃描儲存庫相依清單中的已知 CVE,並以 NVD 與 CISA KEV 資料補充細節,同時管理已接受的風險。
- 可以做什麼
- 探索相依套件:解析 npm、PyPI、Go、Rust、Java 與 .NET 的清單檔,依生態系列出已鎖定版本的套件
- 檢查 CVE:向 OSV.dev 查詢漏洞,依最低嚴重等級篩選,並排除已接受的風險
- 補充 CVE 細節:從 NVD 取得 CVSS 向量、CWE 分類與參考連結,並查詢 CISA KEV 的在野利用狀態
- 管理已接受風險:列出、記錄(含理由與到期日)或刪除存放在儲存庫中的風險接受紀錄
- 適用情境
- 適合想讓 AI 程式助理依據最新漏洞資料(而非模型訓練截止時間)審查專案相依套件、分流發現項目,並在儲存庫中保留可稽核的風險接受紀錄的情境。
- 執行需求
- 透過 npx 以 stdio 在本機執行(需要 Node.js)。掃描需要連線 OSV.dev;NVD 與 CISA KEV 補充在無法連線時會降級並顯示警告。不需帳號或付費。選用的 NVD_API_KEY 可提高 NVD 速率上限;選用的 GHOSTFREE_MIN_SEVERITY 與 GHOSTFREE_DIR 用於設定嚴重等級門檻與資料目錄。
安裝
在 SourceWeft 中
- 開啟 儀表板中的 GhostFree,將其新增到工作區。
- 為需要使用其工具的對話啟用該服務。
Desktop only,透過 STDIO。 STDIO 服務會啟動本機處理程序,因此需要 SourceWeft 桌面主機。
其他 MCP 客戶端
參照 儲存庫 中的啟動說明。
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.
來源:README.md,提交 a14ab63
工具
0版本歷史
1- v0.2.0最新Sep 16, 2026
評分
已滿足適用檢查項的 50%
該評分衡量此收錄條目的完整程度,依據註冊中心條目、端點與公開來源計算得出。它不是對伺服器本身的評價,也不表示伺服器安全或目前可用:可連通性是帶日期的檢查結果,評分也不包含安裝量或使用者評價。
- 近 30 天內可連通25 分
請保持端點能夠回應 MCP 握手;SourceWeft 每 30 天探測一次。
- 已宣告認證方式10 分
請在註冊中心條目中宣告憑證請求標頭,或保持端點能夠回應探測,以便判定其認證方式。
- 已列出工具15 分
請讓伺服器在無憑證時回應 tools/list,或發布可在沙箱中無憑證啟動的軟體包。
- 描述必需15 分
- 圖示10 分
- 文件15 分
- 授權條款10 分