Skip to main content
GitNexus exposes its knowledge graph through the Model Context Protocol (MCP), enabling AI editors to query code intelligence directly during conversations.

What is MCP?

The Model Context Protocol is a standard interface for connecting AI assistants to external data sources and tools. GitNexus implements MCP to provide:
  • 7 code intelligence tools for querying the knowledge graph
  • 7 resources for structured on-demand data
  • 2 prompts for guided workflows (impact analysis, architecture mapping)

Available Tools

Your AI agent gets these tools automatically when connected:
Multi-Repo Support: With one indexed repo, the repo parameter is optional. With multiple repos, specify which one: query({query: "auth", repo: "my-app"}).

Available Resources

Lightweight reads (100-500 tokens) for navigation:

MCP Prompts

GitNexus provides two guided workflows:

Editor Support

Claude Code gets the deepest integration: MCP tools + agent skills + PreToolUse hooks that automatically enrich grep/glob/bash calls with knowledge graph context.

Setup Options

Automatic Setup

Run gitnexus setup to auto-configure all detected editors

Claude Code

Full integration with MCP, skills, and PreToolUse hooks

Cursor

MCP and skills configuration for Cursor

Multi-Repo Usage

Global registry and multi-repo architecture

How It Works

When you run gitnexus analyze in a repository:
  1. Indexes the codebase into a KuzuDB graph database (stored in .gitnexus/)
  2. Registers the repo in ~/.gitnexus/registry.json (global registry)
  3. Installs agent skills to teach AI agents how to use the tools
  4. Creates context files (AGENTS.md, CLAUDE.md) for immediate use
The MCP server runs via npx gitnexus mcp and serves all indexed repositories from the global registry. Your editor spawns this process automatically when MCP is configured.

Next Steps

1

Index your repository

Run npx gitnexus analyze in your repo root
2

Configure MCP

Choose your setup method:
3

Start using tools

Your AI agent now has access to all GitNexus tools and resources