# Ai Context

> Ai Context is a free MCP server for developer tools. Local MCP server serving version-matched library docs, a code map and drift data. It runs locally on your machine and is started by your AI client.

- **Kind:** MCP server
- **Pricing:** Free
- **Platforms:** CLI, macOS, Windows, Linux
- **Website:** https://vibgrate.com/library
- **Repository:** https://github.com/vibgrate/cli
- **MCP Registry name:** com.vibgrate/ai-context
- **Categories:** developer tools
- **Listing updated:** 2026-11-14

## About

The point of this server is that documentation is resolved from the versions pinned in your lockfile, not from whatever an assistant remembers. It reads package.json, requirements.txt, .csproj or pom.xml, so advice about a library matches what is actually installed.

It runs locally and offline through the vg command, and fetching of docs is done by the CLI on your machine with nothing stored in the cloud and no account required. Two named tools, library_docs and check_drift, are served alongside a code graph so the assistant sees how you use a library as well as its API.

When a drift score flags an outdated library, migration docs from the old version to the new one can be pulled directly. Coverage is described for Node and TypeScript, Python, .NET and Java.

## Features

- **Lockfile-pinned docs:** Documentation matches the exact dependency versions in your project.
- **Code map:** Serves a graph of your code so answers reflect real usage.
- **Drift checking:** Surfaces outdated libraries and their migration docs.
- **Offline and private:** Docs are fetched by the CLI locally and nothing is stored in the cloud.
- **Four ecosystems:** Node/TypeScript, Python, .NET and Java projects.
- **CLI lookups:** vg lib prints a docs block for a package.

## Good for

- Stop an assistant suggesting APIs from the wrong library version
- Plan an upgrade using old-to-new migration docs
- Give an agent a compact map of a repository
- Check dependency age and end-of-life risk

## Install

### Claude Code (Terminal)

```sh
claude mcp add ai-context -- npx -y @vibgrate/cli
```

### Claude Desktop (claude_desktop_config.json)

```json
{
  "mcpServers": {
    "ai-context": {
      "command": "npx",
      "args": [
        "-y",
        "@vibgrate/cli"
      ]
    }
  }
}
```

### Cursor (~/.cursor/mcp.json)

```json
{
  "mcpServers": {
    "ai-context": {
      "command": "npx",
      "args": [
        "-y",
        "@vibgrate/cli"
      ]
    }
  }
}
```

### VS Code (.vscode/mcp.json)

```json
{
  "servers": {
    "ai-context": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@vibgrate/cli"
      ]
    }
  }
}
```

### Windsurf (~/.codeium/windsurf/mcp_config.json)

```json
{
  "mcpServers": {
    "ai-context": {
      "command": "npx",
      "args": [
        "-y",
        "@vibgrate/cli"
      ]
    }
  }
}
```

### Other clients (your client's MCP settings (most use this shape))

```json
{
  "mcpServers": {
    "ai-context": {
      "command": "npx",
      "args": [
        "-y",
        "@vibgrate/cli"
      ]
    }
  }
}
```

## Tools

- `library_docs`: Serves documentation for a library at the version pinned in the project.
- `check_drift`: Reports dependency drift and outdated libraries for the repository.

## FAQ

### Does it need an account?

No. The site says no account is required.

### Does my code leave my machine?

The page states doc fetching is done by the CLI locally and nothing is stored in the cloud.

### Which languages are covered?

Node/TypeScript, Python, .NET and Java.

### How do I start it?

Run vg serve to start the MCP server, or vg lib for a one-off docs lookup.

### Is Ai Context free?

Yes. Ai Context is free to use.

### How do I add Ai Context to Claude Code?

Run this command in your terminal: claude mcp add ai-context -- npx -y @vibgrate/cli

### What are the best alternatives to Ai Context?

The closest alternatives to Ai Context are REA, Codebase Memory, GitHub, Serena MCP: the IDE for your agent and XERJ.

## Alternatives

- [REA](https://ai-powered.com/mcp/rea): REA is an open-source MCP server for developer tools.
- [Codebase Memory](https://ai-powered.com/mcp/codebase-memory): Codebase Memory is an open-source MCP server for knowledge and memory.
- [GitHub](https://ai-powered.com/mcp/github-2): GitHub is an open-source MCP server for developer tools.
- [Serena MCP: the IDE for your agent](https://ai-powered.com/mcp/serena-mcp-the-ide-for-your-agent): Serena MCP: the IDE for your agent is an open-source MCP server for developer tools.
- [XERJ](https://ai-powered.com/mcp/xerj): XERJ is an open-source MCP server for knowledge and memory.
- [Ouroboros](https://ai-powered.com/mcp/ouroboros): Ouroboros is an open-source MCP server for developer tools.
- [Claude Code Ultimate Guide](https://ai-powered.com/mcp/claude-code-ultimate-guide): Claude Code Ultimate Guide is an open-source MCP server for ai models and llm tooling.
- [Concord MCP](https://ai-powered.com/mcp/concord-mcp): Concord MCP is a freemium MCP server for developer tools.

---
Source: https://ai-powered.com/mcp/ai-context
