Local-first MCP server: version-correct library docs, code map, and offline drift for your repo.
Copy the AI prompt to install this server into Claude Code, Cursor, or another agent โ or use 1-click editor setup below.
๐ก Paste into ~/Library/Application Support/Claude/claude_desktop_config.json (macOS) or %APPDATA%\Claude\claude_desktop_config.json (Windows)
@vibgrate/cli
Local codebase intelligence for AI coding agents โ graph, drift, and version-correct docs on your machine
vg answers two questions for any repo:
Everything runs on your machine. No API key, no network call, no data leaving your repo unless you explicitly push. The vibgrate command is an alias for vg โ they are interchangeable.
A real vg scan replay โ drift score, breakdown, and ranked priorities in one command. Animation plays right here on GitHub; nothing runs in your browser.
โถ Try the live, interactive CLI simulator โ
Step through every command (scan, build, ask, why, โฆ) against real sample repos.
No install, no signup:
Install for repeat runs:
Local binaries live in
node_modules/.binโ usenpx vg(or an npm script) unless you install globally.
vg serve starts Vibgrate AI Context โ a local-first MCP server that
gives any MCP-compatible assistant (Claude, Cursor, Windsurf, Copilot, Gemini
CLI, โฆ) your code map, offline drift, local models, and version-correct
library docs, all from your machine (no account, nothing uploaded; thin
local docs fall through to the hosted catalog unless you pass --local). No
context-window stuffing, no hallucinated APIs. The map keeps itself fresh:
when files change โ including edits the assistant itself just made โ the next
tool call rebuilds it incrementally before answering, with no watcher or
daemon involved.
Wire it up in one command:
This writes the MCP config for your chosen tool(s) and installs a skill that teaches the assistant how to query the graph. After reloading your assistant you get graph-aware answers: call trees, impact analysis, drift findings, version-correct library docs โ all from local data. The token savings are measured and published, methodology included, at vibgrate.com/cli/benchmarks/token-savings.
Browse all 21+ supported assistants and their skill descriptions at vibgrate.com/skills.
vg serve exposes 19 MCP tools:
vg scan --vulns: CVE, severity, CVSS, fixed version.Prefer the hosted server over your team's scan data? Vibgrate Cloud MCP connects your assistant to Vibgrate Cloud (OAuth 2.1, 51 tools).
Build the graph once, query it continuously:
The graph is byte-deterministic and reproducible โ the same repo always produces the same graph on every machine.
One scan gives you:
--vulns) โ severity, CVSS, the fixing version, and, in a git repo, who introduced themvg scan --vulns checks your installed dependencies against the public OSV database and reports each known vulnerability with its severity, CVSS score, and the version that fixes it โ as text, JSON, or SARIF. Add --package-manifest to run it fully offline from a local advisory bundle.
In a git repository, every finding is attributed from history: who introduced the vulnerable version, in which commit, and how long you have been exposed. Those exposure windows roll up into remediation metrics framed around the EU Cyber Resilience Act (CRA) โ and feed Vibgrate Evidence, which freezes shipped-release manifests so "which shipped products contain this vulnerability?" has a signed, offline-verifiable answer โ per-severity time-exposed and SLA breaches โ so "are we fixing things fast enough?" has a number.
Detection and attribution span the whole npm ecosystem (npm, pnpm, yarn) plus pip/poetry, cargo, composer, bundler, go, pub, hex, NuGet, and Maven/Gradle โ read from each project's lockfile, so it works whatever you build in.
Your AI assistant sees this too: vg serve exposes list_vulnerabilities, vuln_attribution, and an upgrade_impact tool that tells an agent what an upgrade will cost โ version distance, how many files import the package, the vulnerabilities it fixes, and (online, opt in) the breaking-change notes between your version and the latest.
The CLI is fully useful offline. When you want trends across runs and repos โ so drift becomes a metric you manage, not a surprise you discover โ push scans to a Vibgrate Cloud workspace:
Upload is opt-in โ nothing leaves your machine until you run --push. Store the DSN as a CI secret, never commit it.
Drop vg into any pipeline to turn drift scoring into a quality gate:
Gate on drift budgets and regression relative to a baseline:
--drift-budget <score> fails the build if drift exceeds your budget.--drift-worsening <percent> fails the build if drift worsens by more than X% vs baseline.Copy-paste CI templates live in examples/github-actions/. Azure DevOps and GitLab CI snippets are in DOCS.md.
vg lib fetches usage docs pinned to the exact version in your lockfile โ never a newer API your code can't call yet:
AI assistants connected via MCP use vg lib automatically when answering questions about library APIs in your project.
--push / vg push / vg share.vg build/vg map) and a few extended scanners (code quality, database schema, UI text) read your source locally to compute structural facts and metrics โ never a raw source line, and never uploaded as-is; see DOCS.md for exactly what each one reads.--offline disables registry/network lookups; --package-manifest <file> feeds drift scoring a local version bundle.--max-privacy suppresses local artifact writes and high-context scanners; --no-local-artifacts skips writing .vibgrate/*.json to disk.Add .vibgrate/ to your .gitignore โ those are regenerated local outputs.
More on how Vibgrate handles code and data: vibgrate.com/security, and the subprocessor register.
Paste this into your AI coding tool (Claude, Cursor, Copilot, Gemini CLI, โฆ):
See docs/QUICKSTART-PROMPT.md for the full prompt.
Under each set, commands are listed AโZ. A short typical path (usual order) is called out where it helps.
Typical path: vg build โ vg status โ vg ask โ vg impact โ vg share
| Command | Description |
|---|---|
vg ask "<question>" | Query the map in natural language |
vg build [path] | Build / update the code map (incremental, deterministic) |
vg bundle | Build an air-gapped bundle (grammars + graph + library catalog) |
vg code "<instruction>" | Propose a graph-grounded code edit (dry-run by default; --apply --yes to write) |
vg embed | Precompute the semantic index for instant vg ask |
vg export | Export the map (json / ndjson / graphml / dot / cypher / md / html / SBOM) |
vg facts <file> | Deterministic facts for a node (contracts, invariants) |
vg guide <file> | Cited standards / practices for a node (free pack) |
vg impact <file> | What breaks if you change it โ and the tests to run |
vg install / vg uninstall | Wire (or remove) Vibgrate AI Context + skill in your AI assistant (--detect, --all, --list) |
vg lib <package> | Version-correct, drift-annotated library docs |
vg map / vg hubs / vg areas / vg oddities | Map insights: overview, most-depended-on code, natural groupings, cross-area smells |
vg models | Code Modes (Spark / Flow / Forge) + local fleet (Ollama / LM Studio / gguf); install / pull by default (--dry-run to preview) |
vg path <from> <to> | How A connects to B (shortest path) |
vg savings | Local report of tokens/$ saved vs a grep baseline (estimates) |
vg watch | Rebuild the map when files change |
vg serve | Start Vibgrate AI Context (local-first MCP: code map + drift + version-correct docs) |
vg share | Make the graph committable + auto-updating for your team |
vg show <file> | Explain a node: what it is, what it calls, what calls it |
vg status | Cache/freshness, counts, staleness |
vg tests <file> | Which tests cover a node |
vg tree <file> | Call tree rooted at a node |
vg unknowns | What the graph cannot resolve, ranked by blast radius |
Typical path: vg doctor โ vg lsp โ vg daemon
| Command | Description |
|---|---|
vg daemon | Local workspace daemon for multi-root graph sessions (IDE / agents): status, ensure, publish, query, impact, โฆ |
vg doctor | Read-only diagnosis: config, credentials (redacted), map freshness, hosted reachability, MCP launch |
vg lsp | Language server (stdio) โ engine behind Vibgrate for VS Code and other thin IDE clients |
vg policy | Show production context-policy pin; vg policy verify <file> for signed learning patches |
Typical path: vg init โ vg scan โ vg baseline โ vg report โ vg fix
| Command | Description |
|---|---|
vg baseline [path] | Create a drift baseline |
vg bisect <package> <constraint> | The commit where a dependency crossed a version line (--assert to gate CI) |
vg drift | What is outdated across dependencies (offline; --online for currency) |
vg evidence | Signed, reproducible regulatory evidence (regime-neutral; CRA first) |
vg fix | Ranked, risk-tiered upgrade plans from the hosted planner โ then apply the one you choose |
vg init [path] | Initialise config and .vibgrate/ |
vg report | Generate a report from a scan artifact |
vg sbom export / delta / vex | Export CycloneDX/SPDX SBOM, diff two artifacts, or emit an OpenVEX document |
vg scan [path] | Scan for upgrade drift |
vg scan --full | Comprehensive scan: drift + vulnerabilities + a banned-dependency report |
vg scan --push | Scan and push results to Vibgrate Cloud |
vg scan --vulns | Also detect known vulnerabilities (OSV; offline via --package-manifest) |
vg update | Check for and install updates |
vg why <package> | Who introduced a dependency, its version history, and any open vulnerabilities |
Local scoring does not require this โ nothing leaves your machine until you push.
Typical path: vg login โ vg dsn create โ vg push โ vg logout
| Command | Description |
|---|---|
vg dsn create | Generate a DSN token |
vg login / vg logout | Authenticate the CLI with your Vibgrate workspace (or clear stored credentials) |
vg push | Upload scan results to Vibgrate Cloud |
Full flag and configuration reference: DOCS.md ยท vibgrate.com/cli ยท help centre ยท glossary.
Most systems don't fail all at once โ they accumulate upgrade debt and architectural drift silently until migrations become expensive. vg makes that debt measurable and repeatable โ the practice we call Code Drift Intelligence โ and gives AI assistants the local context they need to be useful. See how it lands for teams and enterprises, or compare it with what you already run: vs Renovate ยท vs Dependabot ยท vs Snyk.
| Mode | What you get | Best for |
|---|---|---|
| One-off scan | Fast snapshot of drift score, lag, and findings | Audits, due diligence, migration planning |
| CI-integrated scan | Continuous drift signal, SARIF annotations, regression guardrails | Keeping upgrade debt under control long-term |
| MCP + graph | AI assistant with real-time, offline codebase context | Day-to-day development, code review, refactoring |
Recommended rollout: vg build + vg install now, add vg scan to CI this week.
vg is short and occasionally conflicts with other tools (virtualgo, vugu, the oh-my-zsh git verify-commit alias, custom shell aliases, etc.).
vibgrate is an identical alias โ same binary, same flags, same behaviour. If vg is taken on your system, use vibgrate everywhere instead:
When @vibgrate/cli is installed, it registers both bin entries unconditionally. If it detects at install time that vg is already claimed by another tool, it prints a one-line notice pointing you to vibgrate.
| Vibgrate CLI | This package โ scan, score, and map any repository. Live demo ยท benchmarks ยท token savings |
| Vibgrate for VS Code | The same score in your editor, plus VG Code. Marketplace ยท Open VSX |
| Vibgrate Graph | The deterministic local code map behind vg map, vg impact and vg show |
| Vibgrate AI Context | vg serve โ version-correct library docs, your code map, and offline drift, served to any assistant. Supported assistants ยท on mcp.so |
| Vibgrate Cloud MCP | The hosted MCP server over your workspace data (OAuth 2.1) |
| Vibgrate Cloud | History, trends, and team rollups. Create a workspace ยท pricing |
| Vibgrate Evidence | Signed, reproducible release evidence โ including for the EU CRA |
How the scores work: DriftScore ยท RiskScore ยท DriftRisk Index ยท published methodology ยท public index of real scans ยท README badges
Reference: package registry ยท integrations marketplace ยท glossary ยท help centre ยท security ยท mission
Create a free workspace โ ย ยทย Try the live demo ย ยทย Full docs
Apache-2.0 licensed ยท Copyright ยฉ 2026 Vibgrate
Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.
[](https://allmcps.com/mcp/ai-context)<a href="https://allmcps.com/mcp/ai-context"><img src="https://allmcps.com/api/badge/ai-context?style=directory" alt="Ai Context on AllMCPs" /></a>