AI Context logo

AI Context

Local MCP access to repository graphs, dependency drift, vulnerability data, local models, and version-matched library documentation.

Install AI Context

Pick your client, then add it in one click or paste the config.

STDIONode.js
~/Library/Application Support/Claude/claude_desktop_config.json
claude_desktop_config.json
{
  "mcpServers": {
    "ai-context": {
      "command": "npx",
      "args": [
        "-y",
        "@vibgrate/cli"
      ]
    }
  }
}

Settings → Developer → Edit Config, merge this into mcpServers, then fully quit and reopen Claude Desktop.

We couldn’t confirm it starts correctly

We ran the install command but it didn't respond within our test window — this can mean a slow first-time install rather than a real problem.

npx -y @vibgrate/cli

No response to initialize.

This is an experimental automated check and can have false negatives — missing environment variables, a slow cold install, etc. It doesn’t necessarily mean something’s wrong. Last checked .

Overview

ai-context MCP server gives coding assistants a local view of a repository’s code graph, dependency drift, vulnerabilities, local models, and library documentation. It exposes tools for symbol search, call and dependency analysis, change impact, test coverage, security guidance, and version-aware library lookup. Run it through the Vibgrate CLI; the code map updates incrementally when files change, including edits made by an assistant. Reach for it when an agent needs repository-specific context without repeatedly loading large codebases into its context window.

Use cases

  • Trace callers and callees before changing a symbol
  • Measure the blast radius of a refactor
  • Find tests covering a code path
  • Check dependency drift and known vulnerabilities
  • Retrieve documentation for the project’s installed library version

Key features

  • Local repository code graph with incremental refresh
  • Symbol, relationship, path, and impact analysis
  • Dependency drift, vulnerability, and upgrade analysis
  • Version-correct library documentation
  • Local model inventory for Ollama, LM Studio, and GGUF
  • OWASP and CWE guidance for code nodes

Tools19

What AI Context lets your agent do. Expand a tool for its parameters.

Self-reported~370 tokens of context

Security & health

What it can reach and how reliably it runs — from our own checks, not the maintainer’s claims.

ActiveLast checked

Recent health check succeeded.

26/26 checks healthy over the last 106d

Supply-chain signal

No high-severity advisories surfaced by our automated scan.

Critical 0High 0Medium 0Low 0

Scanned 10d ago via OSV.dev · @vibgrate/cli (npm)

Adoption & maintenance

Factual signals from GitHub, npm, and our automated checks — not a rating.

GitHub stars6Stargazers on the source repository.
npm downloads5.6kPackage downloads in the last 30 days.
Last commit4d agoMost recent push to the default branch.
Install checkInconclusiveDidn't respond in our test window — often a slow first install.
Tools exposed19Callable tools this server registers over MCP.
Directory activity5 viewsConfig copies, upvotes, and views on AllMCPs.

How AI Context works

What ai-context MCP server does

ai-context MCP server exposes Vibgrate’s local codebase analysis through the Model Context Protocol. It gives an MCP-compatible coding assistant structured access to a repository’s symbols, relationships, areas, dependency state, vulnerabilities, and version-specific library documentation.

The server is designed for repository work rather than general-purpose file browsing. An assistant can start with orient, inspect a symbol with get_node, trace relationships with find_path or query_graph, and assess a proposed change with impact_of. It can also identify covering tests, retrieve deterministic facts, and attach OWASP or CWE guidance to a node.

How it works

Start the service with the Vibgrate CLI using vg serve. The server operates locally and builds a code graph from the repository. When files change, the next tool call incrementally refreshes the map, so edits made during an agent session can be reflected without running a separate watcher or daemon.

Dependency and security analysis is also local-first. check_drift inventories dependencies and can include optional Git attribution for who added them. Vulnerability tools use data from the most recent vg scan --vulns run, while upgrade_impact estimates the effect of moving to a newer package version by examining major-version distance, import reach, and vulnerabilities fixed.

Library assistance is version-aware: resolve_library identifies a library and the version used by the project, and library_docs returns documentation constrained by a token budget. Local documentation can be used first; thin local results may fall back to the hosted catalog unless the CLI is run with --local.

Setup and configuration

Node.js 24 or newer is required. Install the package for repeated use, then start the MCP service:

Terminal
npm install -D @vibgrate/cli
npx vg serve

For a one-off setup, run the package directly with npx @vibgrate/cli. The CLI also supports an HTTP mode with vg serve --http.

Use vg install to interactively select an assistant and write its MCP configuration. vg install --all configures every detected assistant. The repository’s normal CLI commands can build or refresh analysis before serving, including vg build and vulnerability scanning through vg scan --vulns.

Tools and capabilities

The MCP tool surface includes:

  • orient, get_graph_summary, list_areas, and list_hubs for repository structure and code-map orientation.
  • search_symbols, query_graph, get_node, and find_path for locating symbols and tracing calls or other relationships.
  • impact_of and tests_for for change blast-radius analysis and test coverage lookup.
  • get_facts for deterministic node facts, plus guide_node for cited OWASP and CWE practices.
  • check_drift, list_vulnerabilities, vuln_attribution, and upgrade_impact for dependency age, exposure, vulnerability ownership, and upgrade analysis.
  • list_models for models available on disk through Ollama, LM Studio, or GGUF files.
  • resolve_library and library_docs for project-version-specific library guidance.

The broader CLI can also compress tool output and older conversation content before it reaches an agent, with originals retained for local retrieval. That mode is enabled through the CLI’s installation or serving options rather than a separate MCP analysis tool.

Limitations and notes

The server is intended to run against local repository data. No API key is required, and repository data is not uploaded unless explicitly pushed; library documentation may use the hosted catalog when local results are insufficient and --local is not selected.

Vulnerability results depend on the latest vg scan --vulns data available to the repository. Git-based attribution is optional. The package is licensed under Apache-2.0.

Written by AllMCPs with AI assistance from the project’s README and listing data. How we build listings

Reviews

No reviews yet — be the first to share how it worked for you.

Frequently Asked Questions about AI Context

ai-context is an MCP server that connects AI coding assistants to a local repository’s code graph and Vibgrate analysis. Its main tools cover symbol search, relationship and impact analysis, test coverage, dependency drift, vulnerability data, local model discovery, and version-correct library documentation, with repository changes refreshed incrementally.

Install it with Node.js 24 or newer using `npm install -D @vibgrate/cli`, then run `npx vg serve`. You can also use `npx @vibgrate/cli` for a one-off invocation, or run `vg install` to write MCP configuration for a detected assistant.

Yes, ai-context works with Cursor. Run `vg install` and select Cursor, or use `vg install --all` to configure every detected assistant, then reload the client so it can connect to the local MCP service.

Yes, vulnerability and drift analysis runs from local scan data. Run `vg scan --vulns`, then use tools such as `list_vulnerabilities`, `vuln_attribution`, `check_drift`, and `upgrade_impact`; results depend on the latest vulnerability scan available to the repository.

The next MCP tool call incrementally rebuilds the graph after repository files change. This includes edits made by the assistant, so a separate file watcher or daemon is not required.

Related MCP servers

Add a badge to your READMEShow it’s listed — live SVG, Markdown or HTML.

AllMCPs Directory Badge

Full Badge Customizer

Showcase your server listing on GitHub or your project documentation. Embed this dynamic SVG badge to highlight official listing status and live engagement.

Badge Style:
Live Dynamic SVG PreviewAI Context AllMCPs Directory Badge
Markdown (GitHub README)
[![AllMCPs](https://allmcps.com/api/badge/ai-context?style=directory)](https://allmcps.com/mcp/ai-context)
HTML Embed
<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>